Skip to content

Commit f1b6a85

Browse files
authored
Merge pull request #3612 from lexming/modload-imklfftw
adopt `module_load_environment` in imkl-FFTW easyblock
2 parents 1c1cb7e + aacce05 commit f1b6a85

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

easybuild/easyblocks/i/imkl_fftw.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ def install_step(self):
5454
self.mkl_basedir = os.getenv('MKLROOT')
5555
self.build_mkl_fftw_interfaces(os.path.join(self.installdir, 'lib'))
5656

57-
def make_module_req_guess(self):
58-
"""Custom guesses for imkl-FFTW module file"""
59-
# bypass custom paths for imkl, only use standard library location
60-
return super(EB_imkl, self).make_module_req_guess()
57+
def make_module_step(self, *args, **kwargs):
58+
"""
59+
Custom paths of imkl are unnecessary as imkl-FFTW only ships libraries under the 'lib' subdir
60+
Use generic make_module_step skipping imkl
61+
"""
62+
return super(EB_imkl, self).make_module_step(*args, **kwargs)
6163

6264
def make_module_extra(self):
6365
"""Custom extra variables to set in module file"""

0 commit comments

Comments
 (0)