Skip to content

Commit d3c36ba

Browse files
committed
Fix test, and multithreaded FFT libs.
1 parent af9e436 commit d3c36ba

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

easybuild/toolchains/fft/intelfftw.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@ def fftw_lib_exists(libname):
103103
fft_lib_dirs += [os.path.join(imklfftwroot, 'lib')]
104104
self.FFT_LIB_DIR = [os.path.join(imklfftwroot, 'lib')]
105105

106+
fftw_mt_libs = fftw_libs + [x % self.BLAS_LIB_MAP for x in self.BLAS_LIB_MT]
107+
106108
self.log.debug('fftw_libs %s' % fftw_libs.__repr__())
107109
fftw_libs.extend(self.variables['LIBBLAS'].flatten()) # add BLAS libs (contains dft)
108110
self.log.debug('fftw_libs %s' % fftw_libs.__repr__())
109111

110112
# building the FFTW interfaces is optional,
111113
# so make sure libraries are there before FFT_LIB is set
112-
fftw_mt_libs = fftw_libs + [x % self.BLAS_LIB_MAP for x in self.BLAS_LIB_MT]
113-
114114
# filter out libraries from list of FFTW libraries to check for if they are not provided by Intel MKL
115-
check_fftw_libs = [lib for lib in fftw_mt_libs if lib not in ['dl', 'gfortran']]
115+
check_fftw_libs = [lib for lib in fftw_libs + fftw_mt_libs if lib not in ['dl', 'gfortran']]
116116

117117
missing_fftw_libs = [lib for lib in check_fftw_libs if not fftw_lib_exists(lib)]
118118
if missing_fftw_libs:
@@ -123,6 +123,5 @@ def fftw_lib_exists(libname):
123123
else:
124124
raise EasyBuildError(msg)
125125
else:
126+
self.FFT_LIB = fftw_libs
126127
self.FFT_LIB_MT = fftw_mt_libs
127-
128-
self.FFT_LIB = fftw_libs

test/framework/toolchain.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ def setup_sandbox_for_intel_fftw(self, moddir, imklver='2018.1.163'):
11851185

11861186
mkl_libs = ['mkl_cdft_core', 'mkl_blacs_intelmpi_lp64']
11871187
mkl_libs += ['mkl_intel_lp64', 'mkl_sequential', 'mkl_core', 'mkl_intel_ilp64']
1188+
mkl_libs += ['mkl_intel_thread']
11881189
fftw_libs = ['fftw3xc_intel', 'fftw3xc_pgi']
11891190
if LooseVersion(imklver) >= LooseVersion('11'):
11901191
fftw_libs.extend(['fftw3x_cdft_ilp64', 'fftw3x_cdft_lp64'])

0 commit comments

Comments
 (0)