-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2390: getRecentTime() should not be used when tracing is enabled #2394
base: develop
Are you sure you want to change the base?
#2390: getRecentTime() should not be used when tracing is enabled #2394
Conversation
Pipelines resultsPR tests (clang-13, alpine, mpich) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (gcc-10, ubuntu, openmpi, no LB) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (gcc-9, ubuntu, mpich, zoltan) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (clang-9, ubuntu, mpich) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (intel icpx, ubuntu, mpich, verbose) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (clang-11, ubuntu, mpich) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (clang-12, ubuntu, mpich) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (clang-13, ubuntu, mpich) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (gcc-12, ubuntu, mpich, verbose, kokkos) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (clang-14, ubuntu, mpich, verbose) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (clang-10, ubuntu, mpich) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (gcc-11, ubuntu, mpich, trace runtime, coverage) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (intel icpc, ubuntu, mpich) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (nvidia cuda 12.2.0, gcc-9, ubuntu, mpich, verbose) Build for d74fd9e (2025-01-14 19:58:06 UTC)
PR tests (nvidia cuda 11.2, gcc-9, ubuntu, mpich) Build for d74fd9e (2025-01-14 19:58:06 UTC)
|
src/vt/runnable/runnable.cc
Outdated
if (theTrace()) return timing::getCurrentTime(); | ||
else | ||
#endif | ||
return theSched()->getRecentTime(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return theSched()->getRecentTime(); | |
{ | |
return theSched()->getRecentTime(); | |
} |
Makes it more clear that there's a control flow statement preceding it.
This also better matches the style adopted for conditionally-compiled conditions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks
0f159c0
to
d74fd9e
Compare
Fixes #2390