$ pkg install pocl clpeak
Platform: Portable Computing Language
Device: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Driver version : 1.4 (FreeBSD)
Compute units : 8
Clock frequency : 4601 MHz
Global memory bandwidth (GBPS)
float : clEnqueueNDRangeKernel (-63)
Single-precision compute (GFLOPS)
No half precision support! Skipped
Double-precision compute (GFLOPS)
Integer compute (GIOPS)
Transfer bandwidth (GBPS)
enqueueWriteBuffer : 0.00
enqueueReadBuffer : 0.00
enqueueMapBuffer(for read) : 0.00
memcpy from mapped ptr : inf
enqueueUnmap(after write) : 0.00
memcpy to mapped ptr : inf
Kernel launch latency : dlopen("/home/foo/.cache/pocl/kcache/JH/IDMFGLODMLKNOOOIDKINDHECPPKMGBKLEIOBN/global_bandwidth_v1_local_offset/256-1-1-goffs0-smallgrid/global_bandwidth_v1_local_offset.so") failed with 'Undefined symbol "clGetPlatformInfo"'.
note: missing symbols in the kernel binary might be reported as 'file not found' errors.
Not reproducible with 1.3 (previous version).
It affects me, too. Think this is a bug affecting many people.
Created attachment 218627 [details]
patch that fixes the problem
The displayed error does not come from the dlopen call but from the last dlsym call in the icd loader.
Including a patch that solves the problem.
The problem was caused by the change from libltdl to libdl in version 1.4. Therefore, the dependency on libltdl.so in the Makefile is actually superfluous.