-
Notifications
You must be signed in to change notification settings - Fork 10
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
Errors when compiling CHAP #20
Comments
Hi eric-jm-lang, I successfully built and ran CHAP, linked to GROMACS 2018.8, with everything compiled with Intel Compilers 2018.3 and Intel MKL 2018.3. First you would need to apply the patch file at the end of #22 that fixes a few bugs and compilation issues.
For CHAP compilation with MKL there's a trick in the CMAKE command, which is to specify a dot for all related LAPACK and BLAS stuff.
Remark: As GROMACS utilises MKL in sequential mode, it may be a good idea to specify it for CHAP also (I'm not very sure). Remark: If BOOST isn't installed on a standard location then the BOOST_ROOT won't work unless it is installed in the same place than GROMACS. Remark: If you want to statically link the Intel libraries to the binary, just add That's all, I hope this will prove useful to you. PS: If you you to compile GROMACS with static Intel libraries I can provide the CMAKE command for it. |
Hi,
I have been trying to compile CHAP on our local cluster but ran into a number of issues.
First the I encountered the same problem as described in #5
However, the suggested fix didn't work (Adding
include_directories(${LAPACKE_INCLUDE_DIRS})
ortarget_include_directories(chap PUBLIC ${LAPACKE_INCLUDE_DIRS})
toCMakeLists.txt
). Instead I had to add the explicit path toCMakeLists.txt
(I am mainly mentioning it in case others run into the same problem).I have however further problems during compuilation. With an intel compiler (which was used to compile Gromacs), I get the following error:
So I tried to switch to gcc, but then I got this error:
I thought it could be a problem of gcc version (I used GCC 7.2.0) so I tried with the same GCC version (5.4.0) as the one used on my desktop for with the installation was a success (Ubuntu desktop with all prerequisite libraries installed with apt-get).
Do you have any ideas on how to fix it?
I am happy to replace
-qopenmp
with-fopenmp
but I don't know where to change it.Many thanks
The text was updated successfully, but these errors were encountered: