Reverting PR-154 Changes since VCN data not seen on Perfetto file (#191)
This commit is contained in:
@@ -1301,15 +1301,13 @@ rocprofiler_configure(uint32_t version, const char* runtime_version, uint32_t pr
|
||||
_first = false;
|
||||
}
|
||||
|
||||
// If ROCPROFSYS_PRELOAD or ROCPROFSYS_INIT_TOOLING is not set,
|
||||
// the tooling will not be initialized so we cannot enable
|
||||
// profiling with rocprofiler
|
||||
if(!tim::get_env("ROCPROFSYS_PRELOAD", true) ||
|
||||
!tim::get_env("ROCPROFSYS_INIT_TOOLING", true))
|
||||
return nullptr;
|
||||
|
||||
if(!tim::get_env("ROCPROFSYS_INIT_TOOLING", true)) return nullptr;
|
||||
if(!tim::settings::enabled()) return nullptr;
|
||||
|
||||
if(!rocprofsys::config::settings_are_configured() &&
|
||||
rocprofsys::get_state() < rocprofsys::State::Active)
|
||||
rocprofsys_init_tooling_hidden();
|
||||
|
||||
if(!rocprofsys::config::get_use_rocm())
|
||||
{
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user