Skip to content

Commit adde645

Browse files
author
Hugh Delaney
committed
Add unsupported entry points to other adapters
1 parent 75a3ae9 commit adde645

File tree

8 files changed

+119
-0
lines changed

8 files changed

+119
-0
lines changed

source/adapters/hip/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ add_ur_adapter(${TARGET_NAME}
8181
${CMAKE_CURRENT_SOURCE_DIR}/queue.cpp
8282
${CMAKE_CURRENT_SOURCE_DIR}/sampler.hpp
8383
${CMAKE_CURRENT_SOURCE_DIR}/sampler.cpp
84+
${CMAKE_CURRENT_SOURCE_DIR}/tensor_map.cpp
8485
${CMAKE_CURRENT_SOURCE_DIR}/usm.cpp
8586
${CMAKE_CURRENT_SOURCE_DIR}/usm_p2p.cpp
8687
${CMAKE_CURRENT_SOURCE_DIR}/virtual_mem.cpp

source/adapters/hip/tensor_map.cpp

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//===--------- tensor_map.cpp - HIP Adapter -------------------------------===//
2+
//
3+
// Copyright (C) 2024 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
7+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8+
//
9+
//===----------------------------------------------------------------------===//
10+
11+
#include <ur_api.h>
12+
13+
UR_APIEXPORT ur_result_t UR_APICALL urTensorMapEncodeIm2ColExp(
14+
ur_device_handle_t, ur_exp_tensor_map_data_type_flags_t, uint32_t, void *,
15+
const uint64_t *, const uint64_t *, const int *, const int *, uint32_t,
16+
uint32_t, const uint32_t *, ur_exp_tensor_map_interleave_flags_t,
17+
ur_exp_tensor_map_swizzle_flags_t, ur_exp_tensor_map_l2_promotion_flags_t,
18+
ur_exp_tensor_map_oob_fill_flags_t, ur_exp_tensor_map_handle_t *) {
19+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
20+
}
21+
UR_APIEXPORT ur_result_t UR_APICALL urTensorMapEncodeTiledExp(
22+
ur_device_handle_t, ur_exp_tensor_map_data_type_flags_t, uint32_t, void *,
23+
const uint64_t *, const uint64_t *, const uint32_t *, const uint32_t *,
24+
ur_exp_tensor_map_interleave_flags_t, ur_exp_tensor_map_swizzle_flags_t,
25+
ur_exp_tensor_map_l2_promotion_flags_t, ur_exp_tensor_map_oob_fill_flags_t,
26+
ur_exp_tensor_map_handle_t *) {
27+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
28+
}
29+

source/adapters/level_zero/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ add_ur_adapter(${TARGET_NAME}
134134
${CMAKE_CURRENT_SOURCE_DIR}/queue_api.cpp
135135
${CMAKE_CURRENT_SOURCE_DIR}/queue.cpp
136136
${CMAKE_CURRENT_SOURCE_DIR}/sampler.cpp
137+
${CMAKE_CURRENT_SOURCE_DIR}/tensor_map.cpp
137138
${CMAKE_CURRENT_SOURCE_DIR}/image.cpp
138139
${CMAKE_CURRENT_SOURCE_DIR}/../../ur/ur.cpp
139140
${CMAKE_CURRENT_SOURCE_DIR}/v2/queue_immediate_in_order.cpp
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//===--------- tensor_map.cpp - L0 Adapter --------------------------------===//
2+
//
3+
// Copyright (C) 2024 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
7+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8+
//
9+
//===----------------------------------------------------------------------===//
10+
11+
#include <ur_api.h>
12+
13+
UR_APIEXPORT ur_result_t UR_APICALL urTensorMapEncodeIm2ColExp(
14+
ur_device_handle_t, ur_exp_tensor_map_data_type_flags_t, uint32_t, void *,
15+
const uint64_t *, const uint64_t *, const int *, const int *, uint32_t,
16+
uint32_t, const uint32_t *, ur_exp_tensor_map_interleave_flags_t,
17+
ur_exp_tensor_map_swizzle_flags_t, ur_exp_tensor_map_l2_promotion_flags_t,
18+
ur_exp_tensor_map_oob_fill_flags_t, ur_exp_tensor_map_handle_t *) {
19+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
20+
}
21+
UR_APIEXPORT ur_result_t UR_APICALL urTensorMapEncodeTiledExp(
22+
ur_device_handle_t, ur_exp_tensor_map_data_type_flags_t, uint32_t, void *,
23+
const uint64_t *, const uint64_t *, const uint32_t *, const uint32_t *,
24+
ur_exp_tensor_map_interleave_flags_t, ur_exp_tensor_map_swizzle_flags_t,
25+
ur_exp_tensor_map_l2_promotion_flags_t, ur_exp_tensor_map_oob_fill_flags_t,
26+
ur_exp_tensor_map_handle_t *) {
27+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
28+
}

source/adapters/native_cpu/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ add_ur_adapter(${TARGET_NAME}
3434
${CMAKE_CURRENT_SOURCE_DIR}/queue.cpp
3535
${CMAKE_CURRENT_SOURCE_DIR}/queue.hpp
3636
${CMAKE_CURRENT_SOURCE_DIR}/sampler.cpp
37+
${CMAKE_CURRENT_SOURCE_DIR}/tensor_map.cpp
3738
${CMAKE_CURRENT_SOURCE_DIR}/ur_interface_loader.cpp
3839
${CMAKE_CURRENT_SOURCE_DIR}/usm_p2p.cpp
3940
${CMAKE_CURRENT_SOURCE_DIR}/virtual_mem.cpp
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//===--------- tensor_map.cpp - Native CPU Adapter ------------------------===//
2+
//
3+
// Copyright (C) 2024 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
7+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8+
//
9+
//===----------------------------------------------------------------------===//
10+
11+
#include <ur_api.h>
12+
13+
UR_APIEXPORT ur_result_t UR_APICALL urTensorMapEncodeIm2ColExp(
14+
ur_device_handle_t, ur_exp_tensor_map_data_type_flags_t, uint32_t, void *,
15+
const uint64_t *, const uint64_t *, const int *, const int *, uint32_t,
16+
uint32_t, const uint32_t *, ur_exp_tensor_map_interleave_flags_t,
17+
ur_exp_tensor_map_swizzle_flags_t, ur_exp_tensor_map_l2_promotion_flags_t,
18+
ur_exp_tensor_map_oob_fill_flags_t, ur_exp_tensor_map_handle_t *) {
19+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
20+
}
21+
UR_APIEXPORT ur_result_t UR_APICALL urTensorMapEncodeTiledExp(
22+
ur_device_handle_t, ur_exp_tensor_map_data_type_flags_t, uint32_t, void *,
23+
const uint64_t *, const uint64_t *, const uint32_t *, const uint32_t *,
24+
ur_exp_tensor_map_interleave_flags_t, ur_exp_tensor_map_swizzle_flags_t,
25+
ur_exp_tensor_map_l2_promotion_flags_t, ur_exp_tensor_map_oob_fill_flags_t,
26+
ur_exp_tensor_map_handle_t *) {
27+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
28+
}
29+

source/adapters/opencl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ add_ur_adapter(${TARGET_NAME} SHARED
3737
${CMAKE_CURRENT_SOURCE_DIR}/program.cpp
3838
${CMAKE_CURRENT_SOURCE_DIR}/queue.cpp
3939
${CMAKE_CURRENT_SOURCE_DIR}/sampler.cpp
40+
${CMAKE_CURRENT_SOURCE_DIR}/tensor_map.cpp
4041
${CMAKE_CURRENT_SOURCE_DIR}/usm.cpp
4142
${CMAKE_CURRENT_SOURCE_DIR}/usm_p2p.cpp
4243
${CMAKE_CURRENT_SOURCE_DIR}/virtual_mem.cpp
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//===--------- tensor_map.cpp - OpenCL Adapter ----------------------------===//
2+
//
3+
// Copyright (C) 2024 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
7+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8+
//
9+
//===----------------------------------------------------------------------===//
10+
11+
#include <ur_api.h>
12+
13+
UR_APIEXPORT ur_result_t UR_APICALL urTensorMapEncodeIm2ColExp(
14+
ur_device_handle_t, ur_exp_tensor_map_data_type_flags_t, uint32_t, void *,
15+
const uint64_t *, const uint64_t *, const int *, const int *, uint32_t,
16+
uint32_t, const uint32_t *, ur_exp_tensor_map_interleave_flags_t,
17+
ur_exp_tensor_map_swizzle_flags_t, ur_exp_tensor_map_l2_promotion_flags_t,
18+
ur_exp_tensor_map_oob_fill_flags_t, ur_exp_tensor_map_handle_t *) {
19+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
20+
}
21+
UR_APIEXPORT ur_result_t UR_APICALL urTensorMapEncodeTiledExp(
22+
ur_device_handle_t, ur_exp_tensor_map_data_type_flags_t, uint32_t, void *,
23+
const uint64_t *, const uint64_t *, const uint32_t *, const uint32_t *,
24+
ur_exp_tensor_map_interleave_flags_t, ur_exp_tensor_map_swizzle_flags_t,
25+
ur_exp_tensor_map_l2_promotion_flags_t, ur_exp_tensor_map_oob_fill_flags_t,
26+
ur_exp_tensor_map_handle_t *) {
27+
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
28+
}
29+

0 commit comments

Comments
 (0)