[SWDEV-513658] Force HSA_AMD_MEMORY_POOL_EXECUTABLE_FLAG value to be used with HSA calls (#192)
* Force HSA_AMD_MEMORY_POOL_EXECUTABLE_FLAG value to be used with HSA calls Fix for CI * More tweaks * Increase reproducible-runtime kernel sleep granularity * Fix data race in synchronous device counter collection sample * Update device counting service - add get_active_context function --------- Co-authored-by: Benjamin Welton <bewelton@amd.com> Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e67a4451d8
Коммит
080b2ba451
@@ -172,6 +172,20 @@ get_active_contexts(context_filter_t filter)
|
||||
return data;
|
||||
}
|
||||
|
||||
const context*
|
||||
get_active_context(rocprofiler_context_id_t id)
|
||||
{
|
||||
if(get_num_active_contexts().load(std::memory_order_acquire) > 0)
|
||||
{
|
||||
for(auto& itr : get_active_contexts_impl())
|
||||
{
|
||||
const auto* ctx = itr.load(std::memory_order_acquire);
|
||||
if(ctx && ctx->context_idx == id.handle) return ctx;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// set the client index needs to be called before allocate_context()
|
||||
void
|
||||
push_client(uint32_t value)
|
||||
|
||||
Ссылка в новой задаче
Block a user