Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(RFC) Use of ECL-CC #22

Open
wants to merge 4 commits into
base: PFRecHitAndCluster_GPU_12_5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CUDADataFormats/PFCommon/interface/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ namespace pf {
template <>
struct AddSize<tags::Vec> {
uint32_t size; // Total size of PFRecHits passing cuts
uint32_t sizeCleaned; // Number of PFRecHits that are cleaned (fail cuts)
//uint32_t sizeCleaned; // Number of PFRecHits that are cleaned (fail cuts)
};

template <>
struct AddSize<tags::Ptr> {
uint32_t size; // Total size of PFRecHits passing cuts
uint32_t sizeCleaned; // Number of PFRecHits that are cleaned (fail cuts)
//uint32_t sizeCleaned; // Number of PFRecHits that are cleaned (fail cuts)
};

template <>
struct AddSize<tags::DevPtr> {
uint32_t size; // Total size of PFRecHits passing cuts
uint32_t sizeCleaned; // Number of PFRecHits that are cleaned (fail cuts)
//uint32_t sizeCleaned; // Number of PFRecHits that are cleaned (fail cuts)
};

struct ViewStoragePolicy {
Expand Down
7 changes: 7 additions & 0 deletions RecoParticleFlow/PFClusterProducer/plugins/DeclsForKernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ namespace PFRecHit {
} // namespace PFRecHit

namespace PFClustering {

namespace HCAL {
struct ConfigurationParameters {
uint32_t maxRH = 4000; // previously: 2000
Expand Down Expand Up @@ -258,8 +259,10 @@ namespace PFClustering {
struct ScratchDataGPU {
cms::cuda::device::unique_ptr<int[]> rhcount;
cms::cuda::device::unique_ptr<int[]> pfrh_edgeId;
cms::cuda::device::unique_ptr<int[]> pfrh_edgeIdx;
cms::cuda::device::unique_ptr<int[]> pfrh_edgeList;
cms::cuda::device::unique_ptr<int[]> pfrh_edgeMask;
cms::cuda::device::unique_ptr<int[]> wl_d;

cms::cuda::device::unique_ptr<float[]> pcrh_fracSum;
cms::cuda::device::unique_ptr<float4[]> pfc_prevPos4;
Expand All @@ -268,10 +271,14 @@ namespace PFClustering {
rhcount = cms::cuda::make_device_unique<int[]>(sizeof(int) * config.maxRH, cudaStream);
pfrh_edgeId =
cms::cuda::make_device_unique<int[]>(sizeof(int) * config.maxRH * config.maxNeighbors, cudaStream);
pfrh_edgeIdx =
cms::cuda::make_device_unique<int[]>(sizeof(int) * config.maxRH+1, cudaStream);
pfrh_edgeList =
cms::cuda::make_device_unique<int[]>(sizeof(int) * config.maxRH * config.maxNeighbors, cudaStream);
pfrh_edgeMask =
cms::cuda::make_device_unique<int[]>(sizeof(int) * config.maxRH * config.maxNeighbors, cudaStream);
wl_d =
cms::cuda::make_device_unique<int[]>(sizeof(int) * config.maxRH, cudaStream);

pcrh_fracSum = cms::cuda::make_device_unique<float[]>(sizeof(float) * config.maxRH, cudaStream);
pfc_prevPos4 = cms::cuda::make_device_unique<float4[]>(sizeof(float4) * config.maxRH, cudaStream);
Expand Down
Loading