isDeviceMemory

trait to identify cuda storage

enum bool isDeviceMemory(T);

Examples

1 static assert(is(typeof(CuArray!float.init.ptr) == CUdeviceptr));
2 static assert(is(typeof(CuArray!float.init.length) == const(size_t)));
3 static assert(isDeviceMemory!(CuPtr!float));
4 static assert(isDeviceMemory!(CuArray!float));
5 static assert(isDeviceMemory!(RefCounted!(CuPtr!float)));
6 static assert(isDeviceMemory!(RefCounted!(CuArray!float)));
7 static assert(is(CudaElementType!(CuPtr!float) == float));
8 static assert(is(CudaElementType!(CuArray!float) == float));
9 static assert(is(CudaElementType!(RefCounted!(CuPtr!float)) == float));
10 static assert(is(CudaElementType!(RefCounted!(CuArray!float)) == float));

Meta