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

Move common ESProducer templates to ConvertingESProducer(WithDependencies)T #569

Conversation

fwyzard
Copy link

@fwyzard fwyzard commented Nov 12, 2020

Move few similar implementations of templated ESProducers

  • EcalESProducerGPU
  • EcalRawESProducerGPU
  • HcalESProducerGPU
  • HcalESProducerGPUWithDependencies
  • HcalRawESProducerGPU
    to a common implementation under HeterogeneousCore/CUDACore/ .

Adapt all client code accordingly.

@fwyzard fwyzard added enhancement ECAL ECAL-related developments HCAL HCAL-related developments labels Nov 12, 2020
Copy link

@makortel makortel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't place comments for ConvertingESProducerWithDependenciesT.h so I do it here

  • It is still using edm::ESTransientHandle
  • The constructor could construct std::vector<edm::ESInputTag> directly instead of std::vector<std::string>
  • I'm a bit concerned that the label<N> parameters can be(come) confusing, on the other hand this could be good enough to support current use cases

@fwyzard fwyzard force-pushed the move_common_templates_to_ConvertingESProducer branch 2 times, most recently from d7bea75 to 23404b3 Compare November 12, 2020 18:10
…cies)T

Move few similar implementations of templated ESProducers
  - EcalESProducerGPU
  - EcalRawESProducerGPU
  - HcalESProducerGPU
  - HcalESProducerGPUWithDependencies
  - HcalRawESProducerGPU
to a common implementation under HeterogeneousCore/CUDACore/ .

Adapt all client code accordingly.

Do not use transient handles to avoid ESProducers taking references to
transient memory objects.
@fwyzard fwyzard force-pushed the move_common_templates_to_ConvertingESProducer branch from 23404b3 to e238b29 Compare November 12, 2020 18:23
@fwyzard fwyzard merged commit f7775e7 into cms-patatrack:CMSSW_11_2_X_Patatrack Nov 12, 2020
@fwyzard fwyzard deleted the move_common_templates_to_ConvertingESProducer branch November 12, 2020 22:25
fwyzard added a commit that referenced this pull request Nov 12, 2020
…cies)T (#569)

Move few similar implementations of templated ESProducers
  - EcalESProducerGPU
  - EcalRawESProducerGPU
  - HcalESProducerGPU
  - HcalESProducerGPUWithDependencies
  - HcalRawESProducerGPU
to a common implementation under HeterogeneousCore/CUDACore/ .

Adapt all client code accordingly.

Do not use transient handles to avoid ESProducers taking references to
transient memory objects.
fwyzard added a commit that referenced this pull request Nov 12, 2020
…cies)T (#569)

Move few similar implementations of templated ESProducers
  - EcalESProducerGPU
  - EcalRawESProducerGPU
  - HcalESProducerGPU
  - HcalESProducerGPUWithDependencies
  - HcalRawESProducerGPU
to a common implementation under HeterogeneousCore/CUDACore/ .

Adapt all client code accordingly.

Do not use transient handles to avoid ESProducers taking references to
transient memory objects.
fwyzard added a commit that referenced this pull request Nov 16, 2020
…cies)T (#569)

Move few similar implementations of templated ESProducers
  - EcalESProducerGPU
  - EcalRawESProducerGPU
  - HcalESProducerGPU
  - HcalESProducerGPUWithDependencies
  - HcalRawESProducerGPU
to a common implementation under HeterogeneousCore/CUDACore/ .

Adapt all client code accordingly.

Do not use transient handles to avoid ESProducers taking references to
transient memory objects.
fwyzard added a commit that referenced this pull request Nov 16, 2020
…cies)T (#569)

Move few similar implementations of templated ESProducers
  - EcalESProducerGPU
  - EcalRawESProducerGPU
  - HcalESProducerGPU
  - HcalESProducerGPUWithDependencies
  - HcalRawESProducerGPU
to a common implementation under HeterogeneousCore/CUDACore/ .

Adapt all client code accordingly.

Do not use transient handles to avoid ESProducers taking references to
transient memory objects.
fwyzard added a commit that referenced this pull request Nov 26, 2020
…cies)T (#569)

Move few similar implementations of templated ESProducers
  - EcalESProducerGPU
  - EcalRawESProducerGPU
  - HcalESProducerGPU
  - HcalESProducerGPUWithDependencies
  - HcalRawESProducerGPU
to a common implementation under HeterogeneousCore/CUDACore/ .

Adapt all client code accordingly.

Do not use transient handles to avoid ESProducers taking references to
transient memory objects.
fwyzard added a commit that referenced this pull request Nov 26, 2020
…cies)T (#569)

Move few similar implementations of templated ESProducers
  - EcalESProducerGPU
  - EcalRawESProducerGPU
  - HcalESProducerGPU
  - HcalESProducerGPUWithDependencies
  - HcalRawESProducerGPU
to a common implementation under HeterogeneousCore/CUDACore/ .

Adapt all client code accordingly.

Do not use transient handles to avoid ESProducers taking references to
transient memory objects.
fwyzard pushed a commit that referenced this pull request Dec 25, 2020
…cies)T (#569)

Move few similar implementations of templated ESProducers
  - EcalESProducerGPU
  - EcalRawESProducerGPU
  - HcalESProducerGPU
  - HcalESProducerGPUWithDependencies
  - HcalRawESProducerGPU
to a common implementation under HeterogeneousCore/CUDACore/ .

Adapt all client code accordingly.

Do not use transient handles to avoid ESProducers taking references to
transient memory objects.
fwyzard added a commit that referenced this pull request Dec 29, 2020
…cies)T (#569)

Move few similar implementations of templated ESProducers
  - EcalESProducerGPU
  - EcalRawESProducerGPU
  - HcalESProducerGPU
  - HcalESProducerGPUWithDependencies
  - HcalRawESProducerGPU
to a common implementation under HeterogeneousCore/CUDACore/ .

Adapt all client code accordingly.

Do not use transient handles to avoid ESProducers taking references to
transient memory objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ECAL ECAL-related developments enhancement HCAL HCAL-related developments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants