SWDEV-362365 - Return invalid value if config is not valid.
Change-Id: I5f7300060f25536f8d3fd25afc2fe2522b621432
Этот коммит содержится в:
коммит произвёл
Maneesh Gupta
родитель
4ac87c051d
Коммит
4d8fd17985
@@ -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);
|
||||
|
||||
Ссылка в новой задаче
Block a user