Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Dec 6, 2019
1 parent bc103b5 commit d89100b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/apex/apex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1125,8 +1125,10 @@ std::shared_ptr<task_wrapper> update_task(
} else {
wrapper->alias = id;
}
/*
printf("%llu New alias: %s to %s\n", wrapper->guid,
wrapper->task_id->get_name().c_str(), timer_name.c_str());
*/
}
return wrapper;
}
Expand Down
4 changes: 3 additions & 1 deletion src/apex/otf2_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <string>
#include <utility>
#include <vector>
#include <ios>
#include <iomanip>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
Expand Down Expand Up @@ -668,7 +670,7 @@ namespace apex {
for (int i = 0 ; i < rank_thread_map[rank] ; i++) {
uint64_t thread_id = node_id + i;
stringstream thread;
thread << "thread " << i;
thread << "thread " << std::internal << std::setfill('0') << std::setw(2) << i;
// have we written this thread name before?
auto tmp = threadnames.find(thread.str());
if (tmp == threadnames.end()) {
Expand Down

0 comments on commit d89100b

Please sign in to comment.