Skip to content

Commit

Permalink
Return error if requested pstate is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha0552 authored Oct 6, 2024
1 parent 02244ff commit 8d8df19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static bool enter_pstate(unsigned int i, unsigned int pstateId) {
}

// Set the GPU to the desired performance state
NVAPI_CALL(NvAPI_GPU_SetForcePstate(nvapiDevices[i], pstateId, 2), failure);
NVAPI_CALL(NvAPI_GPU_SetForcePstate(nvapiDevices[i], pstateId, 0), failure);

// Reset the iteration counter
state->iterations = 0;
Expand Down

0 comments on commit 8d8df19

Please sign in to comment.