-
Notifications
You must be signed in to change notification settings - Fork 310
fix two bugs in GROMACS easyblock when using GCC & MKL for FFT and BLAS/LAPACK #2212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -328,10 +328,11 @@ def configure_step(self): | |
|
|
||
| if get_software_root('imkl'): | ||
| # using MKL for FFT, so it will also be used for BLAS/LAPACK | ||
| self.cfg.update('configopts', '-DGMX_FFT_LIBRARY=mkl -DMKL_INCLUDE_DIR="$EBROOTMKL/mkl/include" ') | ||
| self.cfg.update('configopts', '-DGMX_FFT_LIBRARY=mkl -DMKL_INCLUDE_DIR="%s" ' % | ||
| os.path.join(os.getenv('MKLROOT'), 'include')) | ||
| libs = os.getenv('LAPACK_STATIC_LIBS').split(',') | ||
| mkl_libs = [os.path.join(os.getenv('LAPACK_LIB_DIR'), lib) for lib in libs if lib != 'libgfortran.a'] | ||
| mkl_libs = ['-Wl,--start-group'] + mkl_libs + ['-Wl,--end-group'] | ||
| mkl_libs = ['-Wl,--start-group'] + mkl_libs + ['-Wl,--end-group -lpthread -lm -ldl'] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it OK to always include Can you clarify which error this fixes exactly?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When trying to compile GROMACS 2020.4 with the Linking with MKL was requested, but was not successful: The include path to
mkl.h in MKL_INCLUDE_DIR, and the link libraries in
MKL_LIBRARIES=-Wl,--start-group;/cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/imkl/2020.1.217/mkl/lib/intel64/libmkl_gf_lp64.a;/cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/imkl/2020.1.217/mkl/lib/intel64/libmkl_sequential.a;/cvmfs/soft.computecanada.ca/easybuild/software/2020/Core/imkl/2020.1.217/mkl/lib/intel64/libmkl_core.a;-Wl,--end-group
need to match what the MKL documentation says you need for your system: Use
full paths to library files, in the right order, and separated by
semicolons.
Call Stack (most recent call first):
CMakeLists.txt:716 (include)I used the MKL advisor to suggest the linker-flags, which is how I came to try adding |
||
| self.cfg.update('configopts', '-DMKL_LIBRARIES="%s" ' % ';'.join(mkl_libs)) | ||
| else: | ||
| for libname in ['BLAS', 'LAPACK']: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.