Replies: 2 comments 8 replies
-
It would require adding an extension to SPIR-V to define the inline asm text snippets (similarly to LLVM IR perhaps) and a mechanism to choose the correct snippet according to the JIT target (with a generic SPIR-V fallback). Definitely a useful feature, perhaps someone is working on this already. |
Beta Was this translation helpful? Give feedback.
6 replies
-
Another idea I had -- it might be possible to support inline PTX by converting it to SPIR-V. I believe ZLUDA (an implementation of libcuda for AMD GPUs) does this internally. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I realize that it might be hard to do this in SPIR-V, but would it be possible to put native assembly (e.g. AMDGCN code) or a higher-level assembly accepted by the OpenCL compiler/runtime/driver (e.g. Mesa NIR, Intel GEN vISA) inline in the device CUDA/HIP code, and have it then be used when on that device?
Beta Was this translation helpful? Give feedback.
All reactions