[SDK] Fix context tracing domain bitset overflow (#536)
- Fix context tracing domain bitset overflow
- Previous behavior would enable all flags above ROCPROFILER_BUFFER_TRACING_MARKER_CORE_RANGE_API when this domain was enabled.
[ROCm/rocprofiler-sdk commit: 2c7f260e62]
This commit is contained in:
committed by
GitHub
parent
4ca156e572
commit
df840b67a9
@@ -68,7 +68,7 @@ add_domain(domain_context<DomainT>& _cfg, DomainT _domain)
|
||||
|
||||
if(_didx >= _cfg.array_size) return ROCPROFILER_STATUS_ERROR_KIND_NOT_FOUND;
|
||||
|
||||
_cfg.domains |= (1 << _didx);
|
||||
_cfg.domains |= (1UL << _didx);
|
||||
return ROCPROFILER_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user