gpu: amdgpuinfo: ifdef linux for windows build

This commit is contained in:
FlightlessMango 2023-04-09 19:18:35 +02:00
parent 0b76325f06
commit 05444cb021

View File

@ -72,6 +72,7 @@ nvapi_util();
}
void getAmdGpuInfo(){
#ifdef __linux__
int64_t value = 0;
if (metrics_path.empty()){
if (amdgpu.busy) {
@ -144,4 +145,5 @@ void getAmdGpuInfo(){
value = 0;
gpu_info.gtt_used = float(value) / (1024 * 1024 * 1024);
}
#endif
}