@@ -21,8 +21,6 @@ ur_result_t getProviderNativeError(const char *, int32_t) {
21
21
}
22
22
} // namespace umf
23
23
24
- namespace native_cpu {
25
-
26
24
static ur_result_t alloc_helper (ur_context_handle_t hContext,
27
25
const ur_usm_desc_t *pUSMDesc, size_t size,
28
26
void **ppMem, ur_usm_type_t type) {
@@ -39,15 +37,12 @@ static ur_result_t alloc_helper(ur_context_handle_t hContext,
39
37
return UR_RESULT_SUCCESS;
40
38
}
41
39
42
- } // namespace native_cpu
43
-
44
40
UR_APIEXPORT ur_result_t UR_APICALL
45
41
urUSMHostAlloc (ur_context_handle_t hContext, const ur_usm_desc_t *pUSMDesc,
46
42
ur_usm_pool_handle_t pool, size_t size, void **ppMem) {
47
43
std::ignore = pool;
48
44
49
- return native_cpu::alloc_helper (hContext, pUSMDesc, size, ppMem,
50
- UR_USM_TYPE_HOST);
45
+ return alloc_helper (hContext, pUSMDesc, size, ppMem, UR_USM_TYPE_HOST);
51
46
}
52
47
53
48
UR_APIEXPORT ur_result_t UR_APICALL
@@ -57,8 +52,7 @@ urUSMDeviceAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice,
57
52
std::ignore = hDevice;
58
53
std::ignore = pool;
59
54
60
- return native_cpu::alloc_helper (hContext, pUSMDesc, size, ppMem,
61
- UR_USM_TYPE_DEVICE);
55
+ return alloc_helper (hContext, pUSMDesc, size, ppMem, UR_USM_TYPE_DEVICE);
62
56
}
63
57
64
58
UR_APIEXPORT ur_result_t UR_APICALL
@@ -68,8 +62,7 @@ urUSMSharedAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice,
68
62
std::ignore = hDevice;
69
63
std::ignore = pool;
70
64
71
- return native_cpu::alloc_helper (hContext, pUSMDesc, size, ppMem,
72
- UR_USM_TYPE_SHARED);
65
+ return alloc_helper (hContext, pUSMDesc, size, ppMem, UR_USM_TYPE_SHARED);
73
66
}
74
67
75
68
UR_APIEXPORT ur_result_t UR_APICALL urUSMFree (ur_context_handle_t hContext,
0 commit comments