From c02e792f9739e6064743d5acb2c33f6d6456b6ad Mon Sep 17 00:00:00 2001 From: Jens Peters Date: Mon, 27 Jun 2022 18:53:17 +0200 Subject: nvapi-gpu: Fix typos in comments --- src/nvapi_gpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvapi_gpu.cpp b/src/nvapi_gpu.cpp index 888826f..39034a1 100644 --- a/src/nvapi_gpu.cpp +++ b/src/nvapi_gpu.cpp @@ -399,7 +399,7 @@ extern "C" { // nvmlGpuDynamicPstatesInfo_t also has `flags` but they are reserved for future use pDynamicPstatesInfoEx->flags = 0; // order of the first four utilization domains in NVML matches NVAPI - // to consider: should be avoid blindly copying domains 4-7 in case they don't match once introduced? + // to consider: should we avoid blindly copying domains 4-7 in case they don't match once introduced? static_assert(NVML_MAX_GPU_UTILIZATIONS == NVAPI_MAX_GPU_UTILIZATIONS); for (auto i = 0U; i < NVAPI_MAX_GPU_UTILIZATIONS; i++) { pDynamicPstatesInfoEx->utilization[i].bIsPresent = gpuDynamicPstatesInfo.utilization[i].bIsPresent ? 1 : 0; @@ -663,7 +663,7 @@ extern "C" { if (pClkFreqs->version != NV_GPU_CLOCK_FREQUENCIES_VER_1 && pClkFreqs->version != NV_GPU_CLOCK_FREQUENCIES_VER_2 && pClkFreqs->version != NV_GPU_CLOCK_FREQUENCIES_VER_3) return IncompatibleStructVersion(n); - // Only check for CURRENT_FREQ, and not for the other types ie. BOOST or DEFAULT for now + // Only check for CURRENT_FREQ, and not for the other types i.e. BOOST or DEFAULT for now if ((pClkFreqs->version == NV_GPU_CLOCK_FREQUENCIES_VER_2 || pClkFreqs->version == NV_GPU_CLOCK_FREQUENCIES_VER_3) && pClkFreqs->ClockType != static_cast(NV_GPU_CLOCK_FREQUENCIES_CURRENT_FREQ)) return NotSupported(n, alreadyLoggedNotSupported); -- cgit v1.2.3