Skip to content

Commit ccde31e

Browse files
hdelannpmiller
authored andcommitted
Put UR entry points in ur::level_zero
Fixes missing symbol at linking for static build of L0 adapter.
1 parent 6e6059c commit ccde31e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

source/adapters/level_zero/tensor_map.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,23 @@
1010

1111
#include <ur_api.h>
1212

13-
UR_APIEXPORT ur_result_t UR_APICALL urTensorMapEncodeIm2ColExp(
13+
namespace ur::level_zero {
14+
15+
ur_result_t urTensorMapEncodeIm2ColExp(
1416
ur_device_handle_t, ur_exp_tensor_map_data_type_flags_t, uint32_t, void *,
1517
const uint64_t *, const uint64_t *, const int *, const int *, uint32_t,
1618
uint32_t, const uint32_t *, ur_exp_tensor_map_interleave_flags_t,
1719
ur_exp_tensor_map_swizzle_flags_t, ur_exp_tensor_map_l2_promotion_flags_t,
1820
ur_exp_tensor_map_oob_fill_flags_t, ur_exp_tensor_map_handle_t *) {
1921
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
2022
}
21-
UR_APIEXPORT ur_result_t UR_APICALL urTensorMapEncodeTiledExp(
23+
24+
ur_result_t urTensorMapEncodeTiledExp(
2225
ur_device_handle_t, ur_exp_tensor_map_data_type_flags_t, uint32_t, void *,
2326
const uint64_t *, const uint64_t *, const uint32_t *, const uint32_t *,
2427
ur_exp_tensor_map_interleave_flags_t, ur_exp_tensor_map_swizzle_flags_t,
2528
ur_exp_tensor_map_l2_promotion_flags_t, ur_exp_tensor_map_oob_fill_flags_t,
2629
ur_exp_tensor_map_handle_t *) {
2730
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
2831
}
32+
} // namespace ur::level_zero

0 commit comments

Comments
 (0)