Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Traccc/device/sycl/src/utils/get_queue.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 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 // Local include(s).
0009 #include "get_queue.hpp"
0010 
0011 // System include(s).
0012 #include <cassert>
0013 
0014 namespace traccc::sycl::details {
0015 
0016 ::sycl::queue& get_queue(traccc::sycl::queue_wrapper& queue) {
0017   assert(queue.queue() != nullptr);
0018   return *(reinterpret_cast<::sycl::queue*>(queue.queue()));
0019 }
0020 
0021 const ::sycl::queue& get_queue(const traccc::sycl::queue_wrapper& queue) {
0022   assert(queue.queue() != nullptr);
0023   return *(reinterpret_cast<const ::sycl::queue*>(queue.queue()));
0024 }
0025 
0026 }  // namespace traccc::sycl::details