Warning, /acts/Traccc/device/sycl/src/utils/calculate1DimNdRange.sycl is written in an unsupported language. File is not indexed.
0001 /** TRACCC library, part of the ACTS project (R&D line)
0002 *
0003 * (c) 2022-2024 CERN for the benefit of the ACTS project
0004 *
0005 * Mozilla Public License Version 2.0
0006 */
0007
0008 // Project include(s).
0009 #include "calculate1DimNdRange.hpp"
0010
0011 namespace traccc::sycl::details {
0012
0013 ::sycl::nd_range<1> calculate1DimNdRange(const std::size_t globalSize,
0014 const std::size_t localSize) {
0015 const std::size_t nBlocks = (globalSize + localSize - 1) / localSize;
0016 return {::sycl::range<1>(nBlocks * localSize), ::sycl::range<1>(localSize)};
0017 }
0018
0019 } // namespace traccc::sycl::details