Allow prefetch on the null stream

Change-Id: I87e950460361fab65ab140988fc2288bcb194f08


[ROCm/clr commit: b73673bc74]
This commit is contained in:
German Andryeyev
2020-08-10 14:59:44 -04:00
parent 420ec4eeae
commit 031cf9d32a
+1 -1
Vedi File
@@ -71,7 +71,7 @@ hipError_t hipMemPrefetchAsync(const void* dev_ptr, size_t count, int device,
hipStream_t stream) {
HIP_INIT_API(hipMemPrefetchAsync, dev_ptr, count, device, stream);
if ((dev_ptr == nullptr) || (count == 0) || (stream == nullptr)) {
if ((dev_ptr == nullptr) || (count == 0)) {
HIP_RETURN(hipErrorInvalidValue);
}
amd::HostQueue* queue = nullptr;