SWDEV-362365 - Return invalid value if config is not valid.

Change-Id: I5f7300060f25536f8d3fd25afc2fe2522b621432


[ROCm/clr commit: 4d8fd17985]
Цей коміт міститься в:
Jaydeep Patel authored and Maneesh Gupta committed 2023-04-05 16:37:28 +00:00
1 джерело ac5c6ad299
коміт 91fef1215c
1 file changed
+5 -1
+5 -1
Переглянути файл
@@ -503,7 +503,11 @@ hipError_t hipDeviceSetLimit ( hipLimit_t limit, size_t value ) {
hipError_t hipDeviceSetSharedMemConfig ( hipSharedMemConfig config ) {
HIP_INIT_API(hipDeviceSetSharedMemConfig, config);
if (config != hipSharedMemBankSizeDefault &&
config != hipSharedMemBankSizeFourByte &&
config != hipSharedMemBankSizeEightByte) {
HIP_RETURN(hipErrorInvalidValue);
}
// No way to set cache config yet.
HIP_RETURN(hipErrorNotSupported);