Skip to content

Commit af15338

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 51b397d + f54494a commit af15338

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backends/qualcomm/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ add_custom_command(
5353
)
5454

5555
add_compile_options("-Wall" "-Werror" "-Wno-sign-compare")
56+
add_compile_definitions(C10_USING_CUSTOM_GENERATED_MACROS)
5657

5758
# GNU emit wanring for ignored attributes Unfortunately, we use [[maybe_unused]]
5859
# which can be ignored by GNU. So we make it a warning, not an error in GNU.

0 commit comments

Comments
 (0)