Skip to content

Commit f87f57c

Browse files
committed
Merge pull request #22 from DCM-UPB/new_nnvmc
Things that came up when setting up new NNVMC repo
2 parents b32d090 + 1848db8 commit f87f57c

File tree

8 files changed

+41
-11
lines changed

8 files changed

+41
-11
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ m4/ltoptions.m4
113113
m4/ltsugar.m4
114114
m4/ltversion.m4
115115
m4/lt~obsolete.m4
116-
!ax_cxx_compile_stdcxx_11.m4
117116

118117
# -- project specific ignores --
118+
config.sh
119119
exe
120120
exe.prof*
121121
vgcore*
@@ -131,12 +131,10 @@ vgcore*
131131
*.trs
132132

133133
test/*.txt
134-
test/ut*/run_single_unittest.sh
135134
test/ut*/*.txt
136135

137136
benchmark/*/benchmark_*.out
138137

139-
examples/*/a.out
140138
examples/*/*.txt
141139
examples/*/*/*.txt
142140

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,25 @@ However, in principle any system with C++11 supporting compiler should work, at
2424

2525
# Build the library
2626

27-
Make sure you have a reasonably recent development version (>=2.3?) of the GSL library installed on your system. Furthermore, we rely on the Autotools build system and libtool.
27+
Make sure you have a reasonably recent development version (>=2.3?) of the GSL library on your system. Furthermore, we rely on the Autotools build system and libtool.
2828
Optionally, if you have valgrind installed on your system, it will be used to check for memory errors when running unittests.
2929

30-
If you have the prerequisites on your system, you have to setup the build environment by using the following script in the top level directory:
30+
If you have the GSL librariy in non-standard paths or want to use custom compiler flags, copy a little script:
31+
32+
`cp script/config_template.sh config.sh`
33+
34+
Now edit `config.sh` to your needs and before proceeding run:
35+
36+
`source config.sh`
37+
38+
If you have the prerequisites, you may setup the build environment by using the following script in the top level directory:
3139

3240
`./autogen.sh`
3341

3442
Now you want to configure the build process for your platform by invoking:
3543

3644
`./configure`
3745

38-
If you run into trouble here, `./configure --help` could be a start.
39-
4046
Finally, you are ready to compile all the code files in our repository together, by:
4147

4248
`make` or `make -jN`

configure.ac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.69])
5-
AC_INIT([NNVMC-FFNN], [0.1], [[email protected]])
5+
AC_INIT([FFNN], [0.1], [[email protected]])
66
: ${CXXFLAGS=""} # delete default optimization user flags
77
AC_CONFIG_HEADERS([config.h])
88
AC_CONFIG_MACRO_DIRS([m4])
@@ -142,7 +142,6 @@ examples/ex2/Makefile
142142
examples/Makefile
143143
examples/ex8/Makefile
144144
examples/ex3/Makefile
145-
doc/Makefile
146145
Makefile
147146
benchmark/bench_actfs_derivs/Makefile
148147
benchmark/Makefile

doc/Makefile.am

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/user_manual.pdf

-107 Bytes
Binary file not shown.

include/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include-links:
22
rm -f *.hpp
3-
ln -sf ../src/*/*.hpp ./
3+
ln -s ../src/*/*.hpp ./
4+
45
.PHONY: include-links

include/ffnn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./

script/config_template.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
# Config script for custom library and header paths or C++ compiler choice
4+
#
5+
# If you want to edit this template script/config_template.sh,
6+
# copy it over to something like config.sh and edit the gitignored copy.
7+
#
8+
9+
# C++ compiler
10+
export CXX="g++"
11+
12+
# C++ flags
13+
export CXXFLAGS=""
14+
15+
# GSL Library
16+
GSL_L="-L/usr/local/lib"
17+
GSL_I="-I/usr/local/include"
18+
19+
20+
# ! DO NOT EDIT THE FOLLOWING !
21+
22+
# linker flags
23+
export LDFLAGS="${GSL_L}"
24+
25+
# pre-processor flags
26+
export CPPFLAGS="${GSL_I}"

0 commit comments

Comments
 (0)