ROCm / ROCm-OpenCL-Runtime

ROCm OpenOpenCL Runtime
166 stars 60 forks source link

Can RoCm-opencl-runtime support build objects with clCreateProgramWithBinary runtime API ? #131

Closed malixian closed 3 years ago

malixian commented 3 years ago

I have intermediate device-agnostic binaries(SPIRV) and I wish to build objects with clCreateProgramWithBinary runtime API . I find this way works from document. Can RoCm-opencl-runtime support this way?

preda commented 3 years ago

AFAIK ROCm OpenCL does not accept SPIRV binary kernels. (It does accept another form of binary kernels though, a form of ELF object code, which is not portable, thus probably not what you want).