-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
350 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#ifndef RecoTracker_LSTCore_interface_ObjectRangesSoA_h | ||
#define RecoTracker_LSTCore_interface_ObjectRangesSoA_h | ||
|
||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
#include "DataFormats/Portable/interface/PortableCollection.h" | ||
|
||
namespace lst { | ||
|
||
GENERATE_SOA_LAYOUT(ObjectRangesSoALayout, | ||
SOA_COLUMN(ArrayIx2, hitRanges), | ||
SOA_COLUMN(int, hitRangesLower), | ||
SOA_COLUMN(int, hitRangesUpper), | ||
SOA_COLUMN(int8_t, hitRangesnLower), | ||
SOA_COLUMN(int8_t, hitRangesnUpper), | ||
SOA_COLUMN(ArrayIx2, mdRanges), | ||
SOA_COLUMN(ArrayIx2, segmentRanges), | ||
SOA_COLUMN(ArrayIx2, trackletRanges), | ||
SOA_COLUMN(ArrayIx2, tripletRanges), | ||
SOA_COLUMN(ArrayIx2, quintupletRanges)) | ||
|
||
// triplets and quintuplets end up with an ununsed pixel entry at the end | ||
GENERATE_SOA_LAYOUT(ObjectOccupancySoALayout, | ||
SOA_COLUMN(int, miniDoubletModuleIndices), | ||
SOA_COLUMN(int, miniDoubletModuleOccupancy), | ||
SOA_COLUMN(int, segmentModuleIndices), | ||
SOA_COLUMN(int, segmentModuleOccupancy), | ||
SOA_COLUMN(int, tripletModuleIndices), | ||
SOA_COLUMN(int, tripletModuleOccupancy), | ||
SOA_COLUMN(int, quintupletModuleIndices), | ||
SOA_COLUMN(int, quintupletModuleOccupancy), | ||
SOA_COLUMN(uint16_t, indicesOfEligibleT5Modules), | ||
SOA_SCALAR(unsigned int, nTotalMDs), | ||
SOA_SCALAR(unsigned int, nTotalSegs), | ||
SOA_SCALAR(unsigned int, nTotalTrips), | ||
SOA_SCALAR(unsigned int, nTotalQuints), | ||
SOA_SCALAR(uint16_t, nEligibleT5Modules)) | ||
|
||
using ObjectRangesSoA = ObjectRangesSoALayout<>; | ||
using ObjectOccupancySoA = ObjectOccupancySoALayout<>; | ||
|
||
using ObjectRanges = ObjectRangesSoA::View; | ||
using ObjectRangesConst = ObjectRangesSoA::ConstView; | ||
using ObjectOccupancy = ObjectOccupancySoA::View; | ||
using ObjectOccupancyConst = ObjectOccupancySoA::ConstView; | ||
|
||
using ObjectRangesHostCollection = PortableHostMultiCollection<ObjectRangesSoA, ObjectOccupancySoA>; | ||
|
||
} // namespace lst | ||
|
||
#endif |
12 changes: 12 additions & 0 deletions
12
RecoTracker/LSTCore/interface/alpaka/ObjectRangesDeviceCollection.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef RecoTracker_LSTCore_interface_alpaka_ObjectRangesDeviceCollection_h | ||
#define RecoTracker_LSTCore_interface_alpaka_ObjectRangesDeviceCollection_h | ||
|
||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
|
||
#include "RecoTracker/LSTCore/interface/ObjectRangesSoA.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE::lst { | ||
using ObjectRangesDeviceCollection = PortableCollection2<ObjectRangesSoA, ObjectOccupancySoA>; | ||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE::lst | ||
|
||
#endif |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.