I’m building the ICD loader on ubuntu 12.04: (opencl-icd-1.2.11.0.tgz)
Build looks OK, but when I run it segfaults.
These are the last few lines in the output file (icd_test_app_log.txt):
....
clRetainMemObject((nil))
Value returned: -38
clSetMemObjectDestructorCallback((nil), 0x408457, (nil))
Value returned: -38
clEnqueueUnmapMemObject((nil), (
dmesg shows:
[117527.605377] icd_loader_test[29963]: segfault at 0 ip 00007fe12d9f134d sp 00007fffa32d21a0 error 4 in libOpenCL.so.1.2[7fe12d9ed000+7000]
Any idea what could be causing the problem?