From 2ddfe40de0cd25fe375837b0a1a1a14ba7352d0d Mon Sep 17 00:00:00 2001 From: "Stojiljkovic, Vladana" Date: Thu, 22 May 2025 17:22:00 +0200 Subject: [PATCH] Allow hipMemAdvise capturing only in relaxed mode (#384) Co-authored-by: Anusha GodavarthySurya --- hipamd/src/hip_hmm.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);