Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2022-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 "utils.hpp"
0010 
0011 #include "cuda_error_handling.hpp"
0012 
0013 namespace traccc::cuda::details {
0014 
0015 unsigned int get_warp_size(int device) {
0016   int warp_size = 0;
0017   TRACCC_CUDA_ERROR_CHECK(
0018       cudaDeviceGetAttribute(&warp_size, cudaDevAttrWarpSize, device));
0019   return static_cast<unsigned int>(warp_size);
0020 }
0021 
0022 cudaStream_t get_stream(const stream_wrapper& stream) {
0023   return static_cast<cudaStream_t>(stream.cudaStream());
0024 }
0025 
0026 }  // namespace traccc::cuda::details