CUresult cuDeviceTotalMem ( size_t *  bytes,
CUdevice  dev 
)

Returns in *bytes the total amount of memory available on the device dev in bytes.

Parameters:
bytes - Returned memory available on device in bytes
dev - Device handle
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE, CUDA_ERROR_INVALID_DEVICE
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cuDeviceComputeCapability, cuDeviceGetAttribute, cuDeviceGetCount, cuDeviceGetName, cuDeviceGet, cuDeviceGetProperties,


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA