Skip to content

Commit

Permalink
rename memoryType to type (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahmed10 authored Sep 6, 2023
1 parent 53c406b commit d4cfdb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/targets/gpu/hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d4cfdb3

Please sign in to comment.