Skip to content

Commit

Permalink
SHL: version 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangwm-pt committed Jul 19, 2023
1 parent 0dc53f5 commit f479eb6
Show file tree
Hide file tree
Showing 1,894 changed files with 16,161 additions and 309,850 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "module/dlpack"]
path = module/dlpack
url = git@github.com:dmlc/dlpack.git
url = https://github.com/dmlc/dlpack.git
148 changes: 36 additions & 112 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,23 @@ if (CONFIG_CUSTOM_SOURCE_SELECT)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
endif()

file (STRINGS "${CMAKE_CURRENT_BINARY_DIR}/../version" SHL_VERSION)
set(SHL_MAJOR_VERSION 2)
SET(so_symlink_target ${CMAKE_INSTALL_PREFIX}/lib/libshl.so)
SET(a_symlink_target ${CMAKE_INSTALL_PREFIX}/lib/libshl.a)

if(CONFIG_BUILD_X86_REF)
# build x86_ref so
# build x86_ref lib
if (NOT CONFIG_CUSTOM_SOURCE_SELECT)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/x86_ref.cmake)
endif()
include(cmake/rules.cmake)
LIST(APPEND X86_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS})
add_library(x86_static STATIC ${X86_LST})
SET_TARGET_PROPERTIES(x86_static PROPERTIES OUTPUT_NAME "shl_ref_x86")
set(X86_BUILD_FLAGS -DSHL_AVX_OPT -DSHL_BUILD_REF -DSHL_BUILD_GREF -fPIC -mavx -mfma -fopenmp)
target_compile_options(x86_static PRIVATE ${X86_BUILD_FLAGS})

install(TARGETS x86_static DESTINATION lib)
set(SHL_LIB_TARGET "ref_x86_target")
set(SHL_LIB_NAME shl_ref_x86)
LIST(APPEND SHL_BUILD_SRC_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS})
set(SHL_BUILD_C_FLAGS -DSHL_AVX_OPT -DSHL_BUILD_REF -DSHL_BUILD_GREF -fPIC -mavx -mfma -fopenmp)
include(cmake/target_build.cmake)
endif()

if(CONFIG_BUILD_RISCV_RVV)
Expand All @@ -40,40 +44,25 @@ if(CONFIG_BUILD_RISCV_RVV)
LIST(APPEND RVV_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS} ${THEAD_RVV_SRCS})
add_library(rvv_static STATIC ${RVV_LST})
SET_TARGET_PROPERTIES(rvv_static PROPERTIES OUTPUT_NAME "shl_rvv")
set(RVV_BUILD_FLAGS -march=rv64gcv_zfh_xtheadc_xtheadvdot -mabi=lp64d -DSHL_BUILD_RVV -DSHL_BUILD_REF -DSHL_BUILD_GREF)
set(RVV_BUILD_FLAGS -ffp-contract=off -march=rv64gcv_zfh_xtheadc_xtheadvdot -mabi=lp64d -DSHL_BUILD_RVV -DSHL_BUILD_REF -DSHL_BUILD_GREF)
target_compile_options(rvv_static PRIVATE ${RVV_BUILD_FLAGS})

install(TARGETS rvv_static DESTINATION lib)
endif()

if(CONFIG_BUILD_RISCV_C906_STATIC)
# build c906 a
if(CONFIG_BUILD_RISCV_C906)
# build c906 lib
if (NOT CONFIG_CUSTOM_SOURCE_SELECT)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/c906_static.cmake)
endif()
include(cmake/rules.cmake)
LIST(APPEND C906_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS} ${THEAD_RVV_SRCS} ${C906_SRCS})
add_library(c906_static STATIC ${C906_LST})
SET_TARGET_PROPERTIES(c906_static PROPERTIES OUTPUT_NAME "shl_c906")
set(C906_BUILD_FLAGS -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d -DSHL_BUILD_C906 -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RVV)
target_compile_options(c906_static PRIVATE ${C906_BUILD_FLAGS})
target_include_directories(c906_static PRIVATE module/dlpack/include/)

install(TARGETS c906_static DESTINATION lib)
endif()

if(CONFIG_BUILD_RISCV_C906_SHARE)
if (NOT CONFIG_CUSTOM_SOURCE_SELECT)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/c906_share.cmake)
endif()
include(cmake/rules.cmake)
LIST(APPEND C906_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS} ${THEAD_RVV_SRCS} ${C906_SRCS})
add_library(c906_share SHARED ${C906_LST})
SET_TARGET_PROPERTIES(c906_share PROPERTIES OUTPUT_NAME "shl_c906")
set(C906_BUILD_FLAGS -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d -DSHL_BUILD_C906 -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RVV)
target_compile_options(c906_share PRIVATE ${C906_BUILD_FLAGS})

install(TARGETS c906_share DESTINATION lib)
set(SHL_LIB_TARGET "c906_lib")
set(SHL_LIB_NAME shl_c906)
LIST(APPEND SHL_BUILD_SRC_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS} ${THEAD_RVV_SRCS} ${C906_SRCS})
set(SHL_BUILD_C_FLAGS -ffp-contract=off -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d -DSHL_BUILD_C906 -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RVV)
include(cmake/target_build.cmake)
target_include_directories(${SHL_LIB_TARGET} PRIVATE module/dlpack/include/)
endif()

if(CONFIG_BUILD_RISCV_RVM)
Expand All @@ -85,41 +74,39 @@ if(CONFIG_BUILD_RISCV_RVM)
LIST(APPEND RVM_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS} ${THEAD_RVV_SRCS} ${THEAD_MATRIX_SRCS} ${RVM_SRCS})
add_library(rvm_static STATIC ${RVM_LST})
SET_TARGET_PROPERTIES(rvm_static PROPERTIES OUTPUT_NAME "shl_rvm")
set(RVM_BUILD_FLAGS -march=rv64gcv_zfh_xtheadc_xtheadvdot_xtheadmatrix -mabi=lp64d -DSHL_BUILD_RVM -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RVV)
set(RVM_BUILD_FLAGS -ffp-contract=off -march=rv64gcv_zfh_xtheadc_xtheadvdot_xtheadmatrix -mabi=lp64d -DSHL_BUILD_RVM -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RVV)
target_compile_options(rvm_static PRIVATE ${RVM_BUILD_FLAGS})

install(TARGETS rvm_static DESTINATION lib)
endif()

if(CONFIG_BUILD_RISCV_C908)
# build c908 a
# build c908 lib
if (NOT CONFIG_CUSTOM_SOURCE_SELECT)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/c908.cmake)
endif()
include(cmake/rules.cmake)
LIST(APPEND C908_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS} ${THEAD_RVV_SRCS} ${C908_SRCS})
add_library(c908_static STATIC ${C908_LST})
SET_TARGET_PROPERTIES(c908_static PROPERTIES OUTPUT_NAME "shl_c908")
set(C908_BUILD_FLAGS -march=rv64gcv_zfh_xtheadc_xtheadvdot -mabi=lp64d -DSHL_BUILD_C908 -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RVV)
target_compile_options(c908_static PRIVATE ${C908_BUILD_FLAGS})

install(TARGETS c908_static DESTINATION lib)
set(SHL_LIB_TARGET "c908_lib")
set(SHL_LIB_NAME shl_c908)
LIST(APPEND SHL_BUILD_SRC_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS} ${THEAD_RVV_SRCS} ${C908_SRCS})
set(SHL_BUILD_C_FLAGS -ffp-contract=off -march=rv64gcv_zfh_xtheadc_xtheadvdot -mabi=lp64d -DSHL_BUILD_C908 -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RVV)
include(cmake/target_build.cmake)
endif()

if(CONFIG_BUILD_RISCV_C920)
# build c920 a
# build c920 lib
if (NOT CONFIG_CUSTOM_SOURCE_SELECT)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/c920.cmake)
endif()
include(cmake/rules.cmake)
LIST(APPEND C920_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS} ${THEAD_RVV_SRCS} ${C920_SRCS})
add_library(c920_static STATIC ${C920_LST})
SET_TARGET_PROPERTIES(c920_static PROPERTIES OUTPUT_NAME "shl_c920")
set(C920_BUILD_FLAGS -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d -DSHL_BUILD_C920 -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RVV)
target_compile_options(c920_static PRIVATE ${C920_BUILD_FLAGS})
target_include_directories(c920_static PRIVATE module/dlpack/include/)

install(TARGETS c920_static DESTINATION lib)

set(SHL_LIB_TARGET "c920_lib")
set(SHL_LIB_NAME shl_c920)
LIST(APPEND SHL_BUILD_SRC_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS} ${THEAD_RVV_SRCS} ${C920_SRCS})
set(SHL_BUILD_C_FLAGS -ffp-contract=off -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d -DSHL_BUILD_C920 -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RVV)
include(cmake/target_build.cmake)
target_include_directories(${SHL_LIB_TARGET} PRIVATE module/dlpack/include/)
endif()

if(CONFIG_BUILD_RISCV_ELF_C906)
Expand All @@ -131,7 +118,7 @@ if(CONFIG_BUILD_RISCV_ELF_C906)
LIST(APPEND C906_LST ${NN2_SRCS} ${REF_SRCS} ${GREF_SRCS} ${THEAD_RVV_SRCS} ${C906_SRCS})
add_library(c906_elf_static STATIC ${C906_LST})
SET_TARGET_PROPERTIES(c906_elf_static PROPERTIES OUTPUT_NAME "shl_c906_rtos")
set(C906_BUILD_FLAGS -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d -mcmodel=medany -DSHL_BUILD_C906 -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RTOS -DSHL_BUILD_RVV)
set(C906_BUILD_FLAGS -ffp-contract=off -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d -mcmodel=medany -DSHL_BUILD_C906 -DSHL_BUILD_REF -DSHL_BUILD_GREF -DSHL_BUILD_RTOS -DSHL_BUILD_RVV)
target_compile_options(c906_elf_static PRIVATE ${C906_BUILD_FLAGS})

install(TARGETS c906_elf_static DESTINATION lib)
Expand All @@ -153,69 +140,6 @@ if(CONFIG_BUILD_RISCV_ELF_E907)
install(TARGETS e907_elf_static DESTINATION lib)
endif()

if(CONFIG_BUILD_CSKY_C860)
# build c860 a
if (NOT CONFIG_CUSTOM_SOURCE_SELECT)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/c860.cmake)
endif()
include(cmake/rules.cmake)
LIST(APPEND C860_LST ${NN2_SRCS} ${REF_SRCS} ${C860_SRCS})
add_library(c860_static STATIC ${C860_LST})
SET_TARGET_PROPERTIES(c860_static PROPERTIES OUTPUT_NAME "shl_c860")
set(C860_BUILD_FLAGS -mcpu=c860v -DSHL_BUILD_REF)
target_compile_options(c860_static PRIVATE ${C860_BUILD_FLAGS})

install(TARGETS c860_static DESTINATION lib)
endif()

if(CONFIG_BUILD_CSKY_ELF_I805_REF)
# build i805 ref a
if (NOT CONFIG_CUSTOM_SOURCE_SELECT)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/i805_ref.cmake)
endif()
include(cmake/rules.cmake)
LIST(APPEND I805_REF_LST ${NN2_SRCS} ${REF_SRCS} ${I805_REF_SRCS})
add_library(i805_ref_static STATIC ${I805_REF_LST})
SET_TARGET_PROPERTIES(i805_ref_static PROPERTIES OUTPUT_NAME "shl_ref_i805")
set(I805_REF_BUILD_FLAGS -DSHL_BUILD_REF_I805 -DSHL_BUILD_RTOS -mcpu=i805)
target_compile_options(i805_ref_static PRIVATE ${I805_REF_BUILD_FLAGS})
target_include_directories(i805_ref_static PRIVATE source/i805_ref)

install(TARGETS i805_ref_static DESTINATION lib)
endif()

if(CONFIG_BUILD_CSKY_ELF_I805)
# build i805 a
if (NOT CONFIG_CUSTOM_SOURCE_SELECT)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/i805.cmake)
endif()
include(cmake/rules.cmake)
LIST(APPEND I805_LST ${NN2_SRCS} ${REF_SRCS} ${I805_SRCS})
add_library(i805_static STATIC ${I805_LST})
SET_TARGET_PROPERTIES(i805_static PROPERTIES OUTPUT_NAME "shl_i805")
set(I805_BUILD_FLAGS -DSHL_BUILD_I805 -DSHL_BUILD_RTOS -mcpu=ck805ef -mhard-float)
target_compile_options(i805_static PRIVATE ${I805_BUILD_FLAGS})
target_include_directories(i805_static PRIVATE source/i805_opt)

install(TARGETS i805_static DESTINATION lib)
endif()

if(CONFIG_BUILD_CSKY_ELF_E804)
# build e804 a
if (NOT CONFIG_CUSTOM_SOURCE_SELECT)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/e804.cmake)
endif()
include(cmake/rules.cmake)
LIST(APPEND E804_LST ${NN2_SRCS} ${REF_SRCS} ${E804_SRCS})
add_library(e804_static STATIC ${E804_LST})
SET_TARGET_PROPERTIES(e804_static PROPERTIES OUTPUT_NAME "shl_e804")
set(E804_BUILD_FLAGS -DSHL_BUILD_E804 -mcpu=e804d -DSHL_BUILD_RTOS -mno-required-attr-fpu-abi)
target_compile_options(e804_static PRIVATE ${E804_BUILD_FLAGS})
target_include_directories(e804_static PRIVATE source/e804_opt)

install(TARGETS e804_static DESTINATION lib)
endif()

# coverage options
OPTION(ENABLE_GCOV "Enable gcov" OFF)
if(ENABLE_GCOV)
Expand Down
32 changes: 0 additions & 32 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ config BUILD_RISCV_ELF_E907
help
Build E907 P extend static library

config BUILD_RISCV_ELF_ASP
bool "ASP elf"
help
Build ASP static library

endchoice

choice
Expand All @@ -133,33 +128,6 @@ config BUILD_CSKY_OPENVX
help
Build openvx library

config BUILD_CSKY_C860
bool "C860"
help
Build C860 SIMD static library

endchoice

choice
prompt "C-SKY elf platform"
depends on BUILD_CSKY_ELF
default BUILD_CSKY_ELF_I805

config BUILD_CSKY_ELF_I805_REF
bool "i805 ref"
help
Build i805 reference library

config BUILD_CSKY_ELF_I805
bool "i805 elf"
help
Build i805 library

config BUILD_CSKY_ELF_E804
bool "E804 share"
help
Build e804 library

endchoice

config CUSTOM_SOURCE_SELECT
Expand Down
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@ USE_CORE=8
INSTALL_DIR=../install_nn2/
all: nn2_ref_x86

nn2_c860:
mkdir -p c860_build; cd c860_build; cmake ../ -DCONFIG_BUILD_CSKY_C860=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}; make -j${USE_CORE}; make install; cd -

nn2_e907_elf:
mkdir -p e907_build; cd e907_build; cmake ../ -DCONFIG_BUILD_RISCV_ELF_E907=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}; make -j${USE_CORE}; make install; cd -
mkdir -p e907_build; cd e907_build; cmake ../ -DCONFIG_BUILD_RISCV_ELF_E907=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/e907/; make -j${USE_CORE}; make install; cd -

nn2_rvv:
mkdir -p rvv_build; cd rvv_build; cmake ../ -DCONFIG_BUILD_RISCV_RVV=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}; make -j${USE_CORE}; make install; cd -
mkdir -p rvv_build; cd rvv_build; cmake ../ -DCONFIG_BUILD_RISCV_RVV=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/rvv/; make -j${USE_CORE}; make install; cd -

nn2_c906:
mkdir -p c906_static_build; cd c906_static_build; cmake ../ -DCONFIG_BUILD_RISCV_C906_STATIC=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}; make -j${USE_CORE}; make install; cd -
mkdir -p c906_static_build; cd c906_static_build; cmake ../ -DCONFIG_BUILD_RISCV_C906=ON -DCONFIG_SHL_BUILD_STATIC=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/c906/; make -j${USE_CORE}; make install; cd -

nn2_c906_so:
mkdir -p c906_so_build; cd c906_so_build; cmake ../ -DCONFIG_BUILD_RISCV_C906_SHARE=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}; make -j${USE_CORE}; make install; cd -
mkdir -p c906_so_build; cd c906_so_build; cmake ../ -DCONFIG_BUILD_RISCV_C906=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/c906/; make -j${USE_CORE}; make install; cd -

nn2_c906_elf:
mkdir -p c906_elf_build; cd c906_elf_build; cmake ../ -DCONFIG_BUILD_RISCV_ELF_C906=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}; make -j${USE_CORE}; make install; cd -
mkdir -p c906_elf_build; cd c906_elf_build; cmake ../ -DCONFIG_BUILD_RISCV_ELF_C906=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/c906/; make -j${USE_CORE}; make install; cd -

nn2_rvm:
mkdir -p rvm_build; cd rvm_build; cmake ../ -DCONFIG_BUILD_RISCV_RVM=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}; make -j${USE_CORE}; make install; cd -
mkdir -p rvm_build; cd rvm_build; cmake ../ -DCONFIG_BUILD_RISCV_RVM=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/rvm/; make -j${USE_CORE}; make install; cd -

nn2_c908:
mkdir -p c908_build; cd c908_build; cmake ../ -DCONFIG_BUILD_RISCV_C908=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}; make -j${USE_CORE}; make install; cd -
mkdir -p c908_build; cd c908_build; cmake ../ -DCONFIG_BUILD_RISCV_C908=ON -DCONFIG_SHL_BUILD_STATIC=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/c908/; make -j${USE_CORE}; make install; cd -

nn2_c920:
mkdir -p c920_build; cd c920_build; cmake ../ -DCONFIG_BUILD_RISCV_C920=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}; make -j${USE_CORE}; make install; cd -
mkdir -p c920_build; cd c920_build; cmake ../ -DCONFIG_BUILD_RISCV_C920=ON -DCONFIG_SHL_BUILD_STATIC=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/c920/; make -j${USE_CORE}; make install; cd -

nn2_c920_so:
mkdir -p c920_build_so; cd c920_build_so; cmake ../ -DCONFIG_BUILD_RISCV_C920=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/c920/; make -j${USE_CORE}; make install; cd -

nn2_ref_x86:
mkdir -p x86_ref_build; cd x86_ref_build; cmake ../ -DCONFIG_BUILD_X86_REF=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}; make -j${USE_CORE}; make install; cd -
mkdir -p x86_ref_build; cd x86_ref_build; cmake ../ -DCONFIG_BUILD_X86_REF=ON -DCONFIG_SHL_BUILD_STATIC=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/x86/; make -j${USE_CORE}; make install; cd -

menuconfig:
env KCONFIG_BASE= python3 script/kconfig/menuconfig.py Kconfig
Expand All @@ -45,4 +45,4 @@ clint:
./script/git-clang-format.sh origin/master

clean:
rm lib/* *_build install_nn2 -rf
rm lib/* *_build *_build_so install_nn2 -rf
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export PATH=${PWD}/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1/bin:$PATH
Download source code

```
git clone -b 2.2 https://github.com/T-head-Semi/csi-nn2.git
git clone -b 2.4 https://github.com/T-head-Semi/csi-nn2.git
cd csi-nn2
git submodule update --init --recursive
```
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export PATH=${PWD}/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1/bin:$PATH
下载源码

```
git clone -b 2.2 https://github.com/T-head-Semi/csi-nn2.git
git clone -b 2.4 https://github.com/T-head-Semi/csi-nn2.git
cd csi-nn2
git submodule update --init --recursive
```
Expand Down
Loading

0 comments on commit f479eb6

Please sign in to comment.