Skip to content

Commit f6d24e9

Browse files
authored
Merge pull request #2019 from ldrumm/namespace-cleanup
Remove superfluous namespace
2 parents 1467d39 + 8a431b5 commit f6d24e9

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

source/adapters/native_cpu/usm.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ ur_result_t getProviderNativeError(const char *, int32_t) {
2121
}
2222
} // namespace umf
2323

24-
namespace native_cpu {
25-
2624
static ur_result_t alloc_helper(ur_context_handle_t hContext,
2725
const ur_usm_desc_t *pUSMDesc, size_t size,
2826
void **ppMem, ur_usm_type_t type) {
@@ -39,15 +37,12 @@ static ur_result_t alloc_helper(ur_context_handle_t hContext,
3937
return UR_RESULT_SUCCESS;
4038
}
4139

42-
} // namespace native_cpu
43-
4440
UR_APIEXPORT ur_result_t UR_APICALL
4541
urUSMHostAlloc(ur_context_handle_t hContext, const ur_usm_desc_t *pUSMDesc,
4642
ur_usm_pool_handle_t pool, size_t size, void **ppMem) {
4743
std::ignore = pool;
4844

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);
5146
}
5247

5348
UR_APIEXPORT ur_result_t UR_APICALL
@@ -57,8 +52,7 @@ urUSMDeviceAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice,
5752
std::ignore = hDevice;
5853
std::ignore = pool;
5954

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);
6256
}
6357

6458
UR_APIEXPORT ur_result_t UR_APICALL
@@ -68,8 +62,7 @@ urUSMSharedAlloc(ur_context_handle_t hContext, ur_device_handle_t hDevice,
6862
std::ignore = hDevice;
6963
std::ignore = pool;
7064

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);
7366
}
7467

7568
UR_APIEXPORT ur_result_t UR_APICALL urUSMFree(ur_context_handle_t hContext,

0 commit comments

Comments
 (0)