Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:22:04

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2026 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 // Local include(s).
0009 #include "traccc/alpaka/utils/algorithm_base.hpp"
0010 
0011 #include "get_queue.hpp"
0012 
0013 // Alpaka include(s).
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 }  // namespace traccc::alpaka