cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

fancyix
Adept I

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

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.

0 Likes
1 Reply
dipak
Big Boss

Just to help other users, here is a related thread having similar discussion: How to compile .cl file that contains inline assembly for GCN cards?

0 Likes