fancyix

How to use llvm to offline compile .cl file into binary that can run with amdgpu pro driver?

Discussion created by fancyix on Aug 24, 2018
Latest reply on Aug 29, 2018 by dipak

Now I am trying to build OpenCL kernel binary with llvm. I successfully compiled .cl into assembly, but cannot figure out a way to compile that format of assembly into binary that can run with AMDGPU pro driver. That format is not compatible with CLRadeonExtender assembler so it seems I need to use llvm's own tool to build the binary. How can I do so. Either a method to compile that format of assembly into binary, or a method to compile OpenCL file into binary, will help me.

Outcomes