Skip to content

Commit 36f0b9c

Browse files
committed
GPU: Silence some compiler warnings
1 parent e01c2a3 commit 36f0b9c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

GPU/GPUTracking/Refit/GPUTrackingRefit.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ GPUd() int GPUTrackingRefit::RefitTrack(T& trkX, bool outward, bool resetCov)
254254

255255
for (int i = start; i != stop; i += cl ? 0 : direction) {
256256
float x = 0, y = 0, z = 0, charge = 0; // FIXME: initialization unneeded, but GCC incorrectly produces uninitialized warnings otherwise
257+
float time = 0.f, invCharge = 0.f, invSqrtCharge = 0.f; // Same here...
257258
int clusters = 0;
258-
float time, invCharge, invSqrtCharge;
259259
while (true) {
260260
if (!cl) {
261261
CADEBUG(ii = i);

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")
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")
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)