From 70494ae4b306d3fed0dc34d3261ed86068486e16 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Tue, 19 Mar 2024 18:43:46 +0100 Subject: [PATCH] Update OneToManyAssocRandomAccess to use the preferred warp size --- HeterogeneousCore/AlpakaInterface/interface/OneToManyAssoc.h | 2 +- .../AlpakaInterface/test/alpaka/testPrefixScan.dev.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HeterogeneousCore/AlpakaInterface/interface/OneToManyAssoc.h b/HeterogeneousCore/AlpakaInterface/interface/OneToManyAssoc.h index a914f0989dc88..2f2fd3b211dc7 100644 --- a/HeterogeneousCore/AlpakaInterface/interface/OneToManyAssoc.h +++ b/HeterogeneousCore/AlpakaInterface/interface/OneToManyAssoc.h @@ -257,7 +257,7 @@ namespace cms::alpakatools { nOnes, nblocks, ppsws, - alpaka::getWarpSizes(alpaka::getDev(queue))[0]); + alpaka::getPreferredWarpSize(alpaka::getDev(queue))); } else { h->finalize(); } diff --git a/HeterogeneousCore/AlpakaInterface/test/alpaka/testPrefixScan.dev.cc b/HeterogeneousCore/AlpakaInterface/test/alpaka/testPrefixScan.dev.cc index e1519c20e5d6c..95e1cf12f294e 100644 --- a/HeterogeneousCore/AlpakaInterface/test/alpaka/testPrefixScan.dev.cc +++ b/HeterogeneousCore/AlpakaInterface/test/alpaka/testPrefixScan.dev.cc @@ -147,7 +147,7 @@ int main() { for (auto const& device : devices) { std::cout << "Test prefix scan on " << alpaka::getName(device) << '\n'; auto queue = Queue(device); - const auto warpSize = alpaka::getWarpSizes(device)[0]; + const auto warpSize = alpaka::getPreferredWarpSize(device); // WARP PREFIXSCAN (OBVIOUSLY GPU-ONLY) if constexpr (!requires_single_thread_per_block_v) { std::cout << "warp level" << std::endl;