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/clr commit: 302e527225]
Šī revīzija ir iekļauta:
German Andryeyev committed 2021-05-18 09:32:57 -04:00
1 vecāks fad72a437f
revīzija 9a580288eb
1 file changed
-4
@@ -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) {