Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-16 08:20:29

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 #pragma once
0009 
0010 // Project include(s).
0011 #include "traccc/device/global_index.hpp"
0012 
0013 // HIP include(s).
0014 #include <hip/hip_runtime.h>
0015 
0016 namespace traccc::hip::details {
0017 
0018 /// Function creating a global index in a 1D HIP kernel
0019 __device__ inline device::global_index_t global_index1() {
0020   return blockIdx.x * blockDim.x + threadIdx.x;
0021 }
0022 
0023 }  // namespace traccc::hip::details