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

Method getTotalDeviceMemory

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

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

Source from the content-addressed store, hash-verified

349 * \return the total available memory in bytes
350 */
351 static size_t getTotalDeviceMemory()
352 {
353 size_t free, total;
354 CUMAT_SAFE_CALL(cudaMemGetInfo(&free, &total));
355 return total;
356 }
357
358 /**
359 * \brief Returns the kernel launch configurations for a 1D launch.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected