(When I tried to submit this I got an error saying I wasn't allowed to submit HTML code, so I had to change all left-angle brackets to vertical lines. Sorry.)
I have a P4 running Linux with hyperthreading turned on and I can't get OpenMP to work on it. I don't mean it isn't fast enough; I mean it hangs. I have a file with the following code:
#define N 16
#pragma omp parallel for
I issue the following commands:
icc -openmp foo.cpp
setenv OMP_NUM_THREADS 2
and it prints only the first half of the i values and then stops. Clearly the second thread is never getting started. If I set OMP_NUM_THREADS to 1 it works fine.
Does anyone know what's causing this and if there's a way around it?
Message Edited by hagabb on 12-15-2003 11:58 AM