Skip to content

Commit

Permalink
Moved MiniDoubletsDeviceCollection definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas committed Oct 14, 2024
1 parent 3b4fa9e commit 36a8c43
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
9 changes: 4 additions & 5 deletions RecoTracker/LSTCore/interface/MiniDoubletsSoA.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#define RecoTracker_LSTCore_interface_MiniDoubletsSoA_h

#include "DataFormats/SoATemplate/interface/SoALayout.h"
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h"
#include "DataFormats/Portable/interface/PortableCollection.h"

namespace ALPAKA_ACCELERATOR_NAMESPACE::lst {
namespace lst {

GENERATE_SOA_LAYOUT(MiniDoubletsSoALayout,
SOA_COLUMN(unsigned int, anchorHitIndices),
Expand Down Expand Up @@ -53,9 +53,8 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE::lst {
using MiniDoubletsOccupancy = MiniDoubletsOccupancySoA::View;
using MiniDoubletsOccupancyConst = MiniDoubletsOccupancySoA::ConstView;

using MiniDoubletsDeviceCollection = PortableCollection2<MiniDoubletsSoA, MiniDoubletsOccupancySoA>;
using MiniDoubletsHostCollection = PortableHostMultiCollection<MiniDoubletsSoA, MiniDoubletsOccupancySoA>;

} // namespace ALPAKA_ACCELERATOR_NAMESPACE::lst
} // namespace lst

#endif
#endif
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
1 change: 1 addition & 0 deletions RecoTracker/LSTCore/src/alpaka/MiniDoublet.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "RecoTracker/LSTCore/interface/alpaka/Constants.h"
#include "RecoTracker/LSTCore/interface/MiniDoubletsSoA.h"
#include "RecoTracker/LSTCore/interface/alpaka/MiniDoubletsDeviceCollection.h"
#include "RecoTracker/LSTCore/interface/Module.h"
#include "RecoTracker/LSTCore/interface/EndcapGeometry.h"

Expand Down

0 comments on commit 36a8c43

Please sign in to comment.