MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / getFreeDeviceMemory

Method getFreeDeviceMemory

extensions/include/cuMat/src/Context.h:340–345  ·  view source on GitHub ↗

* \brief Returns the free memory on the device in bytes. * \return the free memory in bytes */

Source from the content-addressed store, hash-verified

338 * \return the free memory in bytes
339 */
340 static size_t getFreeDeviceMemory()
341 {
342 size_t free, total;
343 CUMAT_SAFE_CALL(cudaMemGetInfo(&free, &total));
344 return free;
345 }
346
347 /**
348 * \brief Returns the total available memory on the device in bytes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected