SWDEV-307109 - Don't force Persistent for HIP

With SAM on, don't force Persistent for allocations
in HIP. This makes ROCCLR go down paths we don't want
for HIP.

Change-Id: If54cc16fa891d4cfdc761c6ab21ad707627e822a
Este cometimento está contido em:
Christophe Paquot criou e Christophe Paquot cometeu 2021-12-06 12:16:08 -05:00
1 ascendente 1a677effa8
cometimento 5243552768
1 ficheiro modificado
+1 -1
+1 -1
Ver ficheiro
@@ -109,7 +109,7 @@ bool Memory::create(Resource::MemoryType memType, Resource::CreateParams* params
// Assume that allocations will be placed into visible heap when ReBar is enabled
// Only enable this assumption for small size local buffers
constexpr size_t kLargeAlloc = (1ull << 27);
if ((memType == Local) && desc().buffer_ && (size() < kLargeAlloc) && dev().info().largeBar_) {
if (!amd::IS_HIP && (memType == Local) && desc().buffer_ && (size() < kLargeAlloc) && dev().info().largeBar_) {
memType = Persistent;
}
// Create a resource in PAL