icc and openmp

icc and openmp

Hello, I have a problem with using icc on a standard openmp function (omp_get_num_thread()). When I use it in parallel block, I have an error:

$ icc -openmp project.cpp -o project

slae2.cpp(207): error: identifier "omp_get_num_thread" is undefined
ompnumber = omp_get_num_thread();

Is this version of openmp don't support this function or it's other problem?

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Have you included omp.h to your source file?


Yes, and other omp functions work's

I believe the call is omp_get_num_threads() - threadS

Or were you actuallythinking of: omp_get_thread_num()?

Leave a Comment

Please sign in to add a comment. Not a member? Join today