alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
globalMem.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  alpaka
 main alpaka namespace.
namespace  alpaka::onAcc
 functionality which is usable on the accelerator compute device from within a kernel.
namespace  alpaka::onHost
 Functionality which is usable on the host CPU controller thread.

Macros

#define ALPAKA_DEVICE_GLOBAL_DATA_CUDA_HIP(attributes, dataType, name, ...)
#define ALPAKA_DEVICE_GLOBAL_DATA_CUDA_HIP_EXTERN(attributes, dataType, name)
#define ALPAKA_DEVICE_GLOBAL_DATA_HOST(attributes, dataType, name, ...)
 Create a device global variable for the API host.
#define ALPAKA_DEVICE_GLOBAL_DATA_HOST_EXTERN(attributes, dataType, name)
 Create a forward declaration of a device global variable for the API host.
#define ALPAKA_DEVICE_GLOBAL_DATA_ONEAPI(attributes, dataType, name, ...)
#define ALPAKA_DEVICE_GLOBAL_DATA_ONEAPI_EXTERN(attributes, dataType, name)
#define ALPAKA_DEVICE_GLOBAL_GET_CUDA_HIP(attributes, dataType, name, ...)
#define ALPAKA_DEVICE_GLOBAL_GET_ONEAPI(attributes, dataType, name, ...)

Macro Definition Documentation

◆ ALPAKA_DEVICE_GLOBAL_DATA_CUDA_HIP

#define ALPAKA_DEVICE_GLOBAL_DATA_CUDA_HIP ( attributes,
dataType,
name,
... )

Definition at line 72 of file globalMem.hpp.

◆ ALPAKA_DEVICE_GLOBAL_DATA_CUDA_HIP_EXTERN

#define ALPAKA_DEVICE_GLOBAL_DATA_CUDA_HIP_EXTERN ( attributes,
dataType,
name )

Definition at line 94 of file globalMem.hpp.

◆ ALPAKA_DEVICE_GLOBAL_DATA_HOST

#define ALPAKA_DEVICE_GLOBAL_DATA_HOST ( attributes,
dataType,
name,
... )
Value:
namespace alpaka_onHost \
{ \
[[maybe_unused]] attributes alpaka::onAcc::internal::GlobalDeviceMemoryDataWrapper< \
ALPAKA_PP_REMOVE_BRACKETS(dataType)> name __VA_OPT__({__VA_ARGS__}); \
}

Create a device global variable for the API host.

Definition at line 31 of file globalMem.hpp.

◆ ALPAKA_DEVICE_GLOBAL_DATA_HOST_EXTERN

#define ALPAKA_DEVICE_GLOBAL_DATA_HOST_EXTERN ( attributes,
dataType,
name )
Value:
namespace alpaka_onHost \
{ \
extern attributes alpaka::onAcc::internal::GlobalDeviceMemoryDataWrapper<ALPAKA_PP_REMOVE_BRACKETS(dataType)> \
name; \
}
#define ALPAKA_PP_REMOVE_BRACKETS(x)
Definition PP.hpp:21

Create a forward declaration of a device global variable for the API host.

Definition at line 39 of file globalMem.hpp.

◆ ALPAKA_DEVICE_GLOBAL_DATA_ONEAPI

#define ALPAKA_DEVICE_GLOBAL_DATA_ONEAPI ( attributes,
dataType,
name,
... )

Definition at line 133 of file globalMem.hpp.

◆ ALPAKA_DEVICE_GLOBAL_DATA_ONEAPI_EXTERN

#define ALPAKA_DEVICE_GLOBAL_DATA_ONEAPI_EXTERN ( attributes,
dataType,
name )

Definition at line 134 of file globalMem.hpp.

◆ ALPAKA_DEVICE_GLOBAL_GET_CUDA_HIP

#define ALPAKA_DEVICE_GLOBAL_GET_CUDA_HIP ( attributes,
dataType,
name,
... )

Definition at line 73 of file globalMem.hpp.

◆ ALPAKA_DEVICE_GLOBAL_GET_ONEAPI

#define ALPAKA_DEVICE_GLOBAL_GET_ONEAPI ( attributes,
dataType,
name,
... )

Definition at line 135 of file globalMem.hpp.