Skip to content

Commit

Permalink
error defining time_sample_gpu even if nvidia not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cpt-harlock committed Jan 23, 2025
1 parent a40855e commit b9cb642
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sampling.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ HIDDEN void time_sample_sys_energy(int prev, int curr, int init, double energy_p
}
}

#ifdef NVIDIA_GPU
HIDDEN void time_sample_gpu(int prev, int curr, int init, unsigned int util_gpu[MAX_NUM_GPUS], unsigned int util_mem_gpu[MAX_NUM_GPUS], unsigned int temp_gpu[MAX_NUM_GPUS], unsigned int clock_gpu[MAX_NUM_GPUS], double energy_gpu[MAX_NUM_GPUS])
{
static uint64_t energy_gpu_s[2][MAX_NUM_GPUS] = { 0 };
Expand Down Expand Up @@ -842,3 +843,4 @@ HIDDEN void time_sample_gpu(int prev, int curr, int init, unsigned int util_gpu[
cntd->gpu.clock[i] += clock_gpu[i];
}
}
#endif

0 comments on commit b9cb642

Please sign in to comment.