-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
78 lines (73 loc) · 2.75 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
cmake_minimum_required(VERSION 3.19)
project(cortesian)
set(Eigen3_DIR="/Volumes/Toshiba/GitBuilds/eigen")
set(CMAKE_CXX_STANDARD 17)
find_package(Eigen3 3.3 REQUIRED NO_MODULE)
find_package(effolkronium_random REQUIRED)
find_package(Catch2 REQUIRED)
find_package(OpenMP)
if (OPENMP_FOUND)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS
"${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
endif ()
add_subdirectory(libs/csv-parser)
add_executable(
cortesian
demo/mnist_demo.cpp
include/activations/Activation.h
src/activations/LeakyRelu.cpp
include/activations/LeakyRelu.h
src/layers/Dense.cpp
include/layers/Dense.h
include/optimizers/Optimizer.h
src/optimizer/StochasticGradientDescent.cpp
include/optimizers/StochasticGradientDescent.h
src/Network.cpp
include/Network.h
include/loss_evals/LossFunction.h
include/loss_evals/EvaluationFunction.h
include/initializers/ParameterInitializer.h
include/NetworkBuilder.h
src/util/BackPropStatistics.cpp
include/utils/BackPropStatistics.h
src/util/BlockTimer.cpp
include/utils/BlockTimer.h
src/initializers/EigenInitializer.cpp
include/initializers/EigenInitializer.h
src/loss_evals/ArgMax.cpp
include/loss_evals/ArgMax.h
src/loss_evals/MeanSquared.cpp
include/loss_evals/MeanSquared.h
include/utils/MathUtils.h
src/util/DataSplit.cpp
include/utils/DataSplit.h
src/activations/Linear.cpp
include/activations/Linear.h
src/loss_evals/MeanAbsolute.cpp
include/loss_evals/MeanAbsolute.h
src/activations/Sigmoid.cpp
include/activations/Sigmoid.h
src/activations/Tanh.cpp
include/activations/Tanh.h
src/activations/Softmax.cpp
include/activations/Softmax.h
include/utils/common.h
include/utils/DataReader.h
src/loss_evals/CategoricalCrossEntropy.cpp
include/loss_evals/CategoricalCrossEntropy.h
src/optimizer/Adam.cpp
include/optimizers/Adam.h
include/layers/Layer.h
include/layers/Conv2d.h
src/layers/Conv2d.cpp
src/layers/Conv1d.cpp
include/layers/Conv1d.h
include/DefaultNetworkFactory.h
include/utils/MetaBase.h demo/tiny_demo.cpp src/loss_evals/LogLoss.cpp include/loss_evals/LogLoss.h)
target_link_libraries(cortesian effolkronium_random Eigen3::Eigen csv
OpenMP::OpenMP_CXX)
add_executable(cortesian_tests tests/test.cpp)
target_link_libraries(cortesian_tests PRIVATE Catch2::Catch2WithMain
OpenMP::OpenMP_CXX)