HIP: Add support for NVIDIA GPUs

Add support for using the CUDA Toolkit's NVCC to compile HIP code.

Fixes: #25143
This commit is contained in:
Brad King
2023-09-18 15:46:39 -04:00
parent 127b6fa06b
commit 18158bf81c
19 changed files with 221 additions and 27 deletions

View File

@@ -103,7 +103,7 @@ function(compiler_id_detection outvar lang)
endif()
if("x${lang}" STREQUAL "xHIP")
set(ordered_compilers Clang)
set(ordered_compilers NVIDIA Clang)
endif()
if(CID_ID_DEFINE)