NVML API Reference Guide (PDF) - vR384 (older) - Last updated October 31, 2017 - Send Feedback

2.14. System Queries

This chapter describes the queries that NVML can perform against the local system. These queries are not device-specific.

Functions

nvmlReturn_t nvmlSystemGetCudaDriverVersion ( int* cudaDriverVersion )
nvmlReturn_t nvmlSystemGetDriverVersion ( char* version, unsigned int  length )
nvmlReturn_t nvmlSystemGetNVMLVersion ( char* version, unsigned int  length )
nvmlReturn_t nvmlSystemGetProcessName ( unsigned int  pid, char* name, unsigned int  length )

Functions

nvmlReturn_t nvmlSystemGetCudaDriverVersion ( int* cudaDriverVersion )
Parameters
cudaDriverVersion
Reference in which to return the version identifier
Returns

Description

Retrieves the version of the CUDA driver.

ALL_PRODUCTS%

The returned CUDA driver version is the same as the CUDA API cuDriverGetVersion() would return on the system.

nvmlReturn_t nvmlSystemGetDriverVersion ( char* version, unsigned int  length )
Parameters
version
Reference in which to return the version identifier
length
The maximum allowed length of the string returned in version
Returns

Description

Retrieves the version of the system's graphics driver.

ALL_PRODUCTS%

The version identifier is an alphanumeric string. It will not exceed 80 characters in length (including the NULL terminator). See nvmlConstants::NVML_SYSTEM_DRIVER_VERSION_BUFFER_SIZE.

nvmlReturn_t nvmlSystemGetNVMLVersion ( char* version, unsigned int  length )
Parameters
version
Reference in which to return the version identifier
length
The maximum allowed length of the string returned in version
Returns

Description

Retrieves the version of the NVML library.

ALL_PRODUCTS%

The version identifier is an alphanumeric string. It will not exceed 80 characters in length (including the NULL terminator). See nvmlConstants::NVML_SYSTEM_NVML_VERSION_BUFFER_SIZE.

nvmlReturn_t nvmlSystemGetProcessName ( unsigned int  pid, char* name, unsigned int  length )
Parameters
pid
The identifier of the process
name
Reference in which to return the process name
length
The maximum allowed length of the string returned in name
Returns

Description

Gets name of the process with provided process id

ALL_PRODUCTS%

Returned process name is cropped to provided length. name string is encoded in ANSI.


NVML API Reference Guide (PDF) - vR384 (older) - Last updated October 31, 2017 - Send Feedback