-
Notifications
You must be signed in to change notification settings - Fork 3
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
9 changed files
with
68 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
set(PROJECT_NAME "mnist") | ||
project(mnist LANGUAGES C) | ||
|
||
set(PROJECT_INCLUDES | ||
inc | ||
) | ||
add_executable(mnist main.c) | ||
|
||
set(PROJECT_SOURCES | ||
main.c | ||
) | ||
target_include_directories(mnist PUBLIC ./) | ||
target_include_directories(mnist PUBLIC ../utility) | ||
|
||
project(${PROJECT_NAME}) | ||
|
||
target_compile_features(mnist INTERFACE c_std_11) | ||
|
||
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES}) | ||
target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_INCLUDES}) | ||
|
||
add_subdirectory(../../nn ./build/nn) | ||
target_link_libraries(${PROJECT_NAME} PUBLIC nn) | ||
if (X86) | ||
message(STATUS "mnist: Building for x86") | ||
target_link_libraries(mnist PUBLIC target-x86) | ||
elseif (RISCV) | ||
message(STATUS "mnist: Building for RISC-V") | ||
target_link_libraries(mnist PUBLIC target-riscv) | ||
set_target_properties(mnist PROPERTIES SUFFIX ".elf") | ||
endif () | ||
|
||
target_compile_options(mnist PRIVATE -O3 -Wall -Wextra) | ||
|
||
target_link_libraries(mnist PUBLIC nn) | ||
target_link_libraries(mnist PUBLIC m) |
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,23 +1,25 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
set(PROJECT_NAME "ppo") | ||
project(mlp-ppo LANGUAGES C) | ||
|
||
set(PROJECT_INCLUDES | ||
inc | ||
) | ||
add_executable(mlp-ppo main.c) | ||
|
||
set(PROJECT_SOURCES | ||
main.c | ||
) | ||
target_include_directories(mlp-ppo PUBLIC ./) | ||
target_include_directories(mlp-ppo PUBLIC ../utility) | ||
|
||
project(${PROJECT_NAME}) | ||
|
||
target_compile_features(mlp-ppo INTERFACE c_std_11) | ||
|
||
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES}) | ||
target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_INCLUDES}) | ||
if (X86) | ||
message(STATUS "mlp-ppo: Building for x86") | ||
target_link_libraries(mlp-ppo PUBLIC target-x86) | ||
elseif (RISCV) | ||
message(STATUS "mlp-ppo: Building for RISC-V") | ||
target_link_libraries(mlp-ppo PUBLIC target-riscv) | ||
set_target_properties(mlp-ppo PROPERTIES SUFFIX ".elf") | ||
endif () | ||
|
||
add_subdirectory(../../nn ./build/nn) | ||
target_link_libraries(${PROJECT_NAME} PUBLIC nn) | ||
|
||
target_link_libraries(${PROJECT_NAME} PUBLIC m) | ||
target_compile_options(mlp-ppo PRIVATE -O3 -Wall -Wextra) | ||
|
||
target_link_libraries(mlp-ppo PUBLIC nn) | ||
target_link_libraries(mlp-ppo PUBLIC m) |
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,22 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
set(PROJECT_NAME "simple") | ||
project(simple LANGUAGES C) | ||
|
||
set(PROJECT_INCLUDES | ||
inc | ||
) | ||
add_executable(simple main.c) | ||
|
||
set(PROJECT_SOURCES | ||
main.c | ||
) | ||
target_include_directories(simple PUBLIC ./) | ||
|
||
project(${PROJECT_NAME}) | ||
|
||
target_compile_features(simple INTERFACE c_std_11) | ||
|
||
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES}) | ||
target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_INCLUDES}) | ||
|
||
add_subdirectory(../../nn ./build/nn) | ||
target_link_libraries(${PROJECT_NAME} PUBLIC nn) | ||
if (X86) | ||
message(STATUS "simple: Building for x86") | ||
target_link_libraries(simple PUBLIC target-x86) | ||
elseif (RISCV) | ||
message(STATUS "simple: Building for RISC-V") | ||
target_link_libraries(simple PUBLIC target-riscv) | ||
set_target_properties(simple PROPERTIES SUFFIX ".elf") | ||
endif () | ||
|
||
target_compile_options(simple PRIVATE -O3 -Wall -Wextra) | ||
|
||
target_link_libraries(simple PUBLIC nn) | ||
target_link_libraries(simple PUBLIC m) |
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