SWDEV-470585 - Disable double copy in HIP

- HIP path doesn't support resource tracking. Thus, double copy can't be enabled,
because it requires resource tracking.

Change-Id: I0f9c4e185b5b2d2b1abde041fca21bb099db9ccd
Bu işleme şunda yer alıyor:
German Andryeyev committed 2024-07-19 18:32:34 -04:00
1 ebeveyn 11817b4405
işleme 4c763e45a1
1 file changed
+2 -3
+2 -3
Dosyayı Görüntüle
@@ -1659,9 +1659,8 @@ pal::Memory* Device::createBuffer(amd::Memory& owner, bool directAccess) const {
// If direct access failed
if (!result) {
// Don't use cached allocation
// if size is biger than max single alloc
if (owner.getSize() > info().maxMemAllocSize_) {
// Don't use cached allocation if size is biger than max single alloc or it's HIP
if (amd::IS_HIP || (owner.getSize() > info().maxMemAllocSize_)) {
delete gpuMemory;
return nullptr;
}