From f65b1f0dee76ba9f83c3019b1dca9755b12c1b0b Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Mon, 17 May 2021 10:40:39 -0400 Subject: [PATCH] SWDEV-240804 - Allow system memory creation. Always allocate managed memory in ROCclr and backend will decide what kind of memory to use. Currently ROCclr should fall to GPU accessible system memory if HMM isn't available Change-Id: I71328687b2dd4a3f563571f2b755079d82dca433 [ROCm/hip commit: 6430a308fc2372d195450edc9897a9242fb2c0ba] --- projects/hip/rocclr/hip_hmm.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/projects/hip/rocclr/hip_hmm.cpp b/projects/hip/rocclr/hip_hmm.cpp index 8829bb2753..4278115b25 100644 --- a/projects/hip/rocclr/hip_hmm.cpp +++ b/projects/hip/rocclr/hip_hmm.cpp @@ -200,10 +200,6 @@ hipError_t ihipMallocManaged(void** ptr, size_t size, unsigned int align) { const amd::Device& dev = *ctx.devices()[0]; - if (!dev.info().hmmSupported_) { - return hipErrorInvalidValue; - } - // For now limit to the max allocation size on the device. // The apps should be able to go over the limit in the future if (dev.info().maxMemAllocSize_ < size) {