File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
source/adapters/level_zero/v2 Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2222namespace umf {
2323ur_result_t getProviderNativeError (const char *providerName,
2424 int32_t nativeError) {
25- if (strcmp (providerName, " Level Zero" ) == 0 ) {
26- return ze2urResult (static_cast <ze_result_t >(nativeError));
25+ if (strcmp (providerName, " LEVEL_ZERO" ) == 0 ) {
26+ auto zeResult = static_cast <ze_result_t >(nativeError);
27+ if (zeResult == ZE_RESULT_ERROR_UNSUPPORTED_SIZE) {
28+ return UR_RESULT_ERROR_INVALID_USM_SIZE;
29+ }
30+ return ze2urResult (zeResult);
2731 }
2832
2933 return UR_RESULT_ERROR_UNKNOWN;
Original file line number Diff line number Diff line change 1- urUSMDeviceAllocTest.InvalidUSMSize/*
21urUSMGetMemAllocInfoTest.Success/*___UR_USM_ALLOC_INFO_POOL
3- urUSMHostAllocTest.InvalidUSMSize/*
4- urUSMSharedAllocTest.InvalidUSMSize/*
You can’t perform that action at this time.
0 commit comments