SWDEV-508980 - [6.4 Preview] fix hipDeviceSetCacheConfig during stream capture
Change-Id: I8e89774a8163fdc120155f742606ee2c0aa7103b
[ROCm/clr commit: 9faaf20aae]
This commit is contained in:
کامیت شده توسط
Todd tiantuo Li
والد
82f78ce187
کامیت
04dc7ca51f
@@ -578,6 +578,11 @@ hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig) {
|
|||||||
cacheConfig != hipFuncCachePreferL1 && cacheConfig != hipFuncCachePreferEqual) {
|
cacheConfig != hipFuncCachePreferL1 && cacheConfig != hipFuncCachePreferEqual) {
|
||||||
HIP_RETURN(hipErrorInvalidValue);
|
HIP_RETURN(hipErrorInvalidValue);
|
||||||
}
|
}
|
||||||
|
if (DEBUG_HIP_7_PREVIEW & amd::CHANGE_HIP_STREAM_CAPTURE_API) {
|
||||||
|
if (!hip::tls.capture_streams_.empty() || !g_captureStreams.empty()) {
|
||||||
|
HIP_RETURN(hipErrorStreamCaptureUnsupported);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// No way to set cache config yet.
|
// No way to set cache config yet.
|
||||||
|
|
||||||
|
|||||||
مرجع در شماره جدید
Block a user