Skip to content

Commit b6762b3

Browse files
committed
Merge remote-tracking branch 'public/mli_dev' into MLI2_0_doc_updates
2 parents 816fe39 + 632c708 commit b6762b3

File tree

314 files changed

+54825
-66171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+54825
-66171
lines changed

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@
66
# the LICENSE file in the root directory of this source tree.
77
#
88

9-
cmake_minimum_required(VERSION 3.12)
9+
cmake_minimum_required(VERSION 3.16.3)
10+
11+
# set global flags for the compiler; only set EXT_CFLAGS
12+
# if there are no other methods available.
13+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXT_CFLAGS}")
14+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXT_CFLAGS}")
1015

1116
project(mli)
1217

18+
set(MLI_LIB_HOME_DIR ${PROJECT_SOURCE_DIR})
19+
1320
add_subdirectory(lib)
1421

22+
add_subdirectory(user_tests)
23+
1524
if (GEN_EXAMPLES)
1625
add_subdirectory(examples EXCLUDE_FROM_ALL)
1726
endif()

CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# All files need to be reviewed by JaccovG or ipozdnov or dzakhar
2-
* @JaccovG @ipozdnov @dzakhar
1+
# All files need to be reviewed by JaccovG or jcampbel or dzakhar
2+
* @JaccovG @jcampbel @dzakhar

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ embARC Machine Learning Inference Library
22
==================================================
33

44
This repository contains source code of embARC Machine Learning Inference Library (embARC MLI Library),
5-
documentation and examples. Read the documentation at [embarc.org](https://embarc.org/embarc_mli).
5+
documentation and examples. Read the documentation at [github.io](https://foss-for-synopsys-dwc-arc-processors.github.io/embarc_mli/doc/build/html/index.html).
66

77
## Release notes
88
----------------
@@ -90,11 +90,11 @@ Please be aware that the list of specializations is not guaranteed to be backwar
9090
---------------
9191

9292
***Q: Can I use ARC GNU tools to build embARC MLI library?***
93-
A: No you cannot. embARC MLI Library must be built by MetaWare Development Tools only. Read the documentation at [embarc.org]( https://embarc.org/embarc_mli/doc/build/html/getting_started/getting_started.html#build-library) for details
93+
A: No you cannot. embARC MLI Library must be built by MetaWare Development Tools only. Read the documentation at [github.io](https://foss-for-synopsys-dwc-arc-processors.github.io/embarc_mli/doc/build/html/getting_started/getting_started.html) for details
9494

9595
***Q: Can I use MetaWare Development Tools Lite to pre-build embARC MLI library and ARC GNU to build example application?***
9696
A: No you cannot. embARC MLI Library must be built by full version of MetaWare Development Tools. Binaries built with MWDT Lite are not compatible with ARC GNU Tools and full MetaWare Development Tools. Read the MWDT Lite documentation for details.
9797

9898
***Q: I can not build and run example application for my Synopsys board (EMSK, IoTDK, etc), what I shall do?***
99-
A: If you build for Synopsys boards refer to documentation [embarc.org](https://embarc.org/platforms.html) as a good starting point.
99+
A: If you build for Synopsys boards refer to documentation [embarc.org](https://embarc.org/projects/development-systems/) as a good starting point.
100100
You should also note that example applications support different configurations for pre trained models and thus memory requirements, not all configurations can be built and run on Synopsys boards due to memory limitations and HW capabilities, read example application readme for details. embARC MLI Library must be also pre built specifically for your board by MetaWare Development Tools. Please note that makefiles provided with examples are configured for IoTDK only if GNU tools are used.

build/rules.mk

Lines changed: 0 additions & 312 deletions
This file was deleted.

cmake/settings.cmake

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if (ARC)
7474
-Hon=Long_enums
7575
"SHELL: -mllvm -gen-lpcc=false"
7676
)
77-
if (EXISTS ${BUILDLIB_DIR})
77+
if (DEFINED BUILDLIB_DIR)
7878
list(APPEND MLI_PLATFORM_LINK_OPTIONS
7979
-Hlib=${BUILDLIB_DIR}
8080
)
@@ -89,15 +89,10 @@ if (ARC)
8989
-Hfxapi
9090
)
9191
endif()
92-
elseif ((NOT ARC) AND (NOT MSVC))
93-
list(APPEND MLI_PLATFORM_FLAGS
94-
-m32
95-
)
92+
93+
set(CMAKE_EXECUTABLE_SUFFIX .elf)
9694
endif()
9795

9896
list(APPEND MLI_PLATFORM_COMPILE_OPTIONS ${MLI_PLATFORM_FLAGS})
9997
list(APPEND MLI_PLATFORM_LINK_OPTIONS ${MLI_PLATFORM_FLAGS})
10098

101-
if (ARC)
102-
set(CMAKE_EXECUTABLE_SUFFIX .elf)
103-
endif()

0 commit comments

Comments
 (0)