Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jp7677/dxvk-nvapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nvapi_system.cpp')
-rw-r--r--tests/nvapi_system.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/nvapi_system.cpp b/tests/nvapi_system.cpp
index a8ca983..c096f5e 100644
--- a/tests/nvapi_system.cpp
+++ b/tests/nvapi_system.cpp
@@ -96,6 +96,7 @@ TEST_CASE("Sysinfo methods succeed against local system", "[system]") {
GETNVAPIPROCADDR(GPU_GetAdapterIdFromPhysicalGpu);
GETNVAPIPROCADDR(GPU_GetArchInfo);
GETNVAPIPROCADDR(GPU_GetCurrentPCIEDownstreamWidth);
+ GETNVAPIPROCADDR(GPU_GetIRQ);
GETNVAPIPROCADDR(GPU_GetGpuCoreCount);
GETNVAPIPROCADDR(GPU_CudaEnumComputeCapableGpus);
GETNVAPIPROCADDR(GPU_GetVbiosVersionString);
@@ -121,6 +122,7 @@ TEST_CASE("Sysinfo methods succeed against local system", "[system]") {
REQUIRE(nvAPI_GPU_GetAdapterIdFromPhysicalGpu);
REQUIRE(nvAPI_GPU_GetArchInfo);
REQUIRE(nvAPI_GPU_GetCurrentPCIEDownstreamWidth);
+ REQUIRE(nvAPI_GPU_GetIRQ);
REQUIRE(nvAPI_GPU_GetGpuCoreCount);
REQUIRE(nvAPI_GPU_CudaEnumComputeCapableGpus);
REQUIRE(nvAPI_GPU_GetVbiosVersionString);
@@ -230,6 +232,14 @@ TEST_CASE("Sysinfo methods succeed against local system", "[system]") {
else
std::cout << "N/A" << std::endl;
+ NvU32 gpuIrq;
+ result = nvAPI_GPU_GetIRQ(handle, &gpuIrq);
+ std::cout << " IRQ: ";
+ if (result == NVAPI_OK)
+ std::cout << std::dec << gpuIrq << std::endl;
+ else
+ std::cout << "N/A" << std::endl;
+
auto computeGpusIt = std::find_if(
std::begin(computeGpus),
std::end(computeGpus),