clang-ocl icon indicating copy to clipboard operation
clang-ocl copied to clipboard

Compiling OpenCL >= 2.0 for RX 580 (polaris)

Open sabbaghm opened this issue 6 years ago • 0 comments

I wanted to compile an OpenCL program targeting RX 580 GPU using the clang-ocl and/or rocm flow, but in the build log it says:

Error: Failed to compile OpenCL source (from CL to LLVM IR).

I am using atomic types and methods in my kernel (e.g. atomic_int and `atomic_load_explicit()'), however, it considers them unknown or undeclared identifier.

What is the procedure to compile an OpenCL >= 2.0 program using ROCm flow?

Thank you!

sabbaghm avatar Feb 12 '19 16:02 sabbaghm