src/hip/handlehip.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hip/handlehip.cpp b/src/hip/handlehip.cpp index 31d42fbee..765cfb5b9 100644 --- a/src/hip/handlehip.cpp +++ b/src/hip/handlehip.cpp @@ -637,6 +637,9 @@ std::size_t Handle::GetWavefrontWidth() const // for a single object. std::size_t Handle::GetMaxMemoryAllocSize() { +#if 1 + return 64ULL * 1024 * 1024 * 1024; // 128GiB +#else if(m_MaxMemoryAllocSizeCached == 0) { size_t free, total; @@ -647,6 +650,7 @@ std::size_t Handle::GetMaxMemoryAllocSize() } return m_MaxMemoryAllocSizeCached; +#endif } std::string Handle::GetDeviceNameImpl() const { return this->impl->get_device_name(); }