-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRUN
executable file
·27 lines (21 loc) · 844 Bytes
/
RUN
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
#!/bin/bash
#####################################################################
# script that handles both compilation and the train & test procedure
# might have to be be adjusted
#####################################################################
echo "Adding some modules"
module add cmake-3.18.3
module add gcc-10.2 llvm-11.0.0
echo "#################"
echo " COMPILING "
echo "#################"
# g++ -std=c++17 -O3 src/main.cpp include/main.hpp include/lingebra.hpp include/neural_network.hpp include/activation_fns.hpp include/layer.hpp include/input_loading.hpp main
# remove all possible relic files before running
rm CMakeCache.txt Makefile main actualTestPredictions trainPredictions
# compile using CMakeLists and make
cmake .
make
echo "#################"
echo " RUNNING "
echo "#################"
./main