We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5337ede commit fa71485Copy full SHA for fa71485
llama/toolchains/llvm.win32.host-x64.target-x64.cmake
@@ -18,3 +18,7 @@ set(arch_c_flags "-march=native")
18
19
set(CMAKE_C_FLAGS_INIT "${arch_c_flags}")
20
set(CMAKE_CXX_FLAGS_INIT "${arch_c_flags}")
21
+
22
+# Set the CUDA flags to use the same compiler as the C compiler
23
+get_filename_component(C_COMPILER_DIR "${CMAKE_C_COMPILER}" DIRECTORY)
24
+set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --compiler-bindir=${C_COMPILER_DIR}")
0 commit comments