Skip to content

Commit

Permalink
Updating OTF2 API to version 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Oct 19, 2022
1 parent a59ebd2 commit 4a7bdbb
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions src/apex/otf2_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,11 @@ namespace apex {
uint64_t ticks_per_second = 1e9;
uint64_t traceLength = saved_end_timestamp;
OTF2_GlobalDefWriter_WriteClockProperties( global_def_writer,
ticks_per_second, 0 /* start */, traceLength /* length */ );
ticks_per_second, 0 /* start */, traceLength /* length */
#if OTF2_VERSION_MAJOR > 2
, OTF2_UNDEFINED_TIMESTAMP
#endif
);
}

/* For this rank, pid, hostname, write all that data into the
Expand Down Expand Up @@ -894,7 +898,11 @@ namespace apex {
rank /* id */,
get_string_index(locality.str()) /* name */,
OTF2_LOCATION_GROUP_TYPE_PROCESS,
node_index /* system tree node ID */ );
node_index /* system tree node ID */
#if OTF2_VERSION_MAJOR > 2
, OTF2_UNDEFINED_LOCATION_GROUP
#endif
);
// write out the thread locations
//for (int i = 0 ; i < rank_thread_name_map[rank] ; i++) {
for (auto iter : rank_thread_name_map[rank]) {
Expand Down Expand Up @@ -1042,9 +1050,16 @@ namespace apex {
const char * world = "MPI_COMM_WORLD";
OTF2_EC(OTF2_GlobalDefWriter_WriteString( global_def_writer,
get_string_index(world), world ));
OTF2_EC(OTF2_GlobalDefWriter_WriteComm ( global_def_writer,
0, get_string_index(world),
1, OTF2_UNDEFINED_COMM));
OTF2_EC(OTF2_GlobalDefWriter_WriteComm (
global_def_writer,
0,
get_string_index(world),
1,
OTF2_UNDEFINED_COMM
#if OTF2_VERSION_MAJOR > 2
, OTF2_COMM_FLAG_NONE
#endif
));
} else {
// not rank 0?
// write out the timer names we saw
Expand Down

0 comments on commit 4a7bdbb

Please sign in to comment.