Skip to content

Commit

Permalink
Merge branch 'develop' into multiple-parents
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Oct 16, 2024
2 parents 07d7343 + fbd4d84 commit eb2c215
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions src/apex/apex_preload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ int apex_preload_main(int argc, char** argv, char** envp) {
size_t needle_len{strlen(needle)};
if (len > needle_len &&
(strncmp(argv[0] + (len - needle_len), needle, needle_len)) == 0) {
fputs("apex: skipping ", stderr);
fputs(argv[0], stderr);
fputs("!\n", stderr);
if (apex::apex_options::use_verbose()) {
fputs("apex: skipping ", stderr);
fputs(argv[0], stderr);
fputs("\n", stderr);
}
return true;
}
return false;
Expand Down Expand Up @@ -93,9 +95,11 @@ int apex_preload_main(int argc, char** argv, char** envp) {
if (apex::apex_options::use_otf2() && apex::apex_options::use_mpi()) {
ret = main_real(argc, argv, envp);
} else {
fputs("apex: executing ", stderr);
fputs(argv[0], stderr);
fputs("\n", stderr);
if (apex::apex_options::use_verbose()) {
fputs("apex: executing ", stderr);
fputs(argv[0], stderr);
fputs("\n", stderr);
}
apex::init("APEX Preload", 0, 1);
const std::string timerName{__APEX_FUNCTION__};
auto t = apex::new_task(timerName);
Expand Down
4 changes: 2 additions & 2 deletions src/apex/otf2_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ namespace apex {
}

bool otf2_listener::create_archive(void) {
printf("Enter %s\n", __func__);
//printf("Enter %s\n", __func__);
/* only one thread per process allowed in here, ever! */
write_lock_type lock(_archive_mutex);
/* only open once! */
Expand Down Expand Up @@ -535,7 +535,7 @@ namespace apex {
/* open the event files for this archive */
OTF2_EC(OTF2_Archive_OpenEvtFiles( archive ));
created = true;
printf("Exit %s\n", __func__);
//printf("Exit %s\n", __func__);
return created;
}

Expand Down

0 comments on commit eb2c215

Please sign in to comment.