Download Cluster OpenMP User`s Guide

Transcript
Cluster OpenMP*
Contents
1
About this Document .........................................................................................8
1.1
1.2
1.3
1.4
2
Intended Audience .................................................................................8
Using This User Manual ...........................................................................8
Conventions and Symbols ........................................................................9
Related Information .............................................................................. 10
Using Cluster OpenMP* .................................................................................... 11
2.1
2.2
Getting Started .................................................................................... 11
Examples ............................................................................................ 12
2.2.1
Running a Hello World Program ................................................. 12
2.2.2
Sample Codes on the Web ........................................................ 13
3
When to Use Cluster OpenMP* .......................................................................... 14
4
Compiling a Cluster OpenMP* Program............................................................... 16
5
Running a Cluster OpenMP* Program ................................................................. 17
5.1
5.2
5.3
5.4
5.5
6
MPI Startup for a Cluster OpenMP* Program ....................................................... 25
6.1
6.2
6.3
7
Cluster OpenMP* Startup File ................................................................. 25
Network Interface Selection ................................................................... 26
Environment Variables .......................................................................... 26
6.3.1
KMP_MPI_LIBNAME ................................................................. 26
6.3.2
KMP_CLUSTER_DEBUGGER ....................................................... 27
6.3.3
KMP_CLUSTER_SETTINGS ........................................................ 27
Porting Your Code ........................................................................................... 28
7.1
7.2
7.3
4
Cluster OpenMP* Startup Process ........................................................... 17
Cluster OpenMP* Initialization File .......................................................... 19
5.2.1
Overall Format ........................................................................ 19
5.2.2
Options Line ........................................................................... 20
5.2.3
Environment Variable Section ................................................... 22
Input / Output in a Cluster OpenMP* Program .......................................... 22
5.3.1
Input Files .............................................................................. 22
5.3.2
Output Files ............................................................................ 23
5.3.3
Mapping Files into Memory ....................................................... 23
System Heartbeat ................................................................................ 23
Special Cases ...................................................................................... 24
5.5.1
Using ssh to Launch a Cluster OpenMP* Program ......................... 24
5.5.2
Using a Cluster Queuing System ................................................ 24
Memory Model and Sharable Variables..................................................... 28
Porting Steps ....................................................................................... 29
7.2.1
Initial Steps ............................................................................ 29
7.2.2
Additional Steps ...................................................................... 29
Identifying Sharable Variables with -clomp-sharable-propagation ................ 30
7.3.1
Using –clomp-sharable-propagation ........................................... 30
Document Number: 309076-003US