Gromacs cray GPU + dynamic libs#951
Conversation
| lib_dir = os.getenv('%s_LIB_DIR' % libname) | ||
| libs = os.getenv('LIB%s' % libname) | ||
| self.cfg.update('configopts', '-DGMX_%s_USER="-L%s %s"' % (libname, lib_dir, libs)) | ||
| if self.toolchain.name.startswith('Cray'): |
There was a problem hiding this comment.
please use:
import easybuild.tools.toolchain as toolchain
...
if self.toolchain.toolchain_family() == toolchain.CRAYPE:| from easybuild.tools.systemtools import get_platform_name | ||
|
|
||
| from easybuild.tools.systemtools import get_shared_lib_ext | ||
| import easybuild.tools.toolchain as toolchain |
There was a problem hiding this comment.
please move the import one up below the other import (keep them alphabetical), and collapse the two for systemtools:
from easybuild.tools.systemtools import get_platform_name , get_shared_lib_ext|
@gppezzi one more tiny remark, seeing test reports that rely on this would be great |
|
Here's a first log, I'll now prepare the PR for the easyconfig file. |
|
@gppezzi I'm seeing this with existing easyconfigs: So, you'll need to use self.toolchain.options.get('dynamic', False):since the |
|
lgtm there are a couple of other PRs for the GROMACS easyblock, I'll look into handling them together... |
| libs = os.getenv('LIB%s' % libname) | ||
| self.cfg.update('configopts', '-DGMX_%s_USER="-L%s %s"' % (libname, lib_dir, libs)) | ||
| if self.toolchain.toolchain_family() == toolchain.CRAYPE: | ||
| self.cfg.update('configopts', '-DGMX_%s_USER="%s/libsci_gnu_mpi_mp.a"' % (libname, lib_dir)) |
There was a problem hiding this comment.
@gppezzi can you change this like I did in https://github.com/hpcugent/easybuild-easyblocks/pull/960/files#diff-a02b2451ce7221a206c1f64ba6758d33R158 (only the Cray-specific part in this if block), then I can merge this PR (and sync #960 after the merge)
No description provided.