Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Traccc/device/sycl/src/utils/algorithm_base.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) 2026 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 // SYCL include
0009 #include <sycl/sycl.hpp>
0010 
0011 // Local include(s).
0012 #include "get_queue.hpp"
0013 #include "traccc/sycl/utils/algorithm_base.hpp"
0014 
0015 namespace traccc::sycl {
0016 
0017 algorithm_base::algorithm_base(queue_wrapper& queue)
0018     : m_queue(queue),
0019       m_warp_size(static_cast<unsigned int>(
0020           details::get_queue(queue)
0021               .get_device()
0022               .get_info<::sycl::info::device::sub_group_sizes>()
0023               .at(0))) {}
0024 
0025 queue_wrapper& algorithm_base::queue() const {
0026   return m_queue.get();
0027 }
0028 
0029 unsigned int algorithm_base::warp_size() const {
0030   return m_warp_size;
0031 }
0032 
0033 }  // namespace traccc::sycl