int size = 1024; CudaDeviceVariabledeviceArray = new CudaDeviceVariable (size);
CudaDeviceProperties deviceProperties = CudaContext.GetDeviceInfo(0); long memSize = deviceProperties.TotalGlobalMemory;This example retrieves the properties of the first CUDA device on the system and returns the total amount of global memory available on the device in bytes. Package library: `ManagedCuda` (version 10.2.108)