From d4cfdb3ef74cea0bff5cde9f3041cb359f25b0dc Mon Sep 17 00:00:00 2001 From: kahmed10 <15948690+kahmed10@users.noreply.github.com> Date: Wed, 6 Sep 2023 08:23:06 -0500 Subject: [PATCH] rename memoryType to type (#2139) --- src/targets/gpu/hip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/targets/gpu/hip.cpp b/src/targets/gpu/hip.cpp index 6ac5415bbe6..20241b097e5 100644 --- a/src/targets/gpu/hip.cpp +++ b/src/targets/gpu/hip.cpp @@ -55,7 +55,7 @@ bool is_device_ptr(const void* ptr) auto status = hipPointerGetAttributes(&attr, ptr); if(status != hipSuccess) return false; - return attr.memoryType == hipMemoryTypeDevice; + return attr.type == hipMemoryTypeDevice; } std::size_t get_available_gpu_memory()