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 committed 2022-05-11 11:03:56 -04:00
1 родитель 6c458c7534
Коммит 04bfd93569
10 files changed
+77 -47

No files matched your search

+1 -1
Просмотреть файл
@@ -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);