当前位置: 代码迷 >> 综合 >> How to run OpenMP on Linux?
  详细解决方案

How to run OpenMP on Linux?

热度:22   发布时间:2023-12-09 22:15:21.0

gcc -fopenmp foo.c

For Bash Shell:

export OMP_NUM_THREADS=4

./a.out