summaryrefslogtreecommitdiff
path: root/readme
blob: 9b008fb149a2e8092b1a5861c42a8e98aac66834 (plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Version5 readme

# To activate hdf5 and Python3 bindings in the make utility, you need to define
# environment variables on a UNIX system. Add the information about the HDF5_INC,
# HDF5_API and FORTRANPATH environment variables in the .profile or .bashrc script.
# These lines are OS-dependent.

# Availability of python2 or python3 utility is a prerequisite requirement for using
# Makefiles. Availability of python3 utility and definition of the FORTRANPATH
# environment variable are prerequisite requirements for using the PyGan bindings.

#
# On the recherche network at Polytechnique Montreal:
# Support for HDF5
export HDF5_INC="/usr/local/hdf5/include" # HDF5 include directory
if [ $MachineExtension = "-aix" ]
then
    export HDF5_INC="/usr/include" # HDF5 include directory
fi
export HDF5_API="$HDF5_INC/../lib" # HDF5 C API
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HDF5_API"
# Support for Python3 API
export FORTRANPATH="/usr/lib/gcc/x86_64-redhat-linux/4.8.5/" # contains libgfortran.so

#
# On the RedHat 8 operating system:
# Support for HDF5
export HDF5_INC="/usr/include" # HDF5 include directory
export HDF5_API="$HDF5_INC/../lib64" # HDF5 C API
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HDF5_API"
# Support for Python3 API
export FORTRANPATH="/usr/lib/gcc/x86_64-redhat-linux/8/" # contains libgfortran.so

#
# On the Ubuntu/arm64 operating system:
# Support for HDF5
export HDF5_INC="/usr/include/hdf5/serial/" # HDF5 include directory
export HDF5_API="/usr/lib/aarch64-linux-gnu/hdf5/serial" # HDF5 C API
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HDF5_API"
# Support for Python3 API
export FORTRANPATH="/usr/lib/gcc/aarch64-linux-gnu/9/" # contains libgfortran.so

#
# On the Scibian 10 operating system:
# Support for HDF5
export HDF5_INC="/usr/include/hdf5/serial" # HDF5 include directory
export HDF5_API="/usr/lib/x86_64-linux-gnu/hdf5/serial" # HDF5 C API
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HDF5_API"
# Support for Python3 API
export FORTRANPATH="/usr/lib/gcc/x86_64-linux-gnu/8/" # contains libgfortran.so

#
# Instructions for configuring Version5 of Dragon/Donjon on UNIX systems
#
# To configure Version5 components with custom compilers using makefiles:
cd ~/Version5_evn/Donjon/
make
make clean
#
# To configure Version5 components with Intel compilers (icc and ifort) using makefiles:
cd ~/Version5_evn/Donjon/
make intel=1
make clean
#
# To configure Version5 components with Nvidia compilers (nvc and nvfortran) using
# makefiles:
cd ~/Version5_evn/Donjon/
make nvidia=1
make clean
#
# To configure Version5 components with LLVM compilers (clang and flang) using makefiles:
cd ~/Version5_evn/Donjon/
make llvm=1
make clean
#
# To build an HDF5-enabled version, simply write
make hdf5=1
#
# To build an OpenMP-enabled version, simply write
make openmp=1
#
# To execute the non-regression tests with custom compilers:
make tests
#
# To execute the non-regression tests with Intel compilers:
make tests intel=1
#
# To execute the non-regression tests with Nvidia compilers:
make tests nvidia=1
#
# To execute the non-regression tests with LLVM compilers:
make tests llvm=1
#
# To execute the non-regression tests, including those requiring hdf5 support:
make tests hdf5=1
#
# On AIX and Solaris OS, you must use GNU Make:
cd ~/Version5_evn/Donjon/
gmake
gmake clean
gmake tests

# To execute Trivac with custom compiler:
cd ~/Version5_evn/Trivac/
./rtrivac iaea3d.x2m

# In case of bug:
./rtrivac -w iaea3d.x2m

# To execute Dragon with custom compiler:
cd ~/Version5_evn/Dragon/
./rdragon iaea2d.x2m

# In case of bug:
./rdragon -w iaea2d.x2m

# To execute Dragon with Intel compiler:
cd ~/Version5_evn/Dragon/
./rdragon -c intel iaea2d.x2m

# To execute Dragon with Nvidia compiler:
cd ~/Version5_evn/Dragon/
./rdragon -c nvidia iaea2d.x2m

# To execute Dragon with Nvidia compiler and 50 OpenMP threads:
cd ~/Version5_evn/Dragon/
./rdragon -c nvidia -p 50 iaea2d.x2m

# To execute Donjon with custom compiler:
cd ~/Version5_evn/Donjon/
./rdonjon Candu6.x2m

# To configure the doc
cd ~/Version5_evn/doc/IGE335
./install

# To read the doc:
gv -antialias ~/Version5_evn/doc/IGE335/IGE335.pdf