File tree 3 files changed +7
-9
lines changed 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,9 @@ export OMP_NUM_THREADS=1
96
96
srun myprog -i input -o output
97
97
```
98
98
99
- For hybrid applications, one should use ` OMP_PLACES ` and
100
- ` OMP_PROC_BIND ` OpenMP runtime environment variables for obtaining
101
- optimum placement of OpenMP threads. As an example, in order to run
99
+ For hybrid applications, one should use
100
+ ` OMP_PROC_BIND ` OpenMP runtime environment variable for
101
+ laceming the OpenMP threads. As an example, in order to run
102
102
one MPI tasks per NUMA domain and one OpenMP thread per L3cache one
103
103
can set
104
104
@@ -107,7 +107,6 @@ can set
107
107
# SBATCH --cpus-per-task=16
108
108
109
109
export OMP_NUM_THREADS=4
110
- export OMP_PLACES=cores
111
110
export OMP_PROC_BIND=spread
112
111
113
112
module load myprog/1.2.3
Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ srun myprog <options>
52
52
53
53
# Set the number of threads based on --cpus-per-task
54
54
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
55
- # Bind OpenMP threads to cores
56
- export OMP_PLACES=cores
57
55
58
56
srun myprog <options>
59
57
```
@@ -75,8 +73,6 @@ srun myprog <options>
75
73
76
74
# Set the number of threads based on --cpus-per-task
77
75
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
78
- # Bind OpenMP threads to hardware threads
79
- export OMP_PLACES=threads
80
76
81
77
srun myprog <options>
82
78
```
Original file line number Diff line number Diff line change @@ -54,7 +54,10 @@ higher and poor load balancing gets more likely.
54
54
55
55
Many HPC applications benefit from binding OpenMP threads to CPU cores
56
56
which can be achieved by setting ` export OMP_PLACES=cores ` in the
57
- batch job script. When starting new production runs it is also good
57
+ batch job script. Note! Due to bug in OpenBLAS thread binding should not be
58
+ specified when using threaded OpenBLAS (-omp module).
59
+
60
+ When starting new production runs it is also good
58
61
practice to ensure correct thread affinity by adding to batch job
59
62
script
60
63
```
You can’t perform that action at this time.
0 commit comments