From 02bbe11e56348e0b1e76cc153f358ad3b74ea3c5 Mon Sep 17 00:00:00 2001 From: Vladana Stojiljkovic Date: Tue, 15 Oct 2024 12:33:18 +0200 Subject: [PATCH] SWDEV-491452 - Allow hipMemAdvise capturing only inrelaxed mode Change-Id: I1ca5e050ff869b486e3a0a41d7f06390a88e1110 --- hipamd/src/hip_hmm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hipamd/src/hip_hmm.cpp b/hipamd/src/hip_hmm.cpp index 23b759f481..6378747e5d 100644 --- a/hipamd/src/hip_hmm.cpp +++ b/hipamd/src/hip_hmm.cpp @@ -137,6 +137,7 @@ 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);