How to tell if OpenMP is working?

后端 未结 2 733
温柔的废话
温柔的废话 2021-02-08 04:35

I am trying to run LIBSVM in parallel mode, however my question is in OpenMP in general. According to LIBSVM FAQ, I have modified the code with #pragma calls to use OpenMP. I al

2条回答
  •  温柔的废话
    2021-02-08 05:11

    You can use the function omp_get_num_threads(). It will return you the number of threads that are used by your program.

提交回复
热议问题