[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.
This commit is contained in:
Joseph Huber 2026-01-06 19:24:02 -06:00 committed by GitHub
parent 8136cb901b
commit 1ec343ddb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.