Fix setup-env + hsa/rocm/ompt serialization + testing + misc (#156)

- Fix setup-env.sh
  - Closes #149 
- omnitrace exe color
- test-install.sh script
- if config variable is updated in config or env, include in generated
config
- metadata for hsa, rocm, and ompt
  - Closes #153 
  - Closes #154
This commit is contained in:
Jonathan R. Madsen
2022-09-13 08:11:48 -05:00
committed by GitHub
parent 4ed8f8f762
commit 15e6e6d979
17 changed files with 499 additions and 113 deletions
+5 -1
View File
@@ -802,7 +802,11 @@ write_settings_info(std::ostream& os, const array_t<bool, N>& opts,
if(category_view.count(citr) > 0) _found = true;
}
if(!print_advanced && _categories.count("settings::advanced") > 0)
_not_in_category_view.emplace(_name);
{
if(!sitr->second->get_config_updated() &&
!sitr->second->get_environ_updated())
_not_in_category_view.emplace(_name);
}
if(!_found)
{
_not_in_category_view.emplace(_name);
@@ -62,6 +62,7 @@ ignore_setting(const Tp& _v)
{
if(_v->get_hidden()) return true;
if(exclude_setting(_v->get_env_name())) return true;
if(_v->get_config_updated() || _v->get_environ_updated()) return false;
if(!is_selected(_v->get_env_name()) && !is_selected(_v->get_name())) return true;
if(available_only && !_v->get_enabled()) return true;
if(!category_view.empty())
+7 -3
View File
@@ -25,6 +25,7 @@
#include "fwd.hpp"
#include "module_function.hpp"
#include <timemory/log/color.hpp>
#include <timemory/mpl/policy.hpp>
#include <timemory/settings.hpp>
#include <timemory/settings/types.hpp>
@@ -81,9 +82,10 @@ dump_info(const string_t& _label, string_t _oname, const string_t& _ext,
_handle_error();
else
{
verbprintf_bare(_level, "%s", ::tim::log::color::source());
verbprintf(_level, "Outputting '%s'... ", _oname.c_str());
dump_info(ofs, _data);
verbprintf_bare(_level, "Done\n");
verbprintf_bare(_level, "Done\n%s", ::tim::log::color::end());
}
ofs.close();
}
@@ -109,9 +111,10 @@ dump_info(const string_t& _label, string_t _oname, const string_t& _ext,
_handle_error();
else
{
verbprintf_bare(_level, "%s", ::tim::log::color::source());
verbprintf(_level, "Outputting '%s'... ", _oname.c_str());
ofs << oss.str() << std::endl;
verbprintf_bare(_level, "Done\n");
verbprintf_bare(_level, "Done\n%s", ::tim::log::color::end());
}
ofs.close();
}
@@ -136,9 +139,10 @@ dump_info(const string_t& _label, string_t _oname, const string_t& _ext,
_handle_error();
else
{
verbprintf_bare(_level, "%s", ::tim::log::color::source());
verbprintf(_level, "Outputting '%s'... ", _oname.c_str());
ofs << oss.str() << std::endl;
verbprintf_bare(_level, "Done\n");
verbprintf_bare(_level, "Done\n%s", ::tim::log::color::end());
}
ofs.close();
}
-1
View File
@@ -1790,7 +1790,6 @@ main(int argc, char** argv)
}
verbprintf(2, "Beginning instrumentation loop...\n");
verbprintf(1, "\n");
auto _report_info = [](int _lvl, const string_t& _action, const string_t& _type,
const string_t& _reason, const string_t& _name,
const std::string& _extra = {}) {