Skip to content

Commit

Permalink
fix memory type
Browse files Browse the repository at this point in the history
  • Loading branch information
hliuca committed Jan 26, 2024
1 parent 420f8d6 commit 1ce5029
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/data/array_interface.cu
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,14 @@ bool ArrayInterfaceHandler::IsCudaPtr(void const* ptr) {
} else if (err == hipSuccess) {
#if HIP_VERSION_MAJOR < 6
switch (attr.memoryType) {
case hipMemoryTypeUnified:
case hipMemoryTypeHost:
return false;
default:
return true;
}
#else
switch (attr.type) {
case hipMemoryTypeUnified:
case hipMemoryTypeUnregistered:
case hipMemoryTypeHost:
return false;
default:
Expand Down

0 comments on commit 1ce5029

Please sign in to comment.