[Pw_forum] MKL question
Matteo Cococcioni
matteoc at MIT.EDU
Tue Jul 29 16:54:21 CEST 2003
Dear Sergey
I've been using (and other people in my group di as well) successfully the
mkl with ifc compiler and I can attach to
this message an example of makefile (make.sys file). I've used it for ifc
6 and mkl 5.1 but you can easily generalize for ifc 7 and mkl 6 (which, I
guess, is what you want).
I hope this will help you. Regards,
Matteo
On Tue, 29 Jul 2003 sprokuda at dnk.ru wrote:
> Dear PWscf users !
> my name is Prokudaylo Sergey. I'm trying to work with PWscf, and I've gotten your e-mail address from
> PWscf forum. That is your message: "I have the beta version of mkl, if someone needs it, just ask."
> I'm trying to compile PWscf code by ifc with MKL under RedHat 7.3, and
> it seems that system doesn't see the library ( can't call it).
> I've tried to run standard MKL tests, they work in the
> directory of MKL installation (/opt/intel/mkl60 so on), but don't work
> in any other. I've run standard scripts to add environmental
> variables, but it doesn't help. I'm very beginner with Linux, and I
> need some advise how to fix this problem.
> Best regards, Sergey Prokudaylo.
>
>
> _______________________________________________
> Pw_forum mailing list
> Pw_forum at pwscf.org
> http://www.democritos.it/mailman/listinfo/pw_forum
>
-------------- next part --------------
OSHOME=/home/the_directory_where_you_have_the_code/
#
# System-dependent Make definitions for Linux, Intel compiler
# Edit according to your needs
#
# Add -DADD_BLAS_ONE_UNDERSCORE if your blas/lapack library names contain
# two underscores at the end
# Define FFTW library names with one underscore less than they have in
# the library (one underscore is added by the compiler)
#
CPPFLAGS = -I$(OSHOME)/include/ -D__LINUX -D__INTEL -D__FFTW \
-D"FFTWND_F77_ONE=fftwnd_f77_one" \
-D"FFTW3D_F77_CREATE_PLAN=fftw3d_f77_create_plan" \
-D"FFTW_F77=fftw_f77" \
-D"FFTW_F77_CREATE_PLAN=fftw_f77_create_plan"
#
# Fortran compiler
#
F90 = ifc
F77 = ifc
#
# Fortran compiler flags
#
# -Vaxlib enables the use of portability libraries (getarg
# and maybe other library calls)
# -W0 disable warnings
# -O3 more aggressive optimization
# -tpp5 Pentium optimization
# -tpp6 Pentium Pro, 2, 3 optimization
# -tpp7 Pentium 4 optimization
#
FFLAGS = -Vaxlib -O3 -tpp7
#
# Fortran90 compiler flags
#
F90FLAGS = $(FFLAGS) -fpp $(CPPFLAGS)
#
# Fortran77 compiler flags
#
F77FLAGS = $(FFLAGS)
F77FLAGS_NOOPT = -O0
#
# C compiler flags
#
CCFLAGS = $(CPPFLAGS) -O3 -fomit-frame-pointer
#
# This is needed to tell the compiler where modules are
# use this for version < 7
MODULEFLAG= -cl,./intel.pcl
# use this for version = 7
#MODULEFLAG= -nomodule -I $(OSHOME)/Modules -I$(OSHOME)/PW -I$(OSHOME)/PH
#
# Loader:
#
# The following is for Intel MKL libraries v. 5.1 on Pentium-3
# !!! DO NOT USE MKL v. 5.2 or 6beta !!!
# Use libmkl_p3.a for Pentium-3, libmkl_p4.a for Pentium-4 machines
# (MKL will not work for other CPUs like Athlon)
#
LIBS= -lfftw_ /opt/intel/mkl/lib/32/libmkl_lapack.a \
/opt/intel/mkl/lib/32/libmkl_p4.a -lpthread
# Next 2 lines for ifc 7 and mkl 6.1
#LIBS= -lfftw_ /opt/intel/mkl60/lib/32/libmkl_lapack.a \
# /opt/intel/mkl60/lib/32/libmkl_p4.a -lpthread
MYLIB=lapack_mkl
#
# The following is for Atlas optimized blas/lapack libraries
# You may not actually need -lcblas . See the manual for details
# on how to fix I/O incompatibility problems with ifc
#
# LIBS = -lfftw -L$(HOME)/Linux_ATHLON256/ -llapack -lf77blas -lcblas -latlas
#
# The following is to use blas and lapack from the source code
# MYLIB=blas_and_lapack
#
LD=$(F90)
LDFLAGS = $(OSHOME)/flib/flib.a -Vaxlib $(LIBS)
#
# ar:
#
AR = ar
ARFLAGS = ruv
More information about the users
mailing list