File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -591,6 +591,10 @@ hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig) {
591
591
HIP_RETURN (hipErrorInvalidValue);
592
592
}
593
593
594
+ if (!hip::tls.capture_streams_ .empty () || !g_captureStreams.empty ()) {
595
+ HIP_RETURN (hipErrorStreamCaptureUnsupported);
596
+ }
597
+
594
598
// No way to set cache config yet.
595
599
596
600
HIP_RETURN (hipSuccess);
@@ -631,6 +635,11 @@ hipError_t hipDeviceSetSharedMemConfig(hipSharedMemConfig config) {
631
635
config != hipSharedMemBankSizeEightByte) {
632
636
HIP_RETURN (hipErrorInvalidValue);
633
637
}
638
+
639
+ if (!hip::tls.capture_streams_ .empty () || !g_captureStreams.empty ()) {
640
+ HIP_RETURN (hipErrorStreamCaptureUnsupported);
641
+ }
642
+
634
643
// No way to set cache config yet.
635
644
636
645
HIP_RETURN (hipSuccess);
You can’t perform that action at this time.
0 commit comments