-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIEN2k 24.1 #455
WIEN2k 24.1 #455
Comments
@PetrKralCZ What's the status of this? |
But linking of
because |
@PetrKralCZ Can you give a status update on this (incl. an estimate of how much time you've spent on this already)? |
I spent about 5 days on R_LIBS = $(FFTW_LIBS) -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core $(LIBXC_LIBS)
RP_LIBS = $(FFTW_PLIBS) $(R_LIBS)
...Makefile
$(S_EXEC): $(OBJS)
$(FORT) -o $(S_EXEC) $(OBJS) $(LDFLAGS) $(R_LIBS)
$(P_EXEC): $(OBJS)
$(FORT) -o $(P_EXEC) $(OBJS) $(LDFLAGS) $(RP_LIBS) But they don't: @@ -1,6 +1,6 @@
-ifort
+mpiifort
-o
-./lapw0
+./lapw0_mpi
cputim.o
modules.o
libxc_mod.o
@@ -181,9 +181,22 @@
-L/apps/gent/RHEL8/cascadelake-ib/software/Python/3.11.3-GCCcore-12.3.0/lib
-L/apps/gent/RHEL8/cascadelake-ib/software/imkl/2023.1.0/mkl/2023.1.0/lib/intel64
-L/apps/gent/RHEL8/cascadelake-ib/software/intel-compilers/2023.1.0/compiler/2023.1.0/linux/compiler/lib/intel64
--L/scratch/gent/vo/001/gvo00117/easybuild/RHEL8/cascadelake-ampere-ib/software/FFTW/3.3.10-intel-compilers-2023.1.0/lib64
+
+-lfftw3_mpi
+
+-lfftw3_mpi
-lfftw3
--lfftw3_omp
+-Wl,-Bdynamic
+-Wl,--start-group
+-lmkl_scalapack_lp64
+-lmkl_blacs_intelmpi_lp64
+-lmkl_intel_lp64
+-lmkl_intel_thread
+-lmkl_core
+-Wl,--end-group
+-Wl,-Bdynamic
+-liomp5
+-lpthread
-Wl,-Bdynamic
-Wl,--start-group
-lmkl_intel_lp64
@@ -193,7 +206,3 @@
-Wl,-Bdynamic
-liomp5
-lpthread
--qopenmp
--L/scratch/gent/vo/001/gvo00117/easybuild/RHEL8/cascadelake-ampere-ib/software/libxc/6.2.2-intel-compilers-2023.1.0/lib/
--lxcf03
--lxc I guess the only thing which is modifying those env vars is the # libraries
liblapack = os.getenv('LIBLAPACK_MT').replace('static', 'dynamic')
libscalapack = os.getenv('LIBSCALAPACK_MT').replace('static', 'dynamic')
rlibs = "%s %s" % (liblapack, self.toolchain.get_flag('openmp'))
rplibs = [libscalapack, liblapack]
fftwver = get_software_version('FFTW')
if fftwver:
suff = ''
if LooseVersion(fftwver) >= LooseVersion("3"):
suff = '3'
rplibs.insert(0, "-lfftw%(suff)s_mpi -lfftw%(suff)s" % {'suff': suff})
else:
rplibs.append(os.getenv('LIBFFT'))
rplibs = ' '.join(rplibs)
vars = {
'FC': '%s' % os.getenv('F90'),
'FOPT': '%s' % os.getenv('FFLAGS'),
'MPF': '%s' % os.getenv('MPIF90'),
'FPOPT': '%s' % os.getenv('FFLAGS'),
'CC': os.getenv('CC'),
'LDFLAGS': '$(FOPT) %s ' % os.getenv('LDFLAGS'),
'R_LIBS': rlibs, # libraries for 'real' (not 'complex') binary
'RP_LIBS': rplibs, # libraries for 'real' parallel binary
'MPIRUN': '',
} Note that @@ -184,19 +184,9 @@
-lfftw3_mpi
--lfftw3_mpi
+-L/scratch/gent/vo/001/gvo00117/easybuild/RHEL8/cascadelake-ampere-ib/software/FFTW/3.3.10-intel-compilers-2023.1.0/lib64
-lfftw3
--Wl,-Bdynamic
--Wl,--start-group
--lmkl_scalapack_lp64
--lmkl_blacs_intelmpi_lp64
--lmkl_intel_lp64
--lmkl_intel_thread
--lmkl_core
--Wl,--end-group
--Wl,-Bdynamic
--liomp5
--lpthread
+-lfftw3_omp
-Wl,-Bdynamic
-Wl,--start-group
-lmkl_intel_lp64
@@ -206,3 +196,7 @@
-Wl,-Bdynamic
-liomp5
-lpthread
+-qopenmp
+-L/scratch/gent/vo/001/gvo00117/easybuild/RHEL8/cascadelake-ampere-ib/software/libxc/6.2.2-intel-compilers-2023.1.0/lib/
+-lxcf03
+-lxc So that line really is responsible for removing linking of
Most of the flags the easyblock adds are duplicite. The only ones necessary to add seem to be # libraries
liblapack = os.getenv('LIBLAPACK_MT').replace('static', 'dynamic')
libscalapack = os.getenv('LIBSCALAPACK_MT').replace('static', 'dynamic')
rlibs = "%s %s" % (liblapack, self.toolchain.get_flag('openmp'))
rplibs = [libscalapack, liblapack]
fftwver = get_software_version('FFTW')
# if fftwver:
# suff = ''
# if LooseVersion(fftwver) >= LooseVersion("3"):
# suff = '3'
# rplibs.insert(0, "-lfftw%(suff)s_mpi -lfftw%(suff)s" % {'suff': suff})
# else:
# rplibs.append(os.getenv('LIBFFT'))
rplibs = ' '.join(rplibs)
vars = {
'FC': '%s' % os.getenv('F90'),
'FOPT': '%s' % os.getenv('FFLAGS'),
'MPF': '%s' % os.getenv('MPIF90'),
'FPOPT': '%s' % os.getenv('FFLAGS'),
'CC': os.getenv('CC'),
'LDFLAGS': '$(FOPT) %s ' % os.getenv('LDFLAGS'),
'R_LIBS': rlibs, # libraries for 'real' (not 'complex') binary
'RP_LIBS': rplibs, # libraries for 'real' parallel binary
'MPIRUN': '',
} It still makes more changes to the compile command then expected including removing |
intel/2023a
(or newer)WIEN2k-23.2-intel-2021b.eb
The text was updated successfully, but these errors were encountered: