[SWDEV-467733] - Add Param checking for SetCacheConfig APIs

Change-Id: I9e777fa0fae6791ebab539e49346e6956a6ff196
이 커밋은 다음에 포함됨:
Rahul Manocha 작성하고 Rahul Manocha가 2024-09-27 11:32:58 -04:00를 커밋함
1 부모 07c9c7fe56
커밋 0d20383ef9
3 파일이 변경됨
+23 -2

검색과 일치하는 파일 없음

+5
파일 보기
@@ -574,6 +574,11 @@ hipError_t hipDeviceReset(void) {
hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig) {
HIP_INIT_API(hipDeviceSetCacheConfig, cacheConfig);
if (cacheConfig != hipFuncCachePreferNone && cacheConfig != hipFuncCachePreferShared &&
cacheConfig != hipFuncCachePreferL1 && cacheConfig != hipFuncCachePreferEqual) {
HIP_RETURN(hipErrorInvalidValue);
}
// No way to set cache config yet.
HIP_RETURN(hipSuccess);