File indexing completed on 2026-07-26 08:22:04
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "traccc/alpaka/utils/algorithm_base.hpp"
0010
0011 #include "get_queue.hpp"
0012
0013
0014 #include <alpaka/alpaka.hpp>
0015
0016 namespace traccc::alpaka {
0017
0018 algorithm_base::algorithm_base(alpaka::queue& q)
0019 : m_queue(q),
0020 m_warp_size(static_cast<unsigned int>(::alpaka::getPreferredWarpSize(
0021 ::alpaka::getDev(details::get_queue(q))))) {}
0022
0023 alpaka::queue& algorithm_base::queue() const {
0024 return m_queue.get();
0025 }
0026
0027 unsigned int algorithm_base::warp_size() const {
0028 return m_warp_size;
0029 }
0030
0031 }