I am using Intel composer XE 2011.I have some simple codes as below to test the function OMP_set_num_threads, the program freezes once entering the parallel region.
call OMP_set_num_threads(4)
!$omp parallel
print *, 'hello parallel'
!$omp end parallel
It works fine if I use clause instead.
!$omp parallel num_threads(4)
print *, 'hello parallel'
!$omp end parallel
What am I missing in using the routine OMP_set_num_threads?



