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.

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

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA