diff options
author | Jens Peters <jp7677@gmail.com> | 2022-06-27 19:53:17 +0300 |
---|---|---|
committer | Jens Peters <jp7677@gmail.com> | 2022-06-30 21:10:20 +0300 |
commit | b95890c66011702bc95036526d135a600bb1ff99 (patch) | |
tree | f00551ff454b82ae7e36aa90ebd82a266bb38ff7 | |
parent | be4260f2e4316f58fddaff0edac2acdb7fb481a9 (diff) |
nvapi-gpu: Fix typos in comments
-rw-r--r-- | src/nvapi_gpu.cpp | 4 |
1 files 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<NvU32>(NV_GPU_CLOCK_FREQUENCIES_CURRENT_FREQ)) return NotSupported(n, alreadyLoggedNotSupported); |