.TH "Grid Queries" 3 "24 Apr 2019" "Version 1.1" "NVML" \" -*- nroff -*- .ad l .nh .SH NAME Grid Queries \- .SS "Functions" .in +1c .ti -1c .RI "\fBnvmlReturn_t\fP DECLDIR \fBnvmlDeviceGetVirtualizationMode\fP (nvmlDevice_t device, \fBnvmlGpuVirtualizationMode_t\fP *pVirtualMode)" .br .in -1c .SH "Detailed Description" .PP This chapter describes NVML operations that are associated with NVIDIA GRID products. .SH "Function Documentation" .PP .SS "\fBnvmlReturn_t\fP DECLDIR nvmlDeviceGetVirtualizationMode (nvmlDevice_t device, \fBnvmlGpuVirtualizationMode_t\fP * pVirtualMode)" .PP This method is used to get the virtualization mode corresponding to the GPU. .PP For Kepler (TM) or newer fully supported devices. .PP \fBParameters:\fP .RS 4 \fIdevice\fP Identifier of the target device .br \fIpVirtualMode\fP Reference to virtualization mode. One of NVML_GPU_VIRTUALIZATION_? .RE .PP \fBReturns:\fP .RS 4 .IP "\(bu" 2 \fBNVML_SUCCESS\fP if \fIpVirtualMode\fP is fetched .IP "\(bu" 2 \fBNVML_ERROR_UNINITIALIZED\fP if the library has not been successfully initialized .IP "\(bu" 2 \fBNVML_ERROR_INVALID_ARGUMENT\fP if \fIdevice\fP is invalid or \fIpVirtualMode\fP is NULL .IP "\(bu" 2 \fBNVML_ERROR_GPU_IS_LOST\fP if the target GPU has fallen off the bus or is otherwise inaccessible .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.