-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix compiler warning * Add cmake support * Add const modifier to <acc>_dev_t
- Loading branch information
Showing
13 changed files
with
107 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
cmake_minimum_required(VERSION 3.18) | ||
|
||
project(pulp-nnx | ||
VERSION 0.3.0 | ||
DESCRIPTION "Kernel library for PULP-based NN accelerators." | ||
LANGUAGES C) | ||
|
||
add_library(pulp-nnx STATIC) | ||
|
||
target_sources(pulp-nnx PRIVATE util/pulp_nnx_util.c util/hwpe.c) | ||
target_include_directories(pulp-nnx PUBLIC inc util) | ||
|
||
option(USE_NE16 "Use the NE16 accelerator.") | ||
option(USE_NEUREKA "Use the N-EUREKA accelerator.") | ||
|
||
if (NOT ${USE_NE16} AND NOT ${USE_NEUREKA}) | ||
message(FATAL_ERROR "[PULP-NNX] No accelerator in use. Please set an appropriate USE_<acc> option.") | ||
endif() | ||
|
||
if (${USE_NE16}) | ||
message(STATUS "[PULP-NNX] Using the NE16 accelerator.") | ||
target_sources(pulp-nnx | ||
PRIVATE | ||
ne16/bsp/ne16_pulp_bsp.c | ||
ne16/hal/ne16.c | ||
ne16/hal/ne16_task.c | ||
src/pulp_nnx_ne16.c | ||
) | ||
target_include_directories(pulp-nnx | ||
PUBLIC | ||
ne16/bsp | ||
ne16/hal | ||
ne16/gvsoc | ||
) | ||
endif() | ||
|
||
if (${USE_NEUREKA}) | ||
message(STATUS "[PULP-NNX] Using the N-EUREKA accelerator.") | ||
target_sources(pulp-nnx | ||
PRIVATE | ||
neureka/bsp/neureka_siracusa_bsp.c | ||
neureka/hal/neureka.c | ||
neureka/hal/neureka_task.c | ||
src/pulp_nnx_neureka.c | ||
) | ||
target_include_directories(pulp-nnx | ||
PUBLIC | ||
neureka/bsp | ||
neureka/hal | ||
neureka/gvsoc | ||
) | ||
endif() |
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
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
Oops, something went wrong.