https://github.com/jhuber6 created 
https://github.com/llvm/llvm-project/pull/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.

WIP


>From 385872c699f2e8cecf65476b8239cb6a39684f20 Mon Sep 17 00:00:00 2001
From: Joseph Huber <[email protected]>
Date: Tue, 6 Jan 2026 09:41:00 -0600
Subject: [PATCH] [libclc] Add support for `nvptx64-nvidia-cuda` triple

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.

WIP
---
 libclc/CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index 52babf98075fc..48fa9649d6d3d 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( DOS nvidiacl )
+  endif()
 
   # Append a variety of target- and triple-based directories to search,
   # increasing in specificity.

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to