TBD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
CUDA perfboost bypass, distributed under MIT License | |
-- @Ristovski | |
Each CUDA session is boosted to a fixed clock even when no real compute is being done, | |
this in turn causes the GPU to run hotter, sometimes at considerably higher power. | |
This preloadable library bypasses that by nuking the NV2080_CTRL_PERF_BOOST ioctl. | |
Mainly useful for mpv/other video players that utilize hardware video decode (nvdec), | |
as unlike on Windows, nvdec on linux utilizes CUDA for nvdec<->OpenGL/Vulkan interop. |