Skip to content

Commit 930951c

Browse files
committed
GPU CMake: Fix -W option must be passed only to compiler, not to device compilation
1 parent d8e3640 commit 930951c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDAGenRTC.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ int GPUReconstructionCUDA::genRTC(std::string& filename, unsigned int& nCompile)
238238
}
239239
}
240240
fclose(fp);
241-
242241
}
243242
#endif
244243
}

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)