ArjunaCluster / ArjunaUsers

Arjuna Public Documentation for Users
https://arjunacluster.github.io/ArjunaUsers/
14 stars 7 forks source link

VASP installation on Arjuna #22

Closed maituoy closed 3 years ago

maituoy commented 3 years ago

Hi, I'm wondering if VASP can be installed as a module on Arjuna? Thank you

aabills commented 3 years ago

Yes! You can install to your home directory via spack install. It looks like vasp is available.

maituoy commented 3 years ago

I do see a vasp package with spack list. But when I try to load via spack load vasp, it says "Error: Spec 'vasp' matches no installed packages.". Would you mind elaborating more details about how to use it with spack? I also tried to install the vasp locally with spack install vasp. However, it ends up with "vasp has to be downloaded manually". So, if I have the package, how do I install it via spack? Thank you for your time!

awadell1 commented 3 years ago

I'd recommend checking out the spack documentation: https://spack-tutorial.readthedocs.io/en/latest/

spack load package will fail unless the package has been installed (spack find will show you what is installed)

Do post the full output of spack install vasp

maituoy commented 3 years ago

I followed the instruction in the spack documentation as below

image

But it seems it still can not fetch the .tar file locally. Here is the full output of spack install vasp

image
awadell1 commented 3 years ago

Do link to things like that: https://spack.readthedocs.io/en/latest/basic_usage.html?highlight=Non-downloadable#non-downloadable-tarballs

Things to check:

If that doesn't flag the issue, I would try to create the mirror again with spack mirror create and read the mirror docs: https://spack.readthedocs.io/en/latest/mirrors.html#mirrors

maituoy commented 3 years ago

Still not able to let spack fetching the package locally. The spack can see my mirror as follow:

image image

I believe spack mirror create only works for those packages can be fetched online.

I'm not sure if it's due to the unsuccessful clean process. Since I tried to clean the previous cache before installation, but got a warning as below.

image
awadell1 commented 3 years ago

I've deleted /tmp/maituoy can you try again?

maituoy commented 3 years ago

No luck. I'm trying to compile it myself instead of using spack. Is it possible to install an Intel fortran compiler on Arjuna? I did not find one on the spack list. I'm not sure if the spack install intel will include everything but I don't have the permission to give it a try.

awadell1 commented 3 years ago

That's a bummer. Did spack give any helpful error messages? You might want to try: ‘spack install -v vasp’

Yes, you can install intel compilers with spack.

You do have permission to install additional software with spack. (I.e. ‘spack install intel’) it will just end up in your ~/.spack directory instead of the spack users’. You will also have to tell spack about the new compiler ( if you want to use it with spack); see the spack docs for more info

If you're getting specific permission issues, please post the command and resulting output

Best,

Alex

maituoy commented 3 years ago

spack install -v vasp gives the same error as before.

image

spack install intel results in a permission error as follow

image

Really appreciate your time! Maituo

aabills commented 3 years ago

Looks like intel compilers require a license

The permission error is fixed though. Do you have a license for the intel fortran compiler? Looks like there's a student version.

aabills commented 3 years ago

This is a guess, but try installing vasp@5.4.4. The vasp in spack is 6.1.1 or something, so when you do spack install vasp and you have 5.4.4 as the tarball, it may be going to the latest version, trying to download, and failing

so try spack install vasp@5.4.4

maituoy commented 3 years ago

I've tried that before. It did not work.

aabills commented 3 years ago

Yeah it's not working for me either

maituoy commented 3 years ago

I've compiled it myself. Thanks for all your help. I attached my make file below in case anyone on Arjuna would like to compile VASP. makefile.include_Arjuna.zip

aabills commented 3 years ago

Happy that you got it yourself, and thanks for trying! We're going to continue working on this behind the scenes, because it's much deeper than just VASP -- currently our spack is not properly recognizing mirrors, which means any software spack can't download can't be installed via spack rn.

maituoy commented 3 years ago

Actually I also tried to install wannier90 via spack mirror and I think in that case mirror was able to be recognized.

image

I hope this extra data point may help a little bit.

aabills commented 3 years ago

Oh yeah thanks!