-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,740 changed files
with
202,072 additions
and
24,795 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Summary | ||
|
||
* [Introduction](README.md) | ||
|
||
|
||
* [Architechture](docs/ARCHITECTURE.md) | ||
|
||
|
||
* [Operators](docs/OPERATORS.md) | ||
|
||
|
||
* [Install](docs/INSTALL.md) | ||
|
||
|
||
* [Basic Inference Usage](docs/USER_HANDBOOK.md#basic-usage) | ||
|
||
|
||
* [Basic On-device Training Usage](training/TUTORIAL.md) | ||
|
||
|
||
* [Advanced Features](docs/USER_HANDBOOK.md#advanced-features) | ||
|
||
|
||
* [Developer Customization](docs/DEVELOPER.md) | ||
|
||
|
||
* [How to Reduce GPU Initial Time](docs/REDUCE_GPU_PREPARE_TIME.md) | ||
|
||
|
||
* [Kit Example](docs/KIT.md) | ||
|
||
|
||
* [Changelog](docs/CHANGELOG.md) | ||
|
||
|
||
* [FAQ](docs/FAQ.md) | ||
|
||
|
||
* [Feedback](docs/FEEDBACK.md) | ||
|
||
|
||
* [Appendix](docs/IOS_USAGE.md) |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"plugins": [ | ||
"github", | ||
"back-to-top-button", | ||
"page-toc-button", | ||
"insert-logo" | ||
], | ||
|
||
"pluginsConfig": { | ||
"github": { | ||
"url": "https://github.com/huawei-noah/bolt" | ||
}, | ||
"page-toc-button": { | ||
"maxTocDepth": 1, | ||
"minTocSize": 2 | ||
}, | ||
"insert-logo":{ | ||
"url":"../docs/images/LOGO.PNG", | ||
"style":"background:none;max-height:100px" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
find_path(SecureC_INCLUDE_DIR NAMES securec.h HINTS $ENV{SecureC_ROOT}/include ${SecureC_ROOT}/include) | ||
|
||
if (USE_DYNAMIC_LIBRARY) | ||
find_library(SecureC_LIBRARY NAMES securec HINTS $ENV{SecureC_ROOT}/lib ${SecureC_ROOT}/lib) | ||
set(SecureC_SHARED_LIBRARY ${SecureC_LIBRARY}) | ||
else (USE_DYNAMIC_LIBRARY) | ||
find_library(SecureC_LIBRARY NAMES ${CMAKE_STATIC_LIBRARY_PREFIX}securec${CMAKE_STATIC_LIBRARY_SUFFIX} HINTS $ENV{SecureC_ROOT}/lib ${SecureC_ROOT}/lib) | ||
find_library(SecureC_SHARED_LIBRARY NAMES securec HINTS $ENV{SecureC_ROOT}/lib ${SecureC_ROOT}/lib) | ||
endif (USE_DYNAMIC_LIBRARY) | ||
|
||
if (SecureC_INCLUDE_DIR AND SecureC_LIBRARY) | ||
set(SecureC_FOUND true) | ||
endif (SecureC_INCLUDE_DIR AND SecureC_LIBRARY) | ||
|
||
if (SecureC_FOUND) | ||
include_directories(${SecureC_INCLUDE_DIR}) | ||
message(STATUS "Found securec.h: ${SecureC_INCLUDE_DIR}") | ||
message(STATUS "Found securec: ${SecureC_LIBRARY}") | ||
else (SecureC_FOUND) | ||
message(FATAL_ERROR " | ||
FATAL: can not find securec library in <SecureC_ROOT>/[include|lib] directory, | ||
please set shell environment variable SecureC_ROOT. | ||
") | ||
endif (SecureC_FOUND) |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
set(CPUINFO "null") | ||
file(GLOB CPUINFO_FILE /proc/cpuinfo) | ||
if (CPUINFO_FILE) | ||
exec_program(cat ARGS ${CPUINFO_FILE} OUTPUT_VARIABLE CPUINFO) | ||
else () | ||
message(STATUS "can not find /proc/cpuinfo") | ||
endif () | ||
|
||
macro(check_cpuinfo feature) | ||
string(REGEX REPLACE "^.*(${feature}).*$" "\\1" _FEATURE_THERE ${CPUINFO}) | ||
string(COMPARE EQUAL "${feature}" "${_FEATURE_THERE}" cpuinfo_${feature}) | ||
endmacro() | ||
|
||
check_cpuinfo(avx2) | ||
check_cpuinfo(avx512) | ||
check_cpuinfo(avx512_vnni) |
Oops, something went wrong.