Skip to content

Commit

Permalink
Some updates for handling Iris commands - generate unique IDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Aug 21, 2024
1 parent e3ed1a5 commit 4f1bc8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/apex/taskstubs_implementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ extern "C" {
}

void tasktimer_command_start_impl(const char* type_name) {
// we need to create a unique GUID for the command
static tasktimer_guid_t guid{UINT64_MAX/2};
std::string tmpstr{type_name};
auto task = apex::new_task(tmpstr);
auto task = apex::new_task(tmpstr, guid++);
timerStack(task, true);
}

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/apex-treesummary.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def drawDOT(df, args, name):
df.loc[df['calls'] == 0, 'bytes per call'] = df['total bytes']
metric = 'bytes per call'
# Make a new dataframe from rank 0
filename = name + 'tasktree.dot';
filename = name.replace(' ', '-') + '-tasktree.dot';
f = open(filename, 'w')
f.write('digraph prof {\n')
#f.write(' label = "(get this from metadata file output - or, generate it from apex-treesummary.py!)";\n')
Expand Down

0 comments on commit 4f1bc8d

Please sign in to comment.