From 1ec343ddb5f1cddf14db5f776424121f8acbb9f4 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Tue, 6 Jan 2026 19:24:02 -0600 Subject: [PATCH] [libclc] Add support for `nvptx64-nvidia-cuda` triple (#174611) Summary: The OS here is the standard CUDA support target, which is the ABI used for all of the same intrinsics the `nvidiacl` target uses. These can be aliases asn `cuda` in the triple is the canonical form for most all GPU compute. --- libclc/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt index 52babf98075f..0694cbc4f400 100644 --- a/libclc/CMakeLists.txt +++ b/libclc/CMakeLists.txt @@ -154,6 +154,7 @@ set( LIBCLC_TARGETS_ALL r600-- nvptx64-- nvptx64--nvidiacl + nvptx64-nvidia-cuda ) # The mesa3d environment is only available since LLVM 4.0 @@ -205,6 +206,7 @@ set( clspv--_devices none ) set( clspv64--_devices none ) set( nvptx64--_devices none ) set( nvptx64--nvidiacl_devices none ) +set( nvptx64-nvidia-cuda_devices none ) set( spirv-mesa3d-_devices none ) set( spirv64-mesa3d-_devices none ) @@ -307,6 +309,9 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} ) else() set( DARCH ${ARCH} ) endif() + if ( "${OS}" STREQUAL cuda ) + set( OS nvidiacl ) + endif() # Append a variety of target- and triple-based directories to search, # increasing in specificity.