Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed Aug 29, 2024
1 parent 4f3cf3e commit 390ab88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/OpenCL/CHIPBackendOpenCL.cc
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,7 @@ float CHIPEventOpenCL::getElapsedTime(chipstar::Event *OtherIn) {
const uint64_t MaxValue = std::numeric_limits<uint64_t>::max();
if (EndGPU < BeginGPU) {
logError("Overflow detected in CHIPEventOpenCL::getElapsedTime()");
logError("BeginGPU: {}, EndGPU: {}", BeginGPU, EndGPU);
Elapsed = (MaxValue - BeginGPU) + EndGPU + 1; // +1 to account for wraparound
} else {
Elapsed = EndGPU - BeginGPU;
Expand Down

0 comments on commit 390ab88

Please sign in to comment.