How to compile .cl file that contains inline assembly for GCN cards?

862 Views Asked by At

There are some examples of inline assembly inside .cl files:

But I cannot find the way they can be compiled.

ROCM has this guide.

It seems that you can just export the env that points to ROCm's OpenCL and build your project as usual.

I wonder if that can automatically handle inline ASM.

I use AMDGPU pro driver.

Can I compile with a ROCm compiler and run it with an AMDGPU pro driver?

Also, if I can transform OpenCL with inline ASM into an ISA file and then compile ISA with a pure ASM compiler, it will also work for me.

1

There are 1 best solutions below

4
On

You need the ROCm Runtime (driver) to compile and run it.
AMDGPU Pro is not supporting assembly.