Skip to content

Commit 95cdc83

Browse files
authored
SWDEV-511055 - fix HIP PAL memory allocation workaround for APU (#40)
1 parent 1113eff commit 95cdc83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rocclr/device/pal/palmemory.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ bool Memory::create(Resource::MemoryType memType, Resource::CreateParams* params
118118
if (amd::IS_HIP && dev().settings().apuSystem_) {
119119
const Pal::GpuMemoryHeapProperties& invisibleHeap = dev().GetGpuHeapInvisible();
120120
Pal::gpusize totalAlloc = dev().TotalAlloc();
121-
if (invisibleHeap.logicalSize > 0 && memType == Local &&
122-
(totalAlloc > invisibleHeap.logicalSize)) {
121+
if (memType == Local && (totalAlloc > invisibleHeap.logicalSize)) {
123122
memType = RemoteUSWC;
124123
}
125124
}

0 commit comments

Comments
 (0)