undefined symbol: clCreateSubDevices
설치도 다 됐는데 예제를 실행 했더니 위와 같이 "undefined symbol: clCreateSubDevices" 에러를 내뿜는 경우가 있다.
원인: If you feed PyOpenCL headers for CL 1.2 and then compile against an ICD loader that doesn't implement 1.2 functions (e.g. clCreateSubDevice), then you get this breakage. The above fixes that, by forcing PyOpenCL to ignore 1.2.
해결방법
pyopencl 소스폴더로 가서 siteconf.py 파일을 열고 아래와 같이 추가해준다.
CL_PRETEND_VERSION = "1.1"



덧글