You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Aligator** uses OpenMP for parallelization which is setup using environment variables in your shell. The settings are local to your shell.
67
81
68
82
#### Visualization
69
83
Printing OpenMP parameters at launch:
70
84
```bash
71
85
export OMP_DISPLAY_ENV=VERBOSE
72
86
```
73
-
Prints when a thread is launched and with which affinity (CPU thread(s) on where it will try to run):
87
+
Print when a thread is launched and with which affinity (CPU thread(s) on where it will try to run):
74
88
```bash
75
89
export OMP_DISPLAY_AFFINITY=TRUE
76
90
```
77
91
78
-
#### Core & thread assignation
79
-
OpenMP operates with "**places**" that defines a CPU thread or core reserved for a thread. **Places** can be a CPU thread or an entire CPU core (composed of one or multiples threads).
92
+
#### Core and thread assignment
93
+
OpenMP operates with **places** which define a CPU thread or core reserved for a thread. **Places** can be a CPU thread or an entire CPU core (which can have one thread, or multiple with hyperthreading).
80
94
81
-
##### Assigning places with CPU threads:
95
+
##### Assigning places with CPU threads:
82
96
```bash
83
97
export OMP_PLACES ="threads(n)"# Threads will run on the first nth CPU threads, with one thread per CPU thread.
84
98
```
85
99
or
86
100
```bash
87
101
export OMP_PLACES="{0},{1},{2}"# Threads will run on CPU threads 0, 1 ,2
88
102
```
89
-
##### Assigning places with CPU cores :
90
-
threads will run on the first nth CPU cores, with one thread per core, even if the core has multiple threads
103
+
##### Assigning places with CPU cores:
104
+
105
+
Threads will run on the first nth CPU cores, with one thread per core, even if the core has multiple threads
91
106
```bash
92
107
export OMP_PLACES="cores(n)"
93
108
```
94
109
95
110
For more info on places see [here](https://www.ibm.com/docs/en/xl-fortran-linux/16.1.0?topic=openmp-omp-places).
96
111
97
-
##### Using only performance cores
112
+
##### Using only performance cores (Intel performance hybrid architectures)
113
+
114
+
Some modern CPUs have a mix of performance (P) and efficiency (E) cores. The E-cores are often slower, hence we should
0 commit comments