SWDEV-336024 - Clear device heap to 0

The heap must be cleared once per device, but ROCclr doesn't
create a queue per device in HIP. Hence, the clear operation will
be performed during the first queue creation.

Change-Id: I52ceb06d67d11cde6d019c5ab510059f426a9bfb
Αυτή η υποβολή περιλαμβάνεται σε:
German Andryeyev
2022-05-06 16:12:22 -04:00
γονέας 6c458c7534
υποβολή 04bfd93569
10 αρχεία άλλαξαν με 77 προσθήκες και 47 διαγραφές
@@ -284,7 +284,7 @@ bool DeviceQueue::create() {
const bool defaultDeviceQueue = properties().test(CL_QUEUE_ON_DEVICE_DEFAULT);
bool result = false;
virtualDevice_ = device().createVirtualDevice(this);
virtualDevice_ = device().CreateDeviceQueue(this);
if (virtualDevice_ != NULL) {
result = true;
context().addDeviceQueue(device(), this, defaultDeviceQueue);