Add Queue profling param and toggle for HIP

Use signal timestamps if NDRange command takes forceProfile flag.

Change-Id: Ib7f187d781fd78a7346818afb3344a9378f4c104
This commit is contained in:
Saleel Kudchadker
2020-07-29 12:55:10 -07:00
vanhempi 093f7fa3ca
commit ec73340348
4 muutettua tiedostoa jossa 15 lisäystä ja 6 poistoa
+1 -1
Näytä tiedosto
@@ -763,7 +763,7 @@ bool VirtualGPU::create() {
gpu_queue_ = roc_device_.acquireQueue(queue_size, cooperative_, cuMask_, priority_);
if (!gpu_queue_) return false;
if (!initPool(dev().settings().kernargPoolSize_, (profiling_) ? queue_size : 0)) {
if (!initPool(dev().settings().kernargPoolSize_, (amd::IS_HIP) ? queue_size : 0)) {
LogError("Couldn't allocate arguments/signals for the queue");
return false;
}