ROCm / ROCm-OpenCL-Runtime

ROCm OpenOpenCL Runtime
170 stars 60 forks source link

Program compilation fails when options given #116

Open MageSlayer opened 4 years ago

MageSlayer commented 4 years ago

Hi

Calling clBuildProgram with any "-cl-std" option fails with error. Thus CL2.0 is not currently usable.

See test case - https://github.com/MageSlayer/openCL-helloWorld/commit/6cb42ad19cb4484c4dc1d80359c7d7a19dfde3d7

Tested under Gentoo rocm-opencl-runtime-3.3.0, Radeon RX580.

Dantali0n commented 4 years ago

I just tried to run your example and it worked without issues using rocm-3.5 and rx470.

Perhaps it would help if you would provide details about error information such as the OpenCL error code that is returned upon the failed call.

MageSlayer commented 4 years ago

It fails with CL_INVALID_COMPILER_OPTIONS / -66 error.

MageSlayer commented 4 years ago

Same issue under rocm-opencl-runtime-3.5.0