Skip to content

Commit c4ba161

Browse files
committed
rANS: Suppress bogus compiler warnings, and add / improve some comments
1 parent 9e9afd8 commit c4ba161

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDA.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ int32_t GPUReconstructionCUDA::InitDevice_Runtime()
416416
mInternals = master->mInternals;
417417
GPUFailedMsg(cudaSetDevice(mDeviceId));
418418

419-
GPUInfo("CUDA Initialized from master");
419+
GPUInfo("CUDA Initialisation successfull (from master)");
420420
}
421421

422422
for (uint32_t i = 0; i < mEvents.size(); i++) {

GPU/GPUTracking/Base/hip/GPUReconstructionHIPIncludesHost.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <hip/hip_ext.h>
2222
#include <hipcub/hipcub.hpp>
2323
#pragma GCC diagnostic push
24-
#pragma GCC diagnostic ignored "-Wshadow"
24+
#pragma GCC diagnostic ignored "-Wshadow" // FIXME: Is this still needed?
2525
#include <thrust/sort.h>
2626
#include <thrust/execution_policy.h>
2727
#include <thrust/device_ptr.h>

GPU/GPUTracking/Merger/GPUTPCGMMergedTrack.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class GPUTPCGMMergedTrack
114114
float mLastY; //* outer Y
115115
float mLastZ; //* outer Z
116116
uint32_t mFirstClusterRef; //* index of the first track cluster in corresponding cluster arrays
117+
// TODO: Change to 8 bit
117118
uint32_t mNClusters; //* number of track clusters
118119
uint32_t mNClustersFitted; //* number of clusters used in fit
119120
uint8_t mFlags;

Utilities/rANS/benchmarks/bench_ransDecode.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ void ransDecodeBenchmark(benchmark::State& st, Args&&... args)
112112
using input_data_type = std::remove_cv_t<std::remove_reference_t<decltype(inputData)>>;
113113
using source_type = typename input_data_type::value_type;
114114

115+
#pragma GCC diagnostic push // TODO: Remove me when fixed in GCC
116+
#pragma GCC diagnostic ignored "-Walloc-size-larger-than="
115117
EncodeBuffer<source_type> encodeBuffer{inputData.size()};
116118
DecodeBuffer<source_type> decodeBuffer{inputData.size()};
119+
#pragma GCC diagnostic pop
117120

118121
const auto histogram = makeDenseHistogram::fromSamples(gsl::span<const source_type>(inputData));
119122
Metrics<source_type> metrics{histogram};

0 commit comments

Comments
 (0)