File indexing completed on 2026-07-26 08:22:11
0001
0002
0003
0004
0005
0006
0007
0008
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 }