Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
qbox
qbox-public
Commits
ca27b6e4
Commit
ca27b6e4
authored
6 years ago
by
Francois Gygi
Browse files
Options
Download
Email Patches
Plain Diff
Add centos7 and centos7_intel makefiles
parent
707eaddd
master
rel1_78_4
rel1_78_3
rel1_78_2
rel1_78_1
rel1_78_0
rel1_77_0
rel1_76_4
rel1_76_3
rel1_76_2
rel1_76_1
rel1_76_0
rel1_75_1
rel1_75_0
rel1_74_4
rel1_74_3
rel1_74_2
rel1_74_1
rel1_74_0
rel1_73_5
rel1_73_4
rel1_73_3
rel1_73_2
rel1_73_1
rel1_72_3
rel1_72_2
rel1_72_1
rel1_72_0
rel1_71_5
rel1_71_4
rel1_71_3
rel1_71_2
rel1_71_1
rel1_71_0
rel1_70_0
rel1_69_1
rel1_69_0
rel1_68_4
rel1_68_3
rel1_68_2
rel1_68_1
rel1_68_0
rel1_67_4
rel1_67_3
rel1_67_2
rel1_67_1
rel1_67_0
rel1_66_3
rel1_66_2
rel1_66_1
rel1_66_0
rel1_65_1
rel1_65_0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/centos7.mk
+81
-0
build/centos7.mk
build/centos7_intel.mk
+63
-0
build/centos7_intel.mk
with
144 additions
and
0 deletions
+144
-0
build/centos7.mk
0 → 100644
+
81
-
0
View file @
ca27b6e4
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008-2017 The Regents of the University of California
#
# This file is part of Qbox
#
# Qbox is distributed under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
# See the file COPYING in the root directory of this distribution
# or <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------------------------------------
#
# centos7.mk
#
#-------------------------------------------------------------------------------
# Prerequisites:
# On a Centos-7.3 system, install the following packages:
# yum install xerces-c xerces-c-devel
# yum install openmpi openmpi-devel
# yum install lapack lapack-devel
# yum install fftw fftw-devel
# yum install scalapack-common scalapack-openmpi \
# scalapack-openmpi-devel scalapack-openmpi-static
# yum install libuuid libuuid-devel
#
#-------------------------------------------------------------------------------
PLT
=
Linux_x8664
#-------------------------------------------------------------------------------
PLTOBJECTS
=
readTSC.o
CXX
=
mpicxx
LD
=
$(CXX)
PLTFLAGS
+=
-DIA32
-D_LARGEFILE_SOURCE
\
-D_FILE_OFFSET_BITS
=
64
-DUSE_MPI
-DSCALAPACK
-DADD_
\
-DAPP_NO_THREADS
-DXML_USE_NO_THREADS
-DUSE_XERCES
\
-DXERCESC_3
-DMPICH_IGNORE_CXX_SEEK
-DUSE_UUID
# FFT must be FFTW2, FFTW3, ESSL or NOLIB
FFT
=
FFTW3
ifeq
($(FFT),FFTW2)
PLTFLAGS
+=
-DUSE_FFTW2
#PLTFLAGS += -DFFTWMEASURE
#FFTWDIR=$(HOME)/software/fftw/Linux_x8664/fftw-2.1.5/fftw
#FFTWINCLUDEDIR=$(FFTWDIR)
#FFTWLIBDIR=$(FFTWDIR)/.libs
#INCLUDE += -I$(FFTWINCLUDEDIR)
#LIBPATH += -L$(FFTWLIBDIR)
LIBS
+=
-lfftw
endif
ifeq
($(FFT),FFTW3)
PLTFLAGS
+=
-DUSE_FFTW3
#PLTFLAGS += -DFFTWMEASURE
#PLTFLAGS += -DFFTW_TRANSPOSE
PLTFLAGS
+=
-DFFTW3_2D
#FFTWDIR=$(HOME)/software/fftw/fftw-3.3.4
#FFTWINCLUDEDIR=$(FFTWDIR)/api
#FFTWLIBDIR=$(FFTWDIR)/.libs
#INCLUDE += -I$(FFTWINCLUDEDIR)
#LIBPATH += -L$(FFTWLIBDIR)
LIBS
+=
-lfftw3
endif
ifeq
($(FFT),ESSL)
$(error
ESSL
library
not
available)
endif
ifeq
($(FFT),NOLIB)
PLTFLAGS
+=
-DFFT_NOLIB
endif
CXXFLAGS
=
-g
-O3
-Wunused
-D
$(PLT)
$(INCLUDE)
$(PLTFLAGS)
$(DFLAGS)
LIBS
+=
-lpthread
-lxerces-c
-lscalapack
-llapack
-lblas
-luuid
LDFLAGS
=
$(LIBPATH)
$(LIBS)
#-------------------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
build/centos7_intel.mk
0 → 100644
+
63
-
0
View file @
ca27b6e4
#-------------------------------------------------------------------------------
#
# Copyright (c) 2008-2018 The Regents of the University of California
#
# This file is part of Qbox
#
# Qbox is distributed under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
# See the file COPYING in the root directory of this distribution
# or <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------------------------------------
#
# centos7_intel.mk
#
#-------------------------------------------------------------------------------
# build on CentOS 7 using the intel compiler and the threaded MKL library
# with openmpi
#
# Prerequisites:
# On a Centos-7.3 system, install the following packages:
# yum install xerces-c xerces-c-devel
# yum install openmpi openmpi-devel
# yum install fftw fftw-devel
# yum install libuuid libuuid-devel
# intel compiler and MKL library
#
#-------------------------------------------------------------------------------
# Use the following definitions to compile and use qb
# export LD_LIBRARY_PATH=/opt/intel/mkl/intel64/lib
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/lib/intel64
# export PATH=$PATH:/opt/intel/bin
MKLROOT
=
/opt/intel/mkl
PLTOBJECTS
=
readTSC.o
CXX
=
env
OMPI_CXX
=
icc mpicxx
LD
=
$(CXX)
PLTFLAGS
+=
-D_LARGEFILE_SOURCE
\
-D_FILE_OFFSET_BITS
=
64
-DUSE_MPI
-DSCALAPACK
-DADD_
\
-DAPP_NO_THREADS
-DXML_USE_NO_THREADS
-DUSE_XERCES
\
-DXERCESC_3
-DMPICH_IGNORE_CXX_SEEK
-DUSE_UUID
\
-DUSE_FFTW3
-DFFTW3_2D
LIBS
=
-lfftw3
INCLUDE
=
-I
$(MKLROOT)
/include
CXXFLAGS
=
-g
-O3
-openmp
$(INCLUDE)
$(PLTFLAGS)
LIBPATH
=
-L
$(MKLROOT)
/lib/intel64
LIBS
+=
-Wl
,-Bstatic
-Wl
,--start-group
\
-lmkl_scalapack_lp64
-lmkl_blacs_openmpi_lp64
\
-lmkl_intel_lp64
-lmkl_core
-lmkl_intel_thread
\
-Wl
,--end-group
-Wl
,-Bdynamic
\
-lxerces-c
-luuid
-liomp5
LDFLAGS
=
$(LIBPATH)
$(LIBS)
#-------------------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets