Fix "ROCPROFSYS_USE_ROCM" runtime config setting. (#144)

[ROCm/rocprofiler-systems commit: b6b39af011]
This commit is contained in:
David Galiffi
2025-03-27 16:03:46 -04:00
committed by GitHub
parent 95503cde21
commit 70b456f2a3
4 changed files with 20 additions and 1 deletions
@@ -1818,6 +1818,17 @@ get_use_amd_smi()
#endif
}
bool
get_use_rocm()
{
#if defined(ROCPROFSYS_USE_ROCM) && ROCPROFSYS_USE_ROCM > 0
static auto _v = get_config()->find("ROCPROFSYS_USE_ROCM");
return static_cast<tim::tsettings<bool>&>(*_v->second).get();
#else
return false;
#endif
}
bool&
get_use_sampling()
{