Learn R Programming

nmfgpu4R (version 0.2.5.2)

deviceMemoryInfo: Requests the currently available and total amount of device memory.

Description

Requests the currently available and total amount of device memory.

Usage

deviceMemoryInfo(deviceIndex = NA)

Arguments

deviceIndex
If specified the memory info retrieval is restricted to the passed device indices. By default no restriction is active and therefore memory information about all available CUDA devices are retrieved.

Value

On success a list of lists will be returned, containing the following informations:
index
Index of the CUDA device
free.bytes
Amount of free memory in bytes.