Sophie

Sophie

distrib > Mageia > 7 > x86_64 > media > nonfree-updates > by-pkgid > b86a85131cc739c1c53d0b55840a4328 > files > 6210

nvidia-cuda-toolkit-devel-10.1.168-1.2.mga7.nonfree.x86_64.rpm

.TH "System Queries" 3 "24 Apr 2019" "Version 1.1" "NVML" \" -*- nroff -*-
.ad l
.nh
.SH NAME
System Queries \- 
.SS "Defines"

.in +1c
.ti -1c
.RI "#define \fBNVML_CUDA_DRIVER_VERSION_MAJOR\fP(v)   ((v)/1000)"
.br
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "\fBnvmlReturn_t\fP DECLDIR \fBnvmlSystemGetDriverVersion\fP (char *version, unsigned int length)"
.br
.ti -1c
.RI "\fBnvmlReturn_t\fP DECLDIR \fBnvmlSystemGetNVMLVersion\fP (char *version, unsigned int length)"
.br
.ti -1c
.RI "\fBnvmlReturn_t\fP DECLDIR \fBnvmlSystemGetCudaDriverVersion\fP (int *cudaDriverVersion)"
.br
.ti -1c
.RI "\fBnvmlReturn_t\fP DECLDIR \fBnvmlSystemGetCudaDriverVersion_v2\fP (int *cudaDriverVersion)"
.br
.ti -1c
.RI "\fBnvmlReturn_t\fP DECLDIR \fBnvmlSystemGetProcessName\fP (unsigned int pid, char *name, unsigned int length)"
.br
.in -1c
.SH "Detailed Description"
.PP 
This chapter describes the queries that NVML can perform against the local system. These queries are not device-specific. 
.SH "Define Documentation"
.PP 
.SS "#define NVML_CUDA_DRIVER_VERSION_MAJOR(v)   ((v)/1000)"
.PP
Macros for converting the CUDA driver version number to Major and Minor version numbers. 
.SH "Function Documentation"
.PP 
.SS "\fBnvmlReturn_t\fP DECLDIR nvmlSystemGetCudaDriverVersion (int * cudaDriverVersion)"
.PP
Retrieves the version of the CUDA driver.
.PP
For all products.
.PP
The CUDA driver version returned will be retreived from the currently installed version of CUDA. If the cuda library is not found, this function will return a known supported version number.
.PP
\fBParameters:\fP
.RS 4
\fIcudaDriverVersion\fP Reference in which to return the version identifier
.RE
.PP
\fBReturns:\fP
.RS 4
.IP "\(bu" 2
\fBNVML_SUCCESS\fP if \fIcudaDriverVersion\fP has been set
.IP "\(bu" 2
\fBNVML_ERROR_INVALID_ARGUMENT\fP if \fIcudaDriverVersion\fP is NULL 
.PP
.RE
.PP

.SS "\fBnvmlReturn_t\fP DECLDIR nvmlSystemGetCudaDriverVersion_v2 (int * cudaDriverVersion)"
.PP
Retrieves the version of the CUDA driver from the shared library.
.PP
For all products.
.PP
The returned CUDA driver version by calling cuDriverGetVersion()
.PP
\fBParameters:\fP
.RS 4
\fIcudaDriverVersion\fP Reference in which to return the version identifier
.RE
.PP
\fBReturns:\fP
.RS 4
.IP "\(bu" 2
\fBNVML_SUCCESS\fP if \fIcudaDriverVersion\fP has been set
.IP "\(bu" 2
\fBNVML_ERROR_INVALID_ARGUMENT\fP if \fIcudaDriverVersion\fP is NULL
.IP "\(bu" 2
\fBNVML_ERROR_LIBRARY_NOT_FOUND\fP if \fIlibcuda.so.1\fP or libcuda.dll is not found
.IP "\(bu" 2
\fBNVML_ERROR_FUNCTION_NOT_FOUND\fP if \fIcuDriverGetVersion()\fP is not found in the shared library 
.PP
.RE
.PP

.SS "\fBnvmlReturn_t\fP DECLDIR nvmlSystemGetDriverVersion (char * version, unsigned int length)"
.PP
Retrieves the version of the system's graphics driver.
.PP
For all products.
.PP
The version identifier is an alphanumeric string. It will not exceed 80 characters in length (including the NULL terminator). See \fBnvmlConstants::NVML_SYSTEM_DRIVER_VERSION_BUFFER_SIZE\fP.
.PP
\fBParameters:\fP
.RS 4
\fIversion\fP Reference in which to return the version identifier 
.br
\fIlength\fP The maximum allowed length of the string returned in \fIversion\fP 
.RE
.PP
\fBReturns:\fP
.RS 4
.IP "\(bu" 2
\fBNVML_SUCCESS\fP if \fIversion\fP has been set
.IP "\(bu" 2
\fBNVML_ERROR_UNINITIALIZED\fP if the library has not been successfully initialized
.IP "\(bu" 2
\fBNVML_ERROR_INVALID_ARGUMENT\fP if \fIversion\fP is NULL
.IP "\(bu" 2
\fBNVML_ERROR_INSUFFICIENT_SIZE\fP if \fIlength\fP is too small 
.PP
.RE
.PP

.SS "\fBnvmlReturn_t\fP DECLDIR nvmlSystemGetNVMLVersion (char * version, unsigned int length)"
.PP
Retrieves the version of the NVML library.
.PP
For all products.
.PP
The version identifier is an alphanumeric string. It will not exceed 80 characters in length (including the NULL terminator). See \fBnvmlConstants::NVML_SYSTEM_NVML_VERSION_BUFFER_SIZE\fP.
.PP
\fBParameters:\fP
.RS 4
\fIversion\fP Reference in which to return the version identifier 
.br
\fIlength\fP The maximum allowed length of the string returned in \fIversion\fP 
.RE
.PP
\fBReturns:\fP
.RS 4
.IP "\(bu" 2
\fBNVML_SUCCESS\fP if \fIversion\fP has been set
.IP "\(bu" 2
\fBNVML_ERROR_INVALID_ARGUMENT\fP if \fIversion\fP is NULL
.IP "\(bu" 2
\fBNVML_ERROR_INSUFFICIENT_SIZE\fP if \fIlength\fP is too small 
.PP
.RE
.PP

.SS "\fBnvmlReturn_t\fP DECLDIR nvmlSystemGetProcessName (unsigned int pid, char * name, unsigned int length)"
.PP
Gets name of the process with provided process id
.PP
For all products.
.PP
Returned process name is cropped to provided length. name string is encoded in ANSI.
.PP
\fBParameters:\fP
.RS 4
\fIpid\fP The identifier of the process 
.br
\fIname\fP Reference in which to return the process name 
.br
\fIlength\fP The maximum allowed length of the string returned in \fIname\fP 
.RE
.PP
\fBReturns:\fP
.RS 4
.IP "\(bu" 2
\fBNVML_SUCCESS\fP if \fIname\fP has been set
.IP "\(bu" 2
\fBNVML_ERROR_UNINITIALIZED\fP if the library has not been successfully initialized
.IP "\(bu" 2
\fBNVML_ERROR_INVALID_ARGUMENT\fP if \fIname\fP is NULL or \fIlength\fP is 0.
.IP "\(bu" 2
\fBNVML_ERROR_NOT_FOUND\fP if process doesn't exists
.IP "\(bu" 2
\fBNVML_ERROR_NO_PERMISSION\fP if the user doesn't have permission to perform this operation
.IP "\(bu" 2
\fBNVML_ERROR_UNKNOWN\fP on any unexpected error 
.PP
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for NVML from the source code.