Modules | |
| GPU access API: Library (safety subset) | |
Functions | |
| NvError | NvRmGpuLibAttachDevice (NvRmGpuLib *hLib, int deviceIndex) |
| Attaches and powers up a GPU. More... | |
| NvError | NvRmGpuLibDetachDevice (NvRmGpuLib *hLib, int deviceIndex) |
| Powers down and detaches a GPU. More... | |
| NvError NvRmGpuLibAttachDevice | ( | NvRmGpuLib * | hLib, |
| int | deviceIndex | ||
| ) |
Attaches and powers up a GPU.
| [in] | hLib | Library handle |
| [in] | deviceIndex | GPU device index. See NvRmGpuLibListDevices(). |
| NvSuccess | Device attached successfully |
| NvError_BadValue | Bad deviceIndex |
| NvError_NotSupported | This device does not support attach/detach functionality |
| NvError_AccessDenied | Insufficient user privileges |
| NvError_ResourceError | Device attachment failed. Likely, the device failed to boot. |
| NvError_* | Unspecified error. Error code returned for diagnostics. |
| NvError NvRmGpuLibDetachDevice | ( | NvRmGpuLib * | hLib, |
| int | deviceIndex | ||
| ) |
Powers down and detaches a GPU.
| [in] | hLib | Library handle |
| [in] | deviceIndex | GPU device index. See NvRmGpuLibListDevices(). |
| NvSuccess | Device detached successfully |
| NvError_BadValue | Bad deviceIndex |
| NvError_NotSupported | This device does not support attach/detach functionality |
| NvError_AccessDenied | Insufficient use privileges |
| NvError_ResourceError | Device attachment failed. Likely, the device failed to boot. |
| NvError_* | Unspecified error. Error code returned for diagnostics. |