Skip to content

Commit

Permalink
source formatting
Browse files Browse the repository at this point in the history
Signed-off-by: David Galiffi <[email protected]>
  • Loading branch information
dgaliffiAMD committed Sep 26, 2024
1 parent 9ba7d82 commit e37c956
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions source/bin/omnitrace-avail/generate_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,9 @@ generate_config(std::string _config_file, const std::set<std::string>& _config_f
true, _output_dir);
std::ofstream ofs{};
_open(ofs, _fname, "text")
<< "# auto-generated by rocprof-sys-avail (version " << OMNITRACE_VERSION_STRING
<< ") on " << tim::get_local_datetime("%F @ %H:%M", &_time) << "\n\n"
<< "# auto-generated by rocprof-sys-avail (version "
<< OMNITRACE_VERSION_STRING << ") on "
<< tim::get_local_datetime("%F @ %H:%M", &_time) << "\n\n"
<< _ss.str();
}

Expand Down
6 changes: 4 additions & 2 deletions source/bin/omnitrace-causal/impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,12 @@ parse_args(int argc, char** argv, std::vector<char*>& _env,
parser
.add_argument(
{ "-l", "--launcher" },
"When running MPI jobs, rocprof-sys-causal needs to be *before* the executable "
"When running MPI jobs, rocprof-sys-causal needs to be *before* the "
"executable "
"which launches the MPI processes (i.e. before `mpirun`, `srun`, etc.). Pass "
"the name of the target executable (or a regex for matching to the name of "
"the target) for causal profiling, e.g., `rocprof-sys-causal -l foo -- mpirun "
"the target) for causal profiling, e.g., `rocprof-sys-causal -l foo -- "
"mpirun "
"-n 4 foo`. This ensures that the omnitrace library is LD_PRELOADed on the "
"proper target")
.count(1)
Expand Down
4 changes: 3 additions & 1 deletion source/bin/omnitrace-instrument/module_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,9 @@ module_function::is_internal_constrained() const
auto _module_base = _basename(module_name);
auto _module_real = _realpath(module_name);

if(std::regex_search(module_name, std::regex{ "lib(rocprof-sys|rocprofsys|omnitrace|timemory|perfetto)" }))
if(std::regex_search(
module_name,
std::regex{ "lib(rocprof-sys|rocprofsys|omnitrace|timemory|perfetto)" }))
return _report("Excluding", "module", "omnitrace", 3);
else if(std::regex_match(module_name,
std::regex{ ".*/source/lib/"
Expand Down
3 changes: 2 additions & 1 deletion source/bin/omnitrace-instrument/omnitrace-instrument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ main(int argc, char** argv)
lib_search_paths.emplace_back(JOIN('/', _omni_root, "lib"));
lib_search_paths.emplace_back(JOIN('/', _omni_root, "lib", "rocprofsys"));
lib_search_paths.emplace_back(JOIN('/', _omni_root, "lib", "rocprofsys", "lib"));
lib_search_paths.emplace_back(JOIN('/', _omni_root, "lib", "rocprofsys", "lib64"));
lib_search_paths.emplace_back(
JOIN('/', _omni_root, "lib", "rocprofsys", "lib64"));
OMNITRACE_ADD_LOG_ENTRY(argv[0], "::", "rocprofsys root path: ", _omni_root);
}

Expand Down

0 comments on commit e37c956

Please sign in to comment.