diff --git a/hipamd/src/hip_hmm.cpp b/hipamd/src/hip_hmm.cpp index 64f2ca0435..2aa364ee31 100644 --- a/hipamd/src/hip_hmm.cpp +++ b/hipamd/src/hip_hmm.cpp @@ -137,6 +137,8 @@ hipError_t hipMemPrefetchAsync(const void* dev_ptr, size_t count, int device, hipError_t hipMemAdvise(const void* dev_ptr, size_t count, hipMemoryAdvise advice, int device) { HIP_INIT_API(hipMemAdvise, dev_ptr, count, advice, device); + CHECK_STREAM_CAPTURE_SUPPORTED(); + bool isAdviseReadMostly = (advice == hipMemAdviseSetReadMostly) || (advice == hipMemAdviseUnsetReadMostly);