I wrote a CLOMP program under Redhat Enterprise 4. All OpenMP programs runs smoothly. A cluster openmp program works well, if the lock api is not called. However, when the program reached to kmp_lock_cond_wait, a runtime error will be output, and the process will be terminated.
I really need to add the lock feature to my cluster OpenMP program. It seems that kmp_lock_cond_wait is the only choice for me.
I really appreciate your help. Thanks in advance.
Error imformations: Cluster OMP Fatal: Proc#0 Thread#0 (INITIAL): A lock (lock=39) was needed but not held for the operation in ../src/lock.c at line 1497.