1
0
mirror of https://github.com/OpenMP/Examples.git synced 2025-04-07 15:12:11 +01:00
2021-08-17 09:11:55 -07:00

22 lines
291 B
C

/*
* @@name: affinity.5c
* @@type: C
* @@compilable: yes
* @@linkable: no
* @@expect: success
* @@version: omp_5.1
*/
#if _OPENMP < 202011
#define primary master
#endif
void work();
int main()
{
#pragma omp parallel proc_bind(primary) num_threads(4)
{
work();
}
return 0;
}