-
Notifications
You must be signed in to change notification settings - Fork 122
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
Problem with linking ScaLAPACK during QUIP library compilation #604
Comments
You need to add a |
Thank you for your previous assistance. After adding the However, when I moved on to the Any further guidance would be much appreciated. |
What compiler version are you using? |
I am using gcc version 8.2.0, and OpenMPI version 4.0.3. |
That error is very weird, because I think that syntax has been there fore a long time [edited - I'm wrong - that syntax was added recently, and may require a newer gfortran version @Sideboard?] Regardless, something doesn't make sense - ScaLAPACK is an MPI library, but you don't seem to be using a What makes you think that you need ScaLAPACK? Is this for parallel fitting of GAPs? If so, could someone (@jameskermode @Sideboard ) comment on how the compilation is supposed to be done. |
That is curious indeed. Allocatable character length is Fortran 2003 and should be supported. All the oldest compilers on Compiler Explorer can compile such a declaration, including Besides that, the question remains whether you do want to use ScaLAPACK or not. Loading |
Thank you both for your responses.
I have successfully compiled QUIP using the updated settings. I have a question regarding the commands available in this build: in a previous version of QUIP compiled by a colleague, we used the |
I have a similar problem as above, except that I report a different error after make. character(len=:), allocatable :: hostname character(len=:), allocatable :: hostname
Error: Array specification required in ALLOCATE statement at (1)
Error: Array specification required in ALLOCATE statement at (1)
Error: Array specification required in ALLOCATE statement at (1) |
Looks like you need a newer version of the fortran compiler which supports the syntax that's used in the current version of the code. What compiler are you using? |
from the README of QUIP, i notice the version of gfortran is 4.4 or later, maybe my version is enough? GNU Fortran comes with NO WARRANTY, to the extent permitted by law. |
That's ancient. I'm not surprised it's not working. I'm pretty sure the README needs to be updated. See also #637 |
Yes we renamed teach_spare to gap_fit. |
you only need Scalapack if you want to run gap_fit on multiple nodes using MPI. |
I'm trying to compile QUIP as a library with GAP potential (also gap_fit), which needs to use the ScaLAPACK package. However, ScaLAPACK can't be found during the compilation process.
I'm running on Red Hat Enterprise Linux Server release 7.7 using gfortran, part of gcc version 8.2.0, and OpenMPI version 4.0.3.
Here are the steps I've followed:
export QUIP_ARCH=linux_x86_64_gfortran
.make config
.make config
step.To troubleshoot, I tried installing Scalapack manually. However, I'm unsure how to link the libscalapack.a file during QUIP's compilation process.
I would appreciate any guidance on how to properly link Scalapack during the compilation process.
During my "make config" my option were as follow:
The error message was:
The text was updated successfully, but these errors were encountered: