AnsweredAssumed Answered

Inline assembly on OpenCL

Question asked by lms135 on Sep 18, 2015
Latest reply on Sep 23, 2015 by matszpk

Hello, everyone.


I want to inject a inline assembly (or AMD IL?) to access hardware register values such as HW_ID.

I know it is possible with PTX in NVIDIA CUDA but I am not sure OpenCL with AMD GPU also supports this..


When I try to build a OpenCL kernel including the inline assembly in the CodeXL, it generates the error below:

          error: an "asm" declaration is not allowed here


If someone knows how to inject the inline assembly in the OpenCL kernel, please let me know...