From 9832d044d9a2c9e71784729ca4453eb05aafeda1 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Fri, 17 Feb 2023 14:30:41 +0100 Subject: [PATCH] Migrate test modules from sream to global --- HeterogeneousCore/AlpakaTest/plugins/TestAlpakaAnalyzer.cc | 6 +++--- .../AlpakaTest/plugins/alpaka/TestAlpakaProducer.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HeterogeneousCore/AlpakaTest/plugins/TestAlpakaAnalyzer.cc b/HeterogeneousCore/AlpakaTest/plugins/TestAlpakaAnalyzer.cc index b52dfde7fa848..b79eb10501fc1 100644 --- a/HeterogeneousCore/AlpakaTest/plugins/TestAlpakaAnalyzer.cc +++ b/HeterogeneousCore/AlpakaTest/plugins/TestAlpakaAnalyzer.cc @@ -4,7 +4,7 @@ #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/Frameworkfwd.h" -#include "FWCore/Framework/interface/stream/EDAnalyzer.h" +#include "FWCore/Framework/interface/global/EDAnalyzer.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" @@ -73,14 +73,14 @@ namespace { } // namespace -class TestAlpakaAnalyzer : public edm::stream::EDAnalyzer<> { +class TestAlpakaAnalyzer : public edm::global::EDAnalyzer<> { public: TestAlpakaAnalyzer(edm::ParameterSet const& config) : source_{config.getParameter("source")}, token_{consumes(source_)}, expectSize_(config.getParameter("expectSize")) {} - void analyze(edm::Event const& event, edm::EventSetup const&) override { + void analyze(edm::StreamID sid, edm::Event const& event, edm::EventSetup const&) const override { portabletest::TestHostCollection const& product = event.get(token_); auto const& view = product.const_view(); auto& mview = product.view(); diff --git a/HeterogeneousCore/AlpakaTest/plugins/alpaka/TestAlpakaProducer.cc b/HeterogeneousCore/AlpakaTest/plugins/alpaka/TestAlpakaProducer.cc index de18b5d492fd1..cb0bce135b204 100644 --- a/HeterogeneousCore/AlpakaTest/plugins/alpaka/TestAlpakaProducer.cc +++ b/HeterogeneousCore/AlpakaTest/plugins/alpaka/TestAlpakaProducer.cc @@ -9,19 +9,19 @@ #include "FWCore/Utilities/interface/StreamID.h" #include "HeterogeneousCore/AlpakaCore/interface/alpaka/Event.h" #include "HeterogeneousCore/AlpakaCore/interface/alpaka/EventSetup.h" -#include "HeterogeneousCore/AlpakaCore/interface/alpaka/stream/EDProducer.h" +#include "HeterogeneousCore/AlpakaCore/interface/alpaka/global/EDProducer.h" #include "HeterogeneousCore/AlpakaInterface/interface/config.h" #include "TestAlgo.h" namespace ALPAKA_ACCELERATOR_NAMESPACE { - class TestAlpakaProducer : public stream::EDProducer<> { + class TestAlpakaProducer : public global::EDProducer<> { public: TestAlpakaProducer(edm::ParameterSet const& config) : deviceToken_{produces()}, size_{config.getParameter("size")} {} - void produce(device::Event& event, device::EventSetup const&) override { + void produce(edm::StreamID sid, device::Event& event, device::EventSetup const&) const override { // run the algorithm, potentially asynchronously portabletest::TestDeviceCollection deviceProduct{size_, event.queue()}; algo_.fill(event.queue(), deviceProduct);