Use rocprofiler-SDK for OMPT tracing (#702)
Switch to using SDK for OMPT tracing and remove older OMPT code path
This commit is contained in:
@@ -414,6 +414,7 @@ get_callback_domains()
|
||||
{
|
||||
// Argument tracing is supported in rocprofiler-sdk 0.6.0 and later
|
||||
supported.emplace(ROCPROFILER_CALLBACK_TRACING_RCCL_API);
|
||||
supported.emplace(ROCPROFILER_CALLBACK_TRACING_OMPT);
|
||||
supported.emplace(ROCPROFILER_CALLBACK_TRACING_ROCDECODE_API);
|
||||
}
|
||||
# endif
|
||||
@@ -436,6 +437,15 @@ get_callback_domains()
|
||||
_data.emplace(ROCPROFILER_CALLBACK_TRACING_RCCL_API);
|
||||
}
|
||||
|
||||
# if ROCPROFILER_VERSION >= 600
|
||||
if(config::get_use_ompt() && _version.formatted >= 600)
|
||||
{
|
||||
// Translate some configuration settings to rocprofiler domains
|
||||
_data.emplace(ROCPROFILER_CALLBACK_TRACING_OMPT);
|
||||
}
|
||||
# endif
|
||||
|
||||
// Check that the domains are valid
|
||||
const auto valid_choices =
|
||||
settings::instance()->at("ROCPROFSYS_ROCM_DOMAINS")->get_choices();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user