the arch.mk file for Intel Compiler

177 views
Skip to first unread message

Derive D1

unread,
Sep 7, 2022, 2:23:45 PM9/7/22
to BerkeleyGW Help
Dear all,
I have installed the Intel Compiler using Intel oneAPI (oneAPI Base Toolkit/HPC Toolkit 2022 ).
Could anyone please send me the appropriate arch.mk file?
My OS is CentOS 7.

Thank you in advance

Sincerely,
Kim

Mauro Del Ben

unread,
Sep 7, 2022, 5:49:54 PM9/7/22
to Derive D1, BerkeleyGW Help
Hi Kim,

You may also want to build HDF5 library, here an example of arch.mk for intel compiler and MKL:

COMPFLAG  = -DINTEL
PARAFLAG  = -DMPI -DOMP
MATHFLAG  = -DUSESCALAPACK -DUNPACKED -DUSEFFTW3 -DHDF5 -DUSEMR3 # -DUSEPRIMME
# Only uncomment DEBUGFLAG if you need to develop/debug BerkeleyGW.
# The output will be much more verbose, and the code will slow down by ~20%.
#DEBUGFLAG = -DDEBUG

#########################################################################
#   NOTE: This arch.mk is used by the testsuite. The compiler flags are #
#   optimized to debug the code and not for code performance.           #
#########################################################################
FCPP    = /usr/bin/cpp -C  -nostdinc #  -ansi
# F90free = mpiifort -free -O0 -qopenmp  -g -traceback  -debug inline-debug-info -traceback -check all
# LINK    = mpiifort -free -O0 -qopenmp  -g -traceback  -debug inline-debug-info -traceback -check all
# FOPTS   = -O0
#
# F90free = mpiifort -free -qopenmp -O0 -fp-model precise -no-ip -no-ipo -align array64byte -g -debug inline-debug-info -traceback -check all,noarg_temp_created -ftrapuv -init=snan -fpe0
# LINK    = mpiifort -free -qopenmp -O0 -fp-model precise -no-ip -no-ipo -align array64byte -g -debug inline-debug-info -traceback -check all,noarg_temp_created -ftrapuv -init=snan -fpe0
# FOPTS   = -O0
#
F90free = mpiifort  -free -O3 -qopenmp  -g  -traceback
LINK    = mpiifort  -free -O3 -qopenmp  -g  -traceback
FOPTS   = -O3
FNOOPTS = $(FOPTS)
MOD_OPT = -module ./
INCFLAG = -I

C_PARAFLAG  = -DPARA -DMPICH_IGNORE_CXX_SEEK
CC_COMP  = mpiicpc -qopenmp
C_COMP   = mpiicc  -qopenmp
C_LINK   = mpiicc  -qopenmp
C_OPTS   = -O3
C_DEBUGFLAG =

REMOVE  = /bin/rm -f

# Math Libraries
#
FFTWLIB      = $(MKLROOT)/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group  $(MKLROOT)/lib/intel64/libmkl_intel_lp64.a \
               $(MKLROOT)/lib/intel64/libmkl_intel_thread.a $(MKLROOT)/lib/intel64/libmkl_core.a $(MKLROOT)/lib/intel64/libmkl_blacs_intelmpi_lp64.a \
               -Wl,--end-group -lpthread -lm  # /global/homes/m/mdelben/cori/BGW_subspace/dlopen_lib/dlopen.o
FFTWINCLUDE  = $(MKLROOT)/include/fftw/

LAPACKLIB = $(FFTWLIB)

HDF5_LDIR    =  /opt/lib/hdf5-1.10.5/lib
HDF5LIB      =  $(HDF5_LDIR)/libhdf5hl_fortran.a \
                $(HDF5_LDIR)/libhdf5_hl.a \
                $(HDF5_LDIR)/libhdf5_fortran.a \
                $(HDF5_LDIR)/libhdf5.a -lz -ldl
HDF5INCLUDE  = /opt/lib/hdf5-1.10.5/include

TESTSCRIPT =

--
You received this message because you are subscribed to the Google Groups "BerkeleyGW Help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help+uns...@berkeleygw.org.
To view this discussion on the web visit https://groups.google.com/a/berkeleygw.org/d/msgid/help/012ebf19-25e4-467d-abf6-3c4555dc13c3n%40berkeleygw.org.

Derive D1

unread,
Sep 8, 2022, 10:33:58 AM9/8/22
to BerkeleyGW Help, mde...@lbl.gov, BerkeleyGW Help, Derive D1
Hi,
I successfully installed BerkeleyGW using this arch.mk. Thank you so much.

Best regards
Kim
Reply all
Reply to author
Forward
0 new messages