Skip to content

Commit

Permalink
Merge pull request #40796 from makortel/testGetDev
Browse files Browse the repository at this point in the history
[13_0_X] Remove call to alpaka::getDev() in test code when allocating TestDeviceCollection
  • Loading branch information
cmsbuild authored Feb 17, 2023
2 parents 28633a5 + 334b45d commit de835de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
void produce(edm::StreamID, device::Event& iEvent, device::EventSetup const& iSetup) const override {
[[maybe_unused]] auto const& esData = iSetup.getData(esToken_);

portabletest::TestDeviceCollection deviceProduct{size_, alpaka::getDev(iEvent.queue())};
portabletest::TestDeviceCollection deviceProduct{size_, iEvent.queue()};

// run the algorithm, potentially asynchronously
algo_.fill(iEvent.queue(), deviceProduct);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
void produce(edm::StreamID, device::Event& iEvent, device::EventSetup const& iSetup) const override {
auto const& esData = iSetup.getData(esToken_);

portabletest::TestDeviceCollection deviceProduct{esData->metadata().size(), alpaka::getDev(iEvent.queue())};
portabletest::TestDeviceCollection deviceProduct{esData->metadata().size(), iEvent.queue()};

// run the algorithm, potentially asynchronously
algo_.fill(iEvent.queue(), deviceProduct, x_);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
[[maybe_unused]] auto inpData = iEvent.getHandle(getToken_);
[[maybe_unused]] auto const& esData = iSetup.getData(esToken_);

auto deviceProduct = std::make_unique<portabletest::TestDeviceCollection>(size_, alpaka::getDev(iEvent.queue()));
auto deviceProduct = std::make_unique<portabletest::TestDeviceCollection>(size_, iEvent.queue());

// run the algorithm, potentially asynchronously
algo_.fill(iEvent.queue(), *deviceProduct);
Expand Down

0 comments on commit de835de

Please sign in to comment.