File tree 2 files changed +6
-5
lines changed
source/adapters/level_zero/v2
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 22
22
namespace umf {
23
23
ur_result_t getProviderNativeError (const char *providerName,
24
24
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);
27
31
}
28
32
29
33
return UR_RESULT_ERROR_UNKNOWN;
Original file line number Diff line number Diff line change 1
- urUSMDeviceAllocTest.InvalidUSMSize/*
2
1
urUSMGetMemAllocInfoTest.Success/*___UR_USM_ALLOC_INFO_POOL
3
- urUSMHostAllocTest.InvalidUSMSize/*
4
- urUSMSharedAllocTest.InvalidUSMSize/*
You can’t perform that action at this time.
0 commit comments