I have a fortran 90 code that distributes blocks of computations (from a matrix) to multiple nodes in a cluster using MPI, but in each node, the for loops are executed in parallel using openmp. I tried using the following command:
mpif90 mycode.f
which produces the following output:
mycode.f(49): (col. 3) remark: LOOP WAS VECTORIZED.
mycode.f(68): (col. 4) remark: PARTIAL LOOP WAS VECTORIZED.
mycode.f(83): (col. 2) remark: LOOP WAS VECTORIZED.
mycode.f(92): (col. 2) remark: LOOP WAS VECTORIZED.
mycode.f(105): (col. 2) remark: LOOP WAS VECTORIZED.
mycode.f(114): (col. 2) remark: LOOP WAS VECTORIZED.
/tmp/ifortAPx6mR.o: In function `MAIN__':
mycode.f:(.text+0x1f2): undefined reference to `omp_set_num_threads_'
I assume that the problem is that I need to set a parameter called omp_set_num_threads_
to a value somewhere, but I'm not sure where. Any help would be greatly appreciated.
Thanks.
OMP_NUM_THREADS
. $\endgroup$