Skip to content

Commit 3383d43

Browse files
authored
SWDEV-508981 - [6.4 Preview] fix hipDeviceSetSharedMemConfig during stream capture (#125)
1 parent 7b999b9 commit 3383d43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hipamd/src/hip_device_runtime.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,11 @@ hipError_t hipDeviceSetSharedMemConfig(hipSharedMemConfig config) {
614614
config != hipSharedMemBankSizeEightByte) {
615615
HIP_RETURN(hipErrorInvalidValue);
616616
}
617+
618+
if (!hip::tls.capture_streams_.empty() || !g_captureStreams.empty()) {
619+
HIP_RETURN(hipErrorStreamCaptureUnsupported);
620+
}
621+
617622
// No way to set cache config yet.
618623

619624
HIP_RETURN(hipSuccess);

0 commit comments

Comments
 (0)