isDeviceMemory

trait to identify cuda storage

version(grain_cuda)
enum bool isDeviceMemory(T);

Examples

static assert(is(typeof(CuArray!float.init.ptr) == CUdeviceptr));
static assert(is(typeof(CuArray!float.init.length) == const(size_t)));
static assert(isDeviceMemory!(CuPtr!float));
static assert(isDeviceMemory!(CuArray!float));
static assert(isDeviceMemory!(RefCounted!(CuPtr!float)));
static assert(isDeviceMemory!(RefCounted!(CuArray!float)));
static assert(is(CudaElementType!(CuPtr!float) == float));
static assert(is(CudaElementType!(CuArray!float) == float));
static assert(is(CudaElementType!(RefCounted!(CuPtr!float)) == float));
static assert(is(CudaElementType!(RefCounted!(CuArray!float)) == float));

Meta