Skip to content

Commit b485c21

Browse files
add PMacc global identifier
- add `PMACC_GLOBAL_KEYWORD` which is equivalent to `__global__`
1 parent a814ad5 commit b485c21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libPMacc/include/pmacc_types.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ typedef long long int int64_cu;
7373
# define PMACC_CUDA_ARCH __CUDA_ARCH__
7474
#endif
7575

76+
/** pmacc global identifier for CUDA kernel */
77+
#define PMACC_GLOBAL_KEYWORD __location__(global)
78+
7679
/*
7780
* Disable nvcc warning:
7881
* calling a __host__ function from __host__ __device__ function.

0 commit comments

Comments
 (0)