Skip to content

Commit e3bea38

Browse files
committed
GPU CMake: Fix -W option must be passed only to compiler, not to device compilation
1 parent 3844c23 commit e3bea38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dependencies/FindO2GPU.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ if(ENABLE_CUDA)
111111
endif()
112112
endif()
113113
if(CMAKE_CUDA_COMPILER)
114-
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler \"${O2_GPU_CMAKE_CXX_FLAGS_NOSTD}\" --expt-relaxed-constexpr --extended-lambda --allow-unsupported-compiler -Xptxas -v -Wno-attributes")
114+
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler \"${O2_GPU_CMAKE_CXX_FLAGS_NOSTD}\" --expt-relaxed-constexpr --extended-lambda --allow-unsupported-compiler -Xptxas -v -Xcompiler -Wno-attributes")
115115
if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL "12.3")
116116
string(APPEND CMAKE_CUDA_FLAGS " -Xcudafe --diag_suppress=20257") # TODO: Cleanup
117117
endif()

0 commit comments

Comments
 (0)