Adding --collection-period feature in rocprofv3 to match v1/v2 parity (#9)
* Adding Trace Period feature to rocprofv3 * Adding feature documentation * Update source/bin/rocprofv3.py Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Fixing format * Moving to Collection Period and changing the input params * Format Fixes * Fixing rebasing issues * Removing atomic include from the tool * Adding more options for units, optimizing the code * Fixing rocprofv3.py * Fixing time conv & adding time controlled app * Fixing format * Changing to shared memory testing methodology * use of shmem use * Fix include headers for transpose-time-controlled.cpp * Format upload-image-to-github.py * Removing shmem and using only env var to dump timestamps from the tool * Tool Fixes + Test Config * Adding Tests * Fixing Review comments * Update trace period implementation * Update trace period tests * check between start and stop timestamps * Merge Fix * Update validate.py * Improve safety of rocprofiler_stop_context after finalization * Pass context id to collection_period_cntrl by value * Adding 20 us error margin * Ensure log level for collection-period test is not more than warning --------- Co-authored-by: Ammar ELWazir <aelwazir@amd.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e7d45624d0
Коммит
a579c70b71
@@ -229,9 +229,13 @@ context*
|
||||
get_mutable_registered_context(rocprofiler_context_id_t id)
|
||||
{
|
||||
if(id.handle < get_contexts_offset()) return nullptr;
|
||||
if(!get_registered_contexts_impl()) return nullptr;
|
||||
auto _idx = id.handle - get_contexts_offset();
|
||||
if(_idx >= get_registered_contexts_impl()->size()) return nullptr;
|
||||
return &get_registered_contexts_impl()->at(_idx).value();
|
||||
if(_idx >= get_registered_contexts_impl()->size())
|
||||
return nullptr;
|
||||
else if(get_registered_contexts_impl()->at(_idx).has_value())
|
||||
return &get_registered_contexts_impl()->at(_idx).value();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const context*
|
||||
|
||||
Ссылка в новой задаче
Block a user