From b73673bc7406ef7a4aee1243ae660b5a64e0218a Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Mon, 10 Aug 2020 14:59:44 -0400 Subject: [PATCH] Allow prefetch on the null stream Change-Id: I87e950460361fab65ab140988fc2288bcb194f08 --- hipamd/rocclr/hip_hmm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/rocclr/hip_hmm.cpp b/hipamd/rocclr/hip_hmm.cpp index b9df3b25d6..82d16b3562 100644 --- a/hipamd/rocclr/hip_hmm.cpp +++ b/hipamd/rocclr/hip_hmm.cpp @@ -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;