Allow prefetch on the null stream

Change-Id: I87e950460361fab65ab140988fc2288bcb194f08
Esse commit está contido em:
German Andryeyev
2020-08-10 14:59:44 -04:00
commit b73673bc74
+1 -1
Ver Arquivo
@@ -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;