- for (i = 0; i < pstates; i++) {
- smpi_set_host_pstate(i);
- fprintf(stderr, "[%.6f] [rank %d] Current pstate: %d; Current power: %.0f\n",
- MPI_Wtime(), rank, i, smpi_get_host_current_power_peak());
+ for (unsigned long i = 0; i < pstates; i++) {
+ sg_host_set_pstate(sg_host_self(), i);
+ fprintf(stderr, "[%.6f] [rank %d] Current pstate: %lu; Current power: %.0f\n", MPI_Wtime(), rank, i,
+ sg_host_get_speed(sg_host_self()));