forked from avr-aics-riken/LPTlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
98 lines (67 loc) · 2.43 KB
/
INSTALL
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
/*
* LPTlib
* Lagrangian Particle Tracking library
*
* Copyright (c) 2012-2014 Advanced Institute for Computational Science, RIKEN.
* All rights reserved.
*
*/
Prerequisite
============
- MPI library
- Performance Monitor library is required if a timing report option is selected.
How to compile
==============
1. with configure
$ ./configure [options]
$ make
# make install
Configure options:
--prefix=INSTALL_DIR
Specify a directory to be installed. The default directory is /usr/local/LPTlib.
--with-mpich=MPICH_DIR
If you will use a MPICH library, specify the directory that MPICH library is installed.
Either --with-mpich of --with-ompi option will be required except. If the wrapper compiler,
e.g., mpic++ or mpicxx is used to compile, both options can be eliminated.
--with-ompi=OPENMPI_DIR
If you will use an OpenMPI library, specify the directory path of OpenMPI.
--with-comp=(INTEL|FJ)
If Intel compiler is used, choose INTEL, and if Fujitsu compiler, specify FJ.
--with-pm=PMLIB_DIR
Specify the directory path that Performance Monitor library is installed. This option is
required if only you need a performance report.
--with-log=(disable|enable)
If a log file is demanded, specify enable.
--with-realtype=(float|double)
Specify floating type. Default is float.
--with-container=(deque|list)
Specify a container type of STL that is used to this program.
--host=hostname
Specify in case of cross-compilation.
CXX=CXX_COMPILER
Specify a C++ compiler, e.g., g++, icpc, xlc++ or others.
FC=FORTRAN90_COMPILER
Specify a fortran compiler.
CXXFLAGS=CXX_OPTIONS
Specify compiler options.
Compiled library and a FileConverter program will be installed at the specified directory.
Here is a example for Intel compile and OpenMPI.
$./configure --with-pm=/usr/local/FFV/PMlib \
--with-comp=INTEL \
--with-ompi=/opt/openmpi \
--with-log=enable \
CXXFLAGS="-O3 -openmp -qopt-report=5" \
CXX=mpicxx \
FC=mpif90
Following example is for K-computer.
$./configure --prefix=$1 \
--with-pm=/hogehoge \
--with-comp=FJ \
--with-log=enable \
--host=sparc64-unknown-linux-gnu \
CXX=mpiFCCpx \
CXXFLAGS=-Kfast \
FC=
2. Hand compile
If a provided configure does not work, use Makefile_hand to build this library. At first,
edit a make_setting file to tell your machine environment.