The OpenD Programming Language

Pointer

DCompute has the notion of adress spaces, provide by the magic structs below. The numbers are for the DCompute virtual addess space and are translated into the correct address space for each DCompute backend (SPIRV, NVPTX). The table below shows the equivalent annotation between DCompute OpenCL and CUDA

DCompute OpenCL Cuda Global __global __device__ Shared __local __shared__ * Constant __constant __constant__ Private __private __local__ Generic __generic (no qualifier)

struct Pointer (
T
) {
T* ptr;
}

Alias This

ptr

Meta