-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from SegmentLinking/mds_soa
Migrate MDs to SoA+PortableCollection
- Loading branch information
Showing
14 changed files
with
751 additions
and
846 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#ifndef RecoTracker_LSTCore_interface_MiniDoubletsSoA_h | ||
#define RecoTracker_LSTCore_interface_MiniDoubletsSoA_h | ||
|
||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
#include "DataFormats/Portable/interface/PortableCollection.h" | ||
|
||
namespace lst { | ||
|
||
GENERATE_SOA_LAYOUT(MiniDoubletsSoALayout, | ||
SOA_COLUMN(unsigned int, anchorHitIndices), | ||
SOA_COLUMN(unsigned int, outerHitIndices), | ||
SOA_COLUMN(uint16_t, moduleIndices), | ||
SOA_COLUMN(float, dphichanges), | ||
SOA_COLUMN(float, dzs), | ||
SOA_COLUMN(float, dphis), | ||
SOA_COLUMN(float, shiftedXs), | ||
SOA_COLUMN(float, shiftedYs), | ||
SOA_COLUMN(float, shiftedZs), | ||
SOA_COLUMN(float, noShiftedDphis), | ||
SOA_COLUMN(float, noShiftedDphiChanges), | ||
SOA_COLUMN(float, anchorX), | ||
SOA_COLUMN(float, anchorY), | ||
SOA_COLUMN(float, anchorZ), | ||
SOA_COLUMN(float, anchorRt), | ||
SOA_COLUMN(float, anchorPhi), | ||
SOA_COLUMN(float, anchorEta), | ||
SOA_COLUMN(float, anchorHighEdgeX), | ||
SOA_COLUMN(float, anchorHighEdgeY), | ||
SOA_COLUMN(float, anchorLowEdgeX), | ||
SOA_COLUMN(float, anchorLowEdgeY), | ||
SOA_COLUMN(float, anchorLowEdgePhi), | ||
SOA_COLUMN(float, anchorHighEdgePhi), | ||
SOA_COLUMN(float, outerX), | ||
SOA_COLUMN(float, outerY), | ||
SOA_COLUMN(float, outerZ), | ||
SOA_COLUMN(float, outerRt), | ||
SOA_COLUMN(float, outerPhi), | ||
SOA_COLUMN(float, outerEta), | ||
SOA_COLUMN(float, outerHighEdgeX), | ||
SOA_COLUMN(float, outerHighEdgeY), | ||
SOA_COLUMN(float, outerLowEdgeX), | ||
SOA_COLUMN(float, outerLowEdgeY)); | ||
|
||
GENERATE_SOA_LAYOUT(MiniDoubletsOccupancySoALayout, | ||
SOA_COLUMN(unsigned int, nMDs), | ||
SOA_COLUMN(unsigned int, totOccupancyMDs)); | ||
|
||
using MiniDoubletsSoA = MiniDoubletsSoALayout<>; | ||
using MiniDoubletsOccupancySoA = MiniDoubletsOccupancySoALayout<>; | ||
|
||
using MiniDoublets = MiniDoubletsSoA::View; | ||
using MiniDoubletsConst = MiniDoubletsSoA::ConstView; | ||
using MiniDoubletsOccupancy = MiniDoubletsOccupancySoA::View; | ||
using MiniDoubletsOccupancyConst = MiniDoubletsOccupancySoA::ConstView; | ||
|
||
using MiniDoubletsHostCollection = PortableHostMultiCollection<MiniDoubletsSoA, MiniDoubletsOccupancySoA>; | ||
|
||
} // namespace lst | ||
|
||
#endif |
12 changes: 12 additions & 0 deletions
12
RecoTracker/LSTCore/interface/alpaka/MiniDoubletsDeviceCollection.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_MiniDoubletsSoA_h | ||
#define RecoTracker_LSTCore_interface_alpaka_MiniDoubletsSoA_h | ||
|
||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
|
||
#include "RecoTracker/LSTCore/interface/MiniDoubletsSoA.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE::lst { | ||
using MiniDoubletsDeviceCollection = PortableCollection2<MiniDoubletsSoA, MiniDoubletsOccupancySoA>; | ||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE::lst | ||
|
||
#endif |
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.