Using OpenMP with clang

后端 未结 4 563
予麋鹿
予麋鹿 2020-12-08 11:28

I have problems compiling OpenMP code using clang (both 3.6 and 3.8 ToT).

I followed this blog post http://blog.llvm.org/2015/05/openmp-support_22.html , but the pro

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 12:06

    OMP_NUM_THREADS environment variable is probably what you want. You can also set it programmatically.

    https://gcc.gnu.org/onlinedocs/libgomp/Environment-Variables.html

    And same for clang.

提交回复
热议问题