From 9b0aec0540e320f775102ed0bc50c45310dd49bb Mon Sep 17 00:00:00 2001 From: Bill Li Date: Fri, 5 May 2023 20:36:07 +0800 Subject: [PATCH] nvml: Do not include header nvctrl.h if not build with xnvctrl support --- src/gpu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gpu.cpp b/src/gpu.cpp index f54aaf67..aa2c756b 100644 --- a/src/gpu.cpp +++ b/src/gpu.cpp @@ -5,7 +5,9 @@ #include #include #include +#ifdef HAVE_XNVCTRL #include "nvctrl.h" +#endif #include "timing.hpp" #ifdef HAVE_NVML #include "nvidia_info.h"