fix memory type
This commit is contained in:
parent
56d2821bb9
commit
11afdc957e
@ -73,7 +73,6 @@ bool ArrayInterfaceHandler::IsCudaPtr(void const* ptr) {
|
|||||||
} else if (err == hipSuccess) {
|
} else if (err == hipSuccess) {
|
||||||
#if HIP_VERSION_MAJOR < 6
|
#if HIP_VERSION_MAJOR < 6
|
||||||
switch (attr.memoryType) {
|
switch (attr.memoryType) {
|
||||||
case hipMemoryTypeUnified:
|
|
||||||
case hipMemoryTypeHost:
|
case hipMemoryTypeHost:
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
@ -81,7 +80,7 @@ bool ArrayInterfaceHandler::IsCudaPtr(void const* ptr) {
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
switch (attr.type) {
|
switch (attr.type) {
|
||||||
case hipMemoryTypeUnified:
|
case hipMemoryTypeUnregistered:
|
||||||
case hipMemoryTypeHost:
|
case hipMemoryTypeHost:
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user