Skip to content

spack installation of custom QE version on Merlin7 CPU #4

@mikibonacci

Description

@mikibonacci

We need this because we cannot install quantum-espresso@7.4 directly, as it always fallback into 7.4.1. So we need to clone it, then register (add) it, then install it via:

module purge
module load spack
spack env activate -p unstable

cd /afs/psi.ch/sys/spack/user/bonacc_m/spack-environment/
git clone https://gitlab.com/QEF/q-e.git quantum-espresso
spack develop quantum-espresso@7.4 # it will pick the right tag in this way

spack spec quantum-espresso@7.4 # to check that the version is the right one
spack install quantum-espresso@7.4  # this is then installed in "/afs/psi.ch/sys/spack/user/bonacc_m/spack-install/"

You can check that you have indeed the package installed via spack find quantum-espresso. This will show, at some point, quantum-espresso@7.4 under the given gcc version that you see in the spack spec quantum-espresso@7.4.

Running QE

To then use it in a script:

module purge
module load spack
spack env activate -p unstable
spack load quantum-espresso@7.4%gcc@14.2.0 # you can verify with "which pw.x"

This are the instructions for a basic installation, but it should be possible to change compiler, use intel and so on...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions