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?

publicaciones de 4 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

Have you included omp.h to your source file?

--Vladimir

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()?

Inicie sesión para dejar un comentario.