concurrent: enable/fix the related settings

Concurrent profiling relies on the aqlprofile read_api
and tracker. This patch set those options to enable
the concurrent profiling.

Change-Id: Ib97d4d8facfbc11f2684d83109397cd13f117d5e


[ROCm/rocprofiler commit: b445610cd1]
This commit is contained in:
Xianwei Zhang
2020-08-26 15:15:19 -04:00
bovenliggende 4e691bd307
commit 9c62afb8ba
3 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
@@ -1478,9 +1478,9 @@ extern "C" PUBLIC_API void OnLoadToolProp(rocprofiler_settings_t* settings)
} else {
// Adding dispatch observer
rocprofiler_queue_callbacks_t callbacks_ptrs{0};
if (settings->k_concurrent != 0) {
if (settings->k_concurrent == 2) { // concurrent trace
callbacks_ptrs.dispatch = dispatch_callback_con;
} else {
} else { // pmc
callbacks_ptrs.dispatch = dispatch_callback;
}
callbacks_ptrs.destroy = destroy_callback;