diff options
| author | Connor Welsh <cwel@cwel.sh> | 2026-06-01 13:43:23 -0400 |
|---|---|---|
| committer | dec05eba <dec05eba@protonmail.com> | 2026-06-01 20:45:20 +0200 |
| commit | 600a871d1e9a1d0634088cd705854fd8a906ba9c (patch) | |
| tree | d26f2473ed66129a235a96bed6d78e5a5b697fab /src/main.cpp | |
| parent | 099b95a780805067aec84a62d3110760f0fcbb1a (diff) | |
Only install nvidia profile when the driver is loaded
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index d109e9e..e4d1cbe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3612,6 +3612,9 @@ static void validate_args_with_capture_sources(args_parser &arg_parser, const st } static void install_cuda_no_stable_perf_limit() { + if(access("/proc/driver/nvidia/version", F_OK) != 0) + return; + const char *home = getenv("HOME"); if(!home) { fprintf(stderr, "gsr warning: install_cuda_no_stable_perf_limit: $HOME not set\n"); |
