Skip to content

Commit

Permalink
Removing verbose output in preload
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Oct 16, 2024
1 parent 4adc3ed commit fba41a9
Showing 1 changed file with 10 additions and 6 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

0 comments on commit fba41a9

Please sign in to comment.