vecmem 1.14.0
Loading...
Searching...
No Matches
types.hpp
1/* VecMem project, part of the ACTS project (R&D line)
2 *
3 * (c) 2021 CERN for the benefit of the ACTS project
4 *
5 * Mozilla Public License Version 2.0
6 */
7#pragma once
8
10#if defined(__CUDACC__) || defined(__HIP__)
11#define VECMEM_DEVICE __device__
12#else
13#define VECMEM_DEVICE
14#endif // CUDA or HIP
15
17#if defined(__CUDACC__) || defined(__HIP__)
18#define VECMEM_HOST __host__
19#else
20#define VECMEM_HOST
21#endif // CUDA or HIP
22
24#if defined(__CUDACC__) || defined(__HIP__)
25#define VECMEM_HOST_AND_DEVICE __host__ __device__
26#else
27#define VECMEM_HOST_AND_DEVICE
28#endif // CUDA or HIP