-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Differential Revision: D61944289 Pull Request resolved: #4958
- Loading branch information
1 parent
1774638
commit 1f59acc
Showing
34 changed files
with
462 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
|
||
cmake_minimum_required(VERSION 3.10.0) | ||
project(cadence_nnlib) | ||
|
||
|
||
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 | ||
OBJDIR=${CMAKE_CURRENT_BINARY_DIR}/obj | ||
LIBDIR=${CMAKE_CURRENT_BINARY_DIR}/lib | ||
-j8 ) | ||
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 | ||
OBJDIR=${CMAKE_CURRENT_BINARY_DIR}/obj | ||
LIBDIR=${CMAKE_CURRENT_BINARY_DIR}/lib -j8 | ||
) | ||
|
||
add_library(xa_nnlib STATIC IMPORTED GLOBAL) | ||
add_dependencies(xa_nnlib nnlib_target) | ||
|
||
set_property( | ||
TARGET xa_nnlib | ||
PROPERTY | ||
IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/lib/xa_nnlib.a" | ||
TARGET xa_nnlib PROPERTY IMPORTED_LOCATION | ||
"${CMAKE_CURRENT_BINARY_DIR}/lib/xa_nnlib.a" | ||
) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.