From 3fa6049c46bead617f7339ec19eabcc25601bdfe Mon Sep 17 00:00:00 2001 From: Rakesh Roy Date: Fri, 7 Mar 2025 06:40:44 -0500 Subject: [PATCH] Revert "SWDEV-508980 - [6.4 Preview] fix hipDeviceSetCacheConfig during stream capture" This reverts commit 9faaf20aae5e97269d73ca42ed83f6cb91f75227. Reason for revert: 6.4 Preview changes need not be merged to amd-staging as of now Change-Id: I04af8603053338f08c396e78ff8a6715e641ca19 --- hipamd/src/hip_device_runtime.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hipamd/src/hip_device_runtime.cpp b/hipamd/src/hip_device_runtime.cpp index e6e7d04f0f..9310a39fd4 100644 --- a/hipamd/src/hip_device_runtime.cpp +++ b/hipamd/src/hip_device_runtime.cpp @@ -578,11 +578,6 @@ hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig) { cacheConfig != hipFuncCachePreferL1 && cacheConfig != hipFuncCachePreferEqual) { HIP_RETURN(hipErrorInvalidValue); } - if (DEBUG_HIP_7_PREVIEW & amd::CHANGE_HIP_STREAM_CAPTURE_API) { - if (!hip::tls.capture_streams_.empty() || !g_captureStreams.empty()) { - HIP_RETURN(hipErrorStreamCaptureUnsupported); - } - } // No way to set cache config yet.