Skip to content

Commit a9c4c55

Browse files
committed
Update on "Introduce public MergedDataMap"
Add public merged data map. Module can use this to resolve multiple named data maps. Differential Revision: [D83527299](https://our.internmc.facebook.com/intern/diff/D83527299/) [ghstack-poisoned]
2 parents 3aad6a9 + de0c402 commit a9c4c55

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

extension/named_data_map/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if(NOT EXECUTORCH_ROOT)
1616
set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
1717
endif()
1818

19-
19+
list(TRANSFORM _extension_named_data_map__srcs PREPEND "${EXECUTORCH_ROOT}/")
2020
# Create the library
2121
add_library(extension_named_data_map ${_extension_named_data_map__srcs})
2222

extension/named_data_map/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ et_cxx_test(
5858
)
5959

6060
add_dependencies(
61-
extension_named_data_map_tensor_test extension_named_data_map extension_named_data_map_test_resources
61+
extension_named_data_map_test extension_named_data_map extension_named_data_map_test_resources
6262
)
6363
set_property(TEST extension_named_data_map_test PROPERTY ENVIRONMENT ${test_env})

test/run_oss_cpp_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ build_executorch() {
4141
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
4242
-DEXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR=ON \
4343
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
44+
-DEXECUTORCH_BUILD_EXTENSION_NAMED_DATA_MAP=ON \
4445
-DEXECUTORCH_BUILD_EXTENSION_LLM=ON \
4546
-DEXECUTORCH_BUILD_EXTENSION_LLM_RUNNER=ON \
4647
-DEXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL=ON \

tools/cmake/preset/default.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ define_overridable_option(
8686
define_overridable_option(
8787
EXECUTORCH_BUILD_EXTENSION_MODULE "Build the Module extension" BOOL OFF
8888
)
89+
define_overridable_option(
90+
EXECUTORCH_BUILD_EXTENSION_NAMED_DATA_MAP "Build the Named Data Map extension" BOOL OFF
91+
)
8992
define_overridable_option(
9093
EXECUTORCH_BUILD_EXTENSION_TENSOR "Build the Tensor extension" BOOL OFF
9194
)

0 commit comments

Comments
 (0)