Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
3f125b6
Update `sorted_vector_map`
JakobDegen May 8, 2024
25214d4
Use compile-time promotion to reduce max/min size & build time (#3459)
swolchok May 8, 2024
a2e1310
Use compile-time promotion to reduce floor_divide size & build time (…
swolchok May 8, 2024
ad33982
Use compile-time promotion to reduce remainder size & build time (#3458)
swolchok May 8, 2024
5c05def
Use compile-time promotion to reduce fmod size & build time (#3456)
swolchok May 8, 2024
7841e96
support Half in minimum and clamp (#3457)
swolchok May 8, 2024
c8f306d
Stylize struct members with snake_case (#3545)
May 8, 2024
2d68bd3
Rename `Allocator.*` as `vma_api.*` (#3552)
May 8, 2024
f8403ed
Error out when token is outside of vocab size (#3535)
cccclai May 9, 2024
dd81fc7
Fix backend/arm tests failing when there is no tosa installed (#3560)
zingo May 9, 2024
fff20a7
Update pytorch pin (#3562)
mergennachin May 9, 2024
21f5fbf
Catch check on symbolic shapes (#3537)
angelayi May 9, 2024
38c30d6
use utils:{min,max}_override in {min,max}imum ops (#3453)
swolchok May 9, 2024
8ebe1c9
Use compile-time promotion to reduce bitwise op size & build time (#3…
swolchok May 9, 2024
5adc8bf
Use compile-time promotion to reduce optimized mul op size & build ti…
swolchok May 9, 2024
a4110e0
Use compile-time promotion to reduce optimized add/sub op size & buil…
swolchok May 9, 2024
b3c3e65
Use compile-time promotion to reduce optimized le op size & build tim…
swolchok May 9, 2024
cc11541
make extract_delegate_segments=True by default (#3405)
May 9, 2024
edaae14
Split `Resource.h` into multiple files within `memory/` (#3553)
May 9, 2024
f6f881a
Remove unneeded `api::` prefix within `namespace api` (#3554)
May 9, 2024
ebdb152
Save and load VkPipelineCache data if path is specified (#3546)
May 9, 2024
cc2d3b5
Revise memory monitor to align with Xcode metrics (#3131)
May 9, 2024
2ac7f2a
Add support for method level executorch backend config (#3266)
tarun292 May 9, 2024
6c56122
Break flag bc (#3128)
mcr229 May 9, 2024
8a63430
add per-channel tests for linear (#3551)
mcr229 May 9, 2024
0563aa7
Disable view_copy elimination for graph outputs (#3565)
mcremon-meta May 9, 2024
749f6ab
Rust: Update sysinfo crate (#3520)
May 9, 2024
c83af25
Add target_link_options_shared_lib to coremldelegate build (#3556)
swolchok May 10, 2024
8e2e2e2
explicitly import _export.exported_program. (#3574)
zhxchen17 May 10, 2024
1871ec1
min pip version (#3526)
lucylq May 10, 2024
b93b7ae
Change custom_skip_targets meaning for constant_prop_pass (#3491)
dulinriley May 10, 2024
60fa0d3
build and upload aar (#3381)
kirklandsign May 10, 2024
43bfcd2
Batch norm (#3569)
yipjustin May 10, 2024
60c94e8
gelu (#3573)
copyrightly May 11, 2024
629b112
Cadence - refactor quantizer and passes (#3539)
mcremon-meta May 13, 2024
9db0a69
Simplify gen_oplist_copy_from_core file (#3549)
mergennachin May 13, 2024
c229e7b
Update README.md with correct link (#3591)
mergennachin May 13, 2024
a88a78d
Separate mm and addmm into separate implementation files + cleanup (#…
SS-JIA May 13, 2024
e288039
Comment out memory planning log (#3581)
lucylq May 13, 2024
87d828a
don't partition max pool with ceil mode (#3578)
mcr229 May 13, 2024
4b5e434
Reuse the existing clone of the ios toolchain for Core ML. (#3575)
shoumikhin May 13, 2024
ea9647f
Add support for slice_scatter; enable index_put (#3399)
DenisVieriu97 May 13, 2024
ebe701e
Install mpmath in pip installation (#3593)
mergennachin May 13, 2024
c853b3c
Add base for sgd optimizer (#3496)
May 13, 2024
c69861d
Ease Core ML partitioner and quantizer imports. (#3564)
shoumikhin May 13, 2024
01ce72c
Fix includes in Core ML backend. (#3603)
shoumikhin May 14, 2024
b64182d
Fix memory.view insertion except for output nodes (#3602)
dulinriley May 14, 2024
e8a520c
Fix headers search paths for nlohmann json in Core ML. (#3607)
shoumikhin May 14, 2024
0e7955d
Implement `aten.linear.default` (#3594)
SS-JIA May 14, 2024
39f9c0f
temporary disable dim order ops in executorch/examples to mitigate os…
Gasoonjia May 14, 2024
aaa2f2e
Add a way to run c++ unittest on OSS (#3606)
kirklandsign May 15, 2024
fb24c9d
Fix headers search paths for nlohmann json in Core ML. (#3614)
shoumikhin May 15, 2024
99ec946
Add typed-arena to oss shim (#3576)
cjhopman May 15, 2024
c2bc810
Update .gitmodules
dijopaul May 15, 2024
82e159e
adding nnlib repo
dijopaul May 15, 2024
6dfda8d
Update .gitmodules
dijopaul May 16, 2024
8cc2bd8
Adding build support for nnlib
dijopaul May 16, 2024
2ec6046
Adding cmakelist changes to link nnlib
dijopaul May 17, 2024
2da285e
Adding CFLAG updates
dijopaul May 22, 2024
5ad8ab0
Adding quantizer and dequantizer from nnlib
dijopaul May 28, 2024
6b6b80b
Moving nnlib obj and lib files to cmake build dir
dijopaul May 29, 2024
460e821
Merge branch 'dijopaul_add-nnlib' of https://github.com/dijopaul/exec…
dijopaul May 29, 2024
3328646
Clean up quantize and dequantize
dijopaul May 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding cmakelist changes to link nnlib
  • Loading branch information
dijopaul committed May 17, 2024
commit 2ec6046ba502ffd1db96e4cc23949cb1647af3c9
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ target_link_libraries(executorch_no_prim_ops PRIVATE program_schema)
# Check if dl exists for this toolchain and only then link it.
find_library(DL_LIBRARY_EXISTS NAMES dl)
# Check if the library was found
if(DL_LIBRARY_EXISTS)
if(DL_LIBRARY_EXISTS AND NOT EXECUTORCH_BUILD_CADENCE)
target_link_libraries(executorch_no_prim_ops PRIVATE dl) # For dladdr()
endif()
target_include_directories(
Expand All @@ -443,7 +443,9 @@ target_link_options_shared_lib(executorch)
# Real integrations should supply their own YAML file that only lists the
# operators necessary for the models that will run.
#
if(NOT EXECUTORCH_BUILD_CADENCE)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/kernels/portable)
endif()

if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
# TODO: move all custom kernels to ${CMAKE_CURRENT_SOURCE_DIR}/kernels/custom
Expand Down Expand Up @@ -496,6 +498,8 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)

if(EXECUTORCH_BUILD_KERNELS_OPTIMIZED)
list(APPEND _executor_runner_libs optimized_native_cpu_ops_lib)
elseif(EXECUTORCH_BUILD_CADENCE)
list(APPEND _executor_runner_libs cadence_ops_lib)
else()
list(APPEND _executor_runner_libs portable_ops_lib)
endif()
Expand Down Expand Up @@ -566,6 +570,10 @@ if(EXECUTORCH_BUILD_COREML)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/apple/coreml)
endif()

if(EXECUTORCH_BUILD_CADENCE)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/cadence)
endif()

if(EXECUTORCH_BUILD_PYBIND)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third-party/pybind11)

Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/hifi/kernels/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ target_include_directories(
${NN_LIB_BASE_DIR}/xa_nnlib/algo/ndsp/hifi4/include/
${NXP_SDK_ROOT_DIR}/middleware/dsp/naturedsp/hifi4/include/
)

target_link_libraries(cadence_kernels PRIVATE xa_nnlib)
17 changes: 4 additions & 13 deletions backends/cadence/hifi/third-party/nnlib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
include(ExternalProject)

cmake_minimum_required(VERSION 3.10.0)
project(cadence_nnlib)

set(CMAKE_C_COMPILER xt-clang)
set(CMAKE_CXX_COMPILER xt-clang++)
set(CMAKE_LINKER xt-ld)


add_custom_target( nnlib_target ALL COMMAND make install_nnlib -f makefile -C ${EXECUTORCH_ROOT}/backends/cadence/hifi/third-party/nnlib/xa_nnlib/build -j )
add_custom_target( nnlib_target ALL COMMAND make install_nnlib -f makefile -C ${EXECUTORCH_ROOT}/backends/cadence/hifi/third-party/nnlib/nnlib-hifi4/xa_nnlib/build -j )

add_library(xa_nnlib STATIC IMPORTED GLOBAL)
add_dependencies(xa_nnlib nnlib_target)

set_property(
TARGET xa_nnlib
PROPERTY
IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/nnlib-hifi4/xa_nnlib/build/libxa_nnlib.a"
IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/nnlib-hifi4/xa_nnlib/build/xa_nnlib.a"
)

#set(_common_include_directories ${EXECUTORCH_ROOT}/..)
#install(
# TARGETS xa_nnlib
# DESTINATION lib
# DESTINATION ${_common_include_directories}
#)




Expand Down