[flang-commits] [flang] [flang][cuda] Implicitly load cudadevice module in device/global subprogram (PR #92038)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Tue May 14 15:16:32 PDT 2024
Valentin Clement =?utf-8?b?KOODkOODrOODsw==?=
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/92038 at github.com>
================
@@ -26,11 +27,15 @@ set(MODULES
if (NOT CMAKE_CROSSCOMPILING)
foreach(filename ${MODULES})
set(depends "")
+ set(opts "")
if(${filename} STREQUAL "__fortran_builtins" OR
${filename} STREQUAL "__ppc_types")
elseif(${filename} STREQUAL "__ppc_intrinsics" OR
${filename} STREQUAL "mma")
set(depends ${FLANG_INTRINSIC_MODULES_DIR}/__ppc_types.mod)
+ elseif(${filename} STREQUAL "cudadevice")
+ set(opts "-xcuda")
----------------
clementval wrote:
```suggestion
set(opts "-xcuda -nocudainc")
```
https://github.com/llvm/llvm-project/pull/92038
More information about the flang-commits
mailing list