diff --git a/projects/clr/hipamd/src/hip_device_runtime.cpp b/projects/clr/hipamd/src/hip_device_runtime.cpp index 1f07c1b4e9..9a1b30038f 100644 --- a/projects/clr/hipamd/src/hip_device_runtime.cpp +++ b/projects/clr/hipamd/src/hip_device_runtime.cpp @@ -578,6 +578,11 @@ 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.