From aef52b1ad161a38db0f6262a54c95daf69081ee0 Mon Sep 17 00:00:00 2001 From: Tobias Ribizel Date: Wed, 19 Aug 2020 15:28:00 +0200 Subject: [PATCH] disable unified memory on AMD GPUs --- hip/base/executor.hip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hip/base/executor.hip.cpp b/hip/base/executor.hip.cpp index 66a11ef2356..f41fb69f46c 100644 --- a/hip/base/executor.hip.cpp +++ b/hip/base/executor.hip.cpp @@ -103,7 +103,7 @@ void *HipExecutor::raw_alloc(size_type num_bytes) const { void *dev_ptr = nullptr; hip::device_guard g(this->get_device_id()); -#ifdef NDEBUG +#if defined(NDEBUG) || (GINKGO_HIP_PLATFORM_HCC == 1) auto error_code = hipMalloc(&dev_ptr, num_bytes); #else auto error_code = hipMallocManaged(&dev_ptr, num_bytes);