blac2kite commented on a change in pull request #12804: CudnnFind() usage 
improvements
URL: https://github.com/apache/incubator-mxnet/pull/12804#discussion_r227996879
 
 

 ##########
 File path: python/mxnet/context.py
 ##########
 @@ -258,6 +258,30 @@ def num_gpus():
     check_call(_LIB.MXGetGPUCount(ctypes.byref(count)))
     return count.value
 
+def gpu_memory_info(device_id=0):
+    """Query CUDA for the free and total bytes of GPU global memory.
+
+    Parameters
+    ----------
+    device_id : int, optional
+        The device id of the GPU device.
+
+    Raises
+    ------
+    Will raise an exception on any CUDA error.
+
+    Returns
+    -------
+    (free, total) : (int, int)
 
 Review comment:
   Minor: 'total' - is it referring to total used, total available or the total 
size of the physical GPU

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to