Returns the amount of free and total memory on the device.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_size_t) | :: | free |
Free memory in bytes |
|||
integer(kind=c_size_t) | :: | total |
Total memory in bytes |
Returns cudaSuccess
if the memory information was retrieved successfully,
or an error code if there was an issue.