Skip to content

Commit a2e8ad3

Browse files
authored
SWDEV-508980 - [6.4 Preview] fix hipDeviceSetCacheConfig during stream capture (#126)
1 parent 3383d43 commit a2e8ad3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hipamd/src/hip_device_runtime.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,10 @@ hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig) {
579579
HIP_RETURN(hipErrorInvalidValue);
580580
}
581581

582+
if (!hip::tls.capture_streams_.empty() || !g_captureStreams.empty()) {
583+
HIP_RETURN(hipErrorStreamCaptureUnsupported);
584+
}
585+
582586
// No way to set cache config yet.
583587

584588
HIP_RETURN(hipSuccess);

0 commit comments

Comments
 (0)