[Openmp-commits] [clang] [openmp] [OFFLOAD] Build DeviceRTL with SPIRV backend (PR #174675)
via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jan 8 17:51:28 PST 2026
fineg74 wrote:
> > * It complains about changes in address space in multiple places. Resolved it by commenting out __gpu_constant and __gpu_local
>
> Hmmm, might be because SPIR-V doesn't handle implicit conversions between address spaces? I'll need to look into that.
>
There is some issue in SPIR-V with address spaces. I remember Nick fixed some issues but likely not all.
> > * It complain about lack of __gpu_is_ptr_local. Resolved by dummy implementation
>
> To my knowledge, there's no way to handle this. I suppose I can provide it in the header but just hard-code it to always return false.
I also don't know how to do it in pure SPIRV way and there are many other APIs that are not supported by SPIRV so it is probably OK to provide some dummy implementations
https://github.com/llvm/llvm-project/pull/174675
More information about the Openmp-commits
mailing list