Skip to content

Commit 103d1b4

Browse files
committed
Fix some compiler warnings with CUDA 12.4.
1 parent abfaac9 commit 103d1b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMake/hoomd/HOOMDCUDASetup.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ MARK_AS_ADVANCED(ALWAYS_USE_MANAGED_MEMORY)
77
if (ENABLE_HIP)
88
if (HIP_PLATFORM STREQUAL "nvcc")
99
# supress warnings in random123
10-
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcudafe --diag_suppress=code_is_unreachable -Xcompiler=-Wall -Xcompiler=-Wconversion")
10+
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcudafe --diag_suppress=code_is_unreachable -Xcompiler=-Wall -Xcompiler=-Wconversion -Xcompiler=-Wno-attributes")
1111

1212
# setup nvcc to build for all CUDA architectures. Allow user to modify the list if desired
1313
if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 11.0)

0 commit comments

Comments
 (0)