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

[ROCm/clr commit: c7f3ae6d2f]
Этот коммит содержится в:
Li, Todd tiantuo authored and GitHub committed 2025-05-28 13:44:24 +05:30
1 родитель 60c19641d8
Коммит fb7f0a0794
1 file changed
+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);