AnsweredAssumed Answered

hit crash: semaphore.cpp:87: sem_wait() failed

Question asked by yexindong on Jul 10, 2012
Latest reply on Jul 11, 2012 by yurtesen

Hi:

     currently I am trying to covert a project from CUDA to opencl , and i am using AMDSDK 2.7, and multi core .

for most unit test cases, it works fine, but recently when I am trying to run some long benchmark, but continue hit below crash.

 

../../../thread/semaphore.cpp:87: sem_wait() failed

  0x00002b0618a8b265 in raise () from /lib64/libc.so.6

#4  0x00002b0618a8cd10 in abort () from /lib64/libc.so.6

#5  0x00002b0619a6e029 in ?? () from /remote/terascale/OpenCL/AMDAPP/AMD-APP-SDK-v2.7-RC-lnx64/lib/x86_64/libamdocl64.so

#6  0x00002b0619a6d35b in ?? () from /remote/terascale/OpenCL/AMDAPP/AMD-APP-SDK-v2.7-RC-lnx64/lib/x86_64/libamdocl64.so

#7  0x00002b0619a6d076 in ?? () from /remote/terascale/OpenCL/AMDAPP/AMD-APP-SDK-v2.7-RC-lnx64/lib/x86_64/libamdocl64.so

#8  0x00002b0619a60009 in ?? () from /remote/terascale/OpenCL/AMDAPP/AMD-APP-SDK-v2.7-RC-lnx64/lib/x86_64/libamdocl64.so

#9  0x00002b0619a3a299 in clEnqueueReadBuffer () from /remote/terascale/OpenCL/AMDAPP/AMD-APP-SDK-v2.7-RC-lnx64/lib/x86_64/libamdocl64.so

...........................

../../../thread/semaphore.cpp:87: sem_wait() failed

../../../thread/semaphore.cpp:87: sem_wait() failed

../../../thread/semaphore.cpp:87: sem_wait() failed

../../../thread/semaphore.cpp:87: sem_wait() failed

../../../thread/semaphore.cpp:87: sem_wait() failed

../../../thread/semaphore.cpp:87: sem_wait() failed

../../../thread/semaphore.cpp:87: sem_wait() failed

../../../thread/semaphore.cpp:87: sem_wait() failed

../../../thread/semaphore.cpp:87: sem_wait() failed

......................

 

Those benchmarks are more likely execute some kernel functions multiple  times, for example if I reduce the threshold from 100000 times to 20000,

we will not hit this crash, so do any one encounter this issue before, i suspect it's a SDK issue.

 

Thanks.

Outcomes