SWDEV-362365 - Return invalid value if config is not valid.
Change-Id: I5f7300060f25536f8d3fd25afc2fe2522b621432
このコミットが含まれているのは:
@@ -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);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする