Skip to content

Commit

Permalink
make imkl easyblock aware of module-search-path-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
lexming committed Feb 10, 2025
1 parent adf3b83 commit 9e5d381
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions easybuild/easyblocks/i/imkl.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,15 @@ def make_module_step(self, *args, **kwargs):
os.path.join(self.mkl_basedir, 'lib', 'intel64'),
]
self.module_load_environment.LIBRARY_PATH = self.module_load_environment.LD_LIBRARY_PATH
self.module_load_environment.CPATH = [
self.module_load_environment.CMAKE_PREFIX_PATH = [self.mkl_basedir]
self.module_load_environment.PKG_CONFIG_PATH = pkg_config_path

# include paths to headers (e.g. CPATH)
include_dirs = [
os.path.join(self.mkl_basedir, 'include'),
os.path.join(self.mkl_basedir, 'include', 'fftw'),
]
self.module_load_environment.CMAKE_PREFIX_PATH = [self.mkl_basedir]
self.module_load_environment.PKG_CONFIG_PATH = pkg_config_path
self.module_load_environment.set_alias_vars('HEADERS', include_dirs)

if LooseVersion(self.version) < LooseVersion('2021'):
self.module_load_environment.MANPATH = ['man', os.path.join('man', 'en_US')]
Expand Down

0 comments on commit 9e5d381

Please sign in to comment.