Skip to content

Commit be1e92e

Browse files
committed
Update on "Use c10 version of half/bfloat16 in executorch"
Accomplished by importing relevant files from c10 into executorch/runtime/core/portable_type/c10, and then using `using` in the top-level ExecuTorch headers. This approach should keep the ExecuTorch build hermetic for embedded use cases. In the future, we should add a CI job to ensure the c10 files stay identical to the PyTorch ones. Differential Revision: [D66106969](https://our.internmc.facebook.com/intern/diff/D66106969/) [ghstack-poisoned]
2 parents cae460c + af5897d commit be1e92e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/models/llama/runner/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ include(${EXECUTORCH_SRCS_FILE})
3838
list(TRANSFORM _llama_runner__srcs PREPEND "${EXECUTORCH_ROOT}/")
3939

4040
target_include_directories(
41-
extension_module INTERFACE ${_common_include_directories} ${EXECUTORCH_INCLUDE_DIRS}
41+
extension_module INTERFACE ${_common_include_directories}
4242
)
4343

4444
list(
@@ -82,6 +82,6 @@ set(llama_runner_deps executorch extension_data_loader extension_module
8282
target_link_libraries(llama_runner PUBLIC ${llama_runner_deps})
8383

8484
target_include_directories(
85-
llama_runner INTERFACE ${_common_include_directories} ${EXECUTORCH_INCLUDE_DIRS}
85+
llama_runner INTERFACE ${_common_include_directories} ${EXECUTORCH_ROOT}
8686
)
8787
target_compile_options(llama_runner PUBLIC ${_preprocessor_flag})

0 commit comments

Comments
 (0)