Skip to content

Commit

Permalink
disable unified memory on AMD GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed Aug 19, 2020
1 parent 50a6db6 commit aef52b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hip/base/executor.hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aef52b1

Please sign in to comment.