Skip to content

Commit f4c5b77

Browse files
author
Github Executorch
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 69e2672 + e796277 commit f4c5b77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/arm/executor_runner/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,9 @@ target_link_options( arm_executor_runner PUBLIC LINKER:-Map=arm_executor_runner.
351351

352352
# ET headers and generated headers includes
353353
target_include_directories(
354-
arm_executor_runner PRIVATE ${ET_INCLUDE_PATH} ${CMAKE_CURRENT_BINARY_DIR}
354+
arm_executor_runner PRIVATE ${ET_INCLUDE_PATH} ${ET_DIR_PATH}/runtime/core/portable_type${CMAKE_CURRENT_BINARY_DIR}
355355
)
356+
target_compile_definitions(arm_executor_runner PRIVATE C10_USING_CUSTOM_GENERATED_MACROS)
356357

357358
if(SEMIHOSTING)
358359
target_compile_definitions(arm_executor_runner PUBLIC SEMIHOSTING)

0 commit comments

Comments
 (0)