Skip to content

Commit

Permalink
Minor fixes before release
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Oct 29, 2024
1 parent b7975db commit cb70383
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ endif()
### Set up perfstubs stuff
git_external(perfstubs
https://github.com/khuck/perfstubs.git
python-3.12
master
VERBOSE)

if(APEX_WITH_PYTHON)
Expand Down
8 changes: 6 additions & 2 deletions src/unit_tests/C++/apex_taskstubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <array>
#include <algorithm>
#include <iterator>
#include <thread>
#include <string.h>
#include "timer_plugin/tasktimer.h"

Expand Down Expand Up @@ -203,14 +204,17 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char * argv[]) {
TASKTIMER_START(tt, &resource);
// yield the task
TASKTIMER_YIELD(tt);
// run a "child" task
A(myguid);
// run a "child" task - as a thread just for fun
std::thread ta(A,myguid);
// test the "add_parent" feature
add_parent_test(myguid);
// test the "add_child" feature
add_child_test(tt);
// resume the task
TASKTIMER_RESUME(tt, &resource);
if (ta.joinable()) {
ta.join();
}
// stop the task
TASKTIMER_STOP(tt);
// finalize the timer plugin
Expand Down

0 comments on commit cb70383

Please sign in to comment.