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) 2025 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 #pragma once
0009 
0010 // Project include(s).
0011 #include "traccc/device/global_index.hpp"
0012 
0013 namespace traccc::cuda::details {
0014 
0015 /// Function creating a global index in a 1D CUDA kernel
0016 __device__ inline device::global_index_t global_index1() {
0017   return blockIdx.x * blockDim.x + threadIdx.x;
0018 }
0019 
0020 }  // namespace traccc::cuda::details