AnsweredAssumed Answered

ROCM - How to compile kernel code

Question asked by sampie on Feb 27, 2018
Latest reply on Feb 28, 2018 by sampie



Is it possible to compile OpenCL C 2.0 kernels separately in rocm environment?


I am trying OpenCL C 2.0 features and clBuildProgram seems to terminate with segfault. I am thinking that compiling with some other way might give some messages indicating what is wrong.


I have read that compiling OpenCL kernel is somehow related to clang. I have clang 4.0 on my system and I also see /opt/rocm/opencl/bin/x86_64/clang and /opt/rocm/bin/clang-ocl that came with ROCM 1.7.


If possible, with what command can I compile opencl (2.0) kernel file?