[libclc] [libclc] Initial support for cross-compiling OpenCL libraries (PR #174022)

Wenju He via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 4 03:11:06 PST 2026


================
@@ -206,10 +218,12 @@ set( r600--_devices cedar cypress barts cayman )
 set( amdgcn--_devices tahiti )
 set( amdgcn-mesa-mesa3d_devices ${amdgcn--_devices} )
 set( amdgcn--amdhsa_devices none )
+set( amdgcn-amd-amdhsa_devices none )
 set( clspv--_devices none )
 set( clspv64--_devices none )
 set( nvptx--_devices none )
 set( nvptx64--_devices none )
+set( nvptx64-nvidia-cuda_devices none )
----------------
wenju-he wrote:

Should the libclc implementation for this triple be unified with nvptx--nvidiacl/nvptx64--nvidiacl? Otherwise nvptx64-nvidia-cuda_devices won't pick up the code under ptx-nvidiacl.
nv implementations are in ptx-nvidiacl folder (https://github.com/llvm/llvm-project/tree/main/libclc/clc/lib/ptx-nvidiacl and https://github.com/llvm/llvm-project/tree/main/libclc/opencl/lib/ptx-nvidiacl)
and libclc uses the triple components to select the folder (see https://github.com/llvm/llvm-project/blob/7ada89276fd0492a06b02f345f76f43efb588806/libclc/CMakeLists.txt#L320).


https://github.com/llvm/llvm-project/pull/174022


More information about the cfe-commits mailing list