cudaError_t cudaMemGetInfo ( size_t *  free,
size_t *  total 
)

Returns in *free and *total respectively, the free and total amount of memory available for allocation by the device in bytes.

Parameters:
free - Returned free memory in bytes
total - Returned total memory in bytes
Returns:
cudaSuccess, cudaErrorInitializationError, cudaErrorInvalidValue, cudaErrorLaunchFailure
Note:
Note that this function may also return error codes from previous, asynchronous launches.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA