Skip to content

Commit 318521b

Browse files
committed
GPU: Fix HIP compiler warnings
1 parent 439e416 commit 318521b

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

GPU/GPUTracking/Base/GPUReconstructionConvert.cxx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,21 @@ void GPUReconstructionConvert::ConvertNativeToClusterData(o2::tpc::ClusterNative
4545
nClSlice = 0;
4646
for (int j = 0; j < GPUCA_ROW_COUNT; j++) {
4747
for (unsigned int k = 0; k < native->nClusters[i][j]; k++) {
48-
const auto& cin = native->clusters[i][j][k];
48+
const auto& clin = native->clusters[i][j][k];
4949
float x = 0, y = 0, z = 0;
5050
if (continuousMaxTimeBin == 0) {
51-
transform->Transform(i, j, cin.getPad(), cin.getTime(), x, y, z);
51+
transform->Transform(i, j, clin.getPad(), clin.getTime(), x, y, z);
5252
} else {
53-
transform->TransformInTimeFrame(i, j, cin.getPad(), cin.getTime(), x, y, z, continuousMaxTimeBin);
53+
transform->TransformInTimeFrame(i, j, clin.getPad(), clin.getTime(), x, y, z, continuousMaxTimeBin);
5454
}
55-
auto& cout = clusters[i].get()[nClSlice];
56-
cout.x = x;
57-
cout.y = y;
58-
cout.z = z;
59-
cout.row = j;
60-
cout.amp = cin.qTot;
61-
cout.flags = cin.getFlags();
62-
cout.id = offset + k;
55+
auto& clout = clusters[i].get()[nClSlice];
56+
clout.x = x;
57+
clout.y = y;
58+
clout.z = z;
59+
clout.row = j;
60+
clout.amp = clin.qTot;
61+
clout.flags = clin.getFlags();
62+
clout.id = offset + k;
6363
nClSlice++;
6464
}
6565
native->clusterOffset[i][j] = offset;

GPU/GPUTracking/TPCConvert/GPUTPCConvertKernel.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ GPUd() void GPUTPCConvertKernel::Thread<0>(int nBlocks, int nThreads, int iBlock
3232
const int indexOffset = native->clusterOffset[iSlice][iRow] - native->clusterOffset[iSlice][0];
3333

3434
for (unsigned int k = get_local_id(0); k < native->nClusters[iSlice][iRow]; k += get_local_size(0)) {
35-
const auto& cin = native->clusters[iSlice][iRow][k];
35+
const auto& clin = native->clusters[iSlice][iRow][k];
3636
float x, y, z;
37-
GPUTPCConvertImpl::convert(processors, iSlice, iRow, cin.getPad(), cin.getTime(), x, y, z);
38-
auto& cout = clusters[indexOffset + k];
39-
cout.x = x;
40-
cout.y = y;
41-
cout.z = z;
42-
cout.row = iRow;
43-
cout.amp = cin.qTot;
44-
cout.flags = cin.getFlags();
45-
cout.id = idOffset + k;
37+
GPUTPCConvertImpl::convert(processors, iSlice, iRow, clin.getPad(), clin.getTime(), x, y, z);
38+
auto& clout = clusters[indexOffset + k];
39+
clout.x = x;
40+
clout.y = y;
41+
clout.z = z;
42+
clout.row = iRow;
43+
clout.amp = clin.qTot;
44+
clout.flags = clin.getFlags();
45+
clout.id = idOffset + k;
4646
#ifdef GPUCA_TPC_RAW_PROPAGATE_PAD_ROW_TIME
47-
cout.pad = cin.getPad();
48-
cout.time = cin.getTime();
47+
clout.pad = clin.getPad();
48+
clout.time = clin.getTime();
4949
#endif
5050
}
5151
}

0 commit comments

Comments
 (0)