Fix output of hipPointerGetAttributes
The output of hipPointerGetAttributes is fixed to match CUDA counterpart.
[ROCm/clr commit: 7b868eb274]
This commit is contained in:
1 parent
87c279cf1e
commit
33497678f2
1 file changed
+2
-2
@@ -1826,10 +1826,10 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, void* ptr)
|
||||
attributes->isManaged = 0;
|
||||
attributes->allocationFlags = 0;
|
||||
|
||||
e = hipErrorInvalidValue;
|
||||
e = hipErrorUnknown;
|
||||
}
|
||||
#else
|
||||
e = hipErrorInvalidValue;
|
||||
e = hipErrorInvalidDevice;
|
||||
#endif
|
||||
|
||||
return ihipLogStatus(e);
|
||||
|
||||
Reference in new issue
Block a user