SWDEV-504307 SWDEV-504308 - fix hipDeviceSetCacheConfig and hipDeviceSetSharedMemConfig when capturing stream (#411)

이 커밋은 다음에 포함됨:
Li, Todd tiantuo 작성하고 GitHub가 2025-05-28 13:44:24 +05:30를 커밋함
1 부모 93c6ffdec4
커밋 c7f3ae6d2f
1 파일이 변경됨
+9
+9
파일 보기
@@ -591,6 +591,10 @@ hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig) {
HIP_RETURN(hipErrorInvalidValue);
}
if (!hip::tls.capture_streams_.empty() || !g_captureStreams.empty()) {
HIP_RETURN(hipErrorStreamCaptureUnsupported);
}
// No way to set cache config yet.
HIP_RETURN(hipSuccess);
@@ -631,6 +635,11 @@ hipError_t hipDeviceSetSharedMemConfig(hipSharedMemConfig config) {
config != hipSharedMemBankSizeEightByte) {
HIP_RETURN(hipErrorInvalidValue);
}
if (!hip::tls.capture_streams_.empty() || !g_captureStreams.empty()) {
HIP_RETURN(hipErrorStreamCaptureUnsupported);
}
// No way to set cache config yet.
HIP_RETURN(hipSuccess);