Skip to content

Commit e5ae12f

Browse files
committed
Second round of comments - part II
1 parent 777aa18 commit e5ae12f

File tree

40 files changed

+83
-44
lines changed

40 files changed

+83
-44
lines changed

DQM/SiPixelHeterogeneous/plugins/SiPixelMonitorRecHitsSoAAlpaka.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,4 @@ DEFINE_FWK_MODULE(SiPixelMonitorRecHitsSoAAlpaka);
195195
DEFINE_FWK_MODULE(SiPixelPhase1MonitorRecHitsSoAAlpaka);
196196
DEFINE_FWK_MODULE(SiPixelPhase2MonitorRecHitsSoAAlpaka);
197197
DEFINE_FWK_MODULE(SiPixelHIonPhase1MonitorRecHitsSoAAlpaka);
198+

DataFormats/TrackSoA/interface/TracksSoA.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ namespace reco {
5454
auto end = tracks[i].hitOffsets();
5555
auto hitId = hits[start].id();
5656
int nl = 1;
57-
auto ol = 0;
57+
int ol = 0;
5858
while (hitId >= layerStarts[ol + 1] and ol < maxLayers)
5959
++ol;
6060
++start;
6161
for (; start < end; ++start) {
6262
hitId = hits[start].id();
63-
auto il = 0;
63+
int il = 0;
6464
while (hitId >= layerStarts[il + 1] and il < maxLayers)
6565
++il;
6666
if (il != ol)

DataFormats/TrackSoA/src/alpaka/classes_cuda_def.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
<class name="edm::DeviceProduct<alpaka_cuda_async::reco::TracksSoACollection>" persistent="false"/>
44
<class name="edm::Wrapper<edm::DeviceProduct<alpaka_cuda_async::reco::TracksSoACollection>>" persistent="false"/>
55
</lcgdict>
6+

DataFormats/TrackSoA/src/alpaka/classes_rocm_def.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
<class name="edm::DeviceProduct<alpaka_rocm_async::reco::TracksSoACollection>" persistent="false"/>
44
<class name="edm::Wrapper<edm::DeviceProduct<alpaka_rocm_async::reco::TracksSoACollection>>" persistent="false"/>
55
</lcgdict>
6+

DataFormats/TrackSoA/src/classes_def.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
<class name="portablecollection::CollectionLeaf<1, reco::TrackHitsLayout<128, false>>"/>
1616

1717
</lcgdict>
18+

DataFormats/TrackSoA/test/BuildFile.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
</library>
2222

2323
<test name="testWriteAndReadTrackSoA" command="testWriteAndReadTrackSoA.sh" />
24+

DataFormats/TrackSoA/test/alpaka/TrackSoAHeterogeneous_test.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int main() {
4141
"the test will be skipped.\n";
4242
exit(EXIT_FAILURE);
4343
}
44-
44+
4545
// Run the test on each device
4646
for (const auto& device : devices) {
4747
Queue queue(device);
@@ -51,14 +51,14 @@ int main() {
5151
// Instantiate tracks on device. PortableDeviceCollection allocates
5252
// SoA on device automatically.
5353
constexpr auto nTracks = 1000;
54-
constexpr auto nHits = nTracks * 5;
54+
constexpr auto nHits = nTracks * 5;
5555

56-
TracksSoACollection tracks_d({{nTracks,nHits}},queue);
56+
TracksSoACollection tracks_d({{nTracks, nHits}}, queue);
5757
testTrackSoA::runKernels(tracks_d.view(), queue);
5858

5959
// Instantate tracks on host. This is where the data will be
6060
// copied to from device.
61-
::reco::TracksHost tracks_h({{nTracks,nHits}},queue);
61+
::reco::TracksHost tracks_h({{nTracks, nHits}}, queue);
6262

6363
std::cout << "no. of tracks = " << tracks_h.view().metadata().size() << std::endl;
6464
alpaka::memcpy(queue, tracks_h.buffer(), tracks_d.const_buffer());

DataFormats/TrackSoA/test/testReadHostTrackSoA.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616

1717
process.path = cms.Path(process.testReadHostTrackSoA)
1818

19-
process.endPath = cms.EndPath(process.out)
19+
process.endPath = cms.EndPath(process.out)
20+

DataFormats/TrackSoA/test/testWriteAndReadTrackSoA.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ if [ $? -ne 0 ]; then
1919
fi
2020

2121
echo '>>>> Done! <<<<'
22+

DataFormats/TrackSoA/test/testWriteHostTrackSoA.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
process.path = cms.Path(process.trackSoA)
1919
process.endPath = cms.EndPath(process.out)
2020

21-
'testTrackSoAWriter.root'
21+
'testTrackSoAWriter.root'
22+

0 commit comments

Comments
 (0)