Advanced Computing Platform for Theoretical Physics

Commit 7664f498 authored by YI-Bo Yang's avatar YI-Bo Yang
Browse files

Hack on the pointer check as HIP can not recognize a host pointer

parent f5ce07a9
......@@ -481,9 +481,10 @@ namespace quda
void *data[] = { &mem_type };
hipError_t error = hipPointerGetAttributes(&attribute,ptr);mem_type=attribute.memoryType;
if (error != hipSuccess) {
mem_type = hipMemoryTypeHost;
const char *string;
string=hipGetErrorString(error);
errorQuda("cuPointerGetAttributes failed with error %s", string);
printfQuda("cuPointerGetAttributes failed with error %s, would be on the host\n", string);
}
// catch pointers that have not been created in CUDA
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment