Skip to content

Commit

Permalink
Merge pull request #1997 from ocaisa/lammps
Browse files Browse the repository at this point in the history
Update lammps easyblock to be aware of MKL
  • Loading branch information
boegel authored Mar 23, 2020
2 parents c1afbd1 + 24b9b36 commit 3b2dd0b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions easybuild/easyblocks/l/lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,14 @@ def configure_step(self, **kwargs):
self.cfg.update('configopts', '-DPKG_USER-OMP=on')

# FFTW
if get_software_root('FFTW'):
if get_software_root("imkl") or get_software_root("FFTW"):
if '-DFFT=' not in self.cfg['configopts']:
self.cfg.update('configopts', '-DFFT=FFTW3')
if get_software_root("imkl"):
self.log.info("Using the MKL")
self.cfg.update('configopts', '-DFFT=MKL')
else:
self.log.info("Using FFTW")
self.cfg.update('configopts', '-DFFT=FFTW3')
if '-DFFT_PACK=' not in self.cfg['configopts']:
self.cfg.update('configopts', '-DFFT_PACK=array')

Expand Down

0 comments on commit 3b2dd0b

Please sign in to comment.