FIX: cp2k installation
This commit is contained in:
6
env/merlin/all/packages/cp2k/package.py
vendored
6
env/merlin/all/packages/cp2k/package.py
vendored
@ -287,6 +287,10 @@ class Cp2k(MakefilePackage, CudaPackage):
|
|||||||
elif "^cray-fftw" in spec:
|
elif "^cray-fftw" in spec:
|
||||||
fftw = spec["cray-fftw"]
|
fftw = spec["cray-fftw"]
|
||||||
fftw_header_dir = fftw.headers.directories[0]
|
fftw_header_dir = fftw.headers.directories[0]
|
||||||
|
else:
|
||||||
|
fftw = spec["intel-oneapi-mkl"]
|
||||||
|
fftw_header_dir = fftw.headers.directories[0] + "/fftw"
|
||||||
|
|
||||||
|
|
||||||
optimization_flags = {
|
optimization_flags = {
|
||||||
"gcc": [
|
"gcc": [
|
||||||
@ -430,7 +434,7 @@ class Cp2k(MakefilePackage, CudaPackage):
|
|||||||
cppflags.extend(["-D__parallel", "-D__SCALAPACK"])
|
cppflags.extend(["-D__parallel", "-D__SCALAPACK"])
|
||||||
|
|
||||||
if "^intel-oneapi-mpi" in spec:
|
if "^intel-oneapi-mpi" in spec:
|
||||||
mpi = [join_path(spec["intel-oneapi-mpi"].libs.directories[0], "libmpi.so")]
|
mpi = [join_path(spec["intel-oneapi-mpi"].libs.directories[0], "libmpicxx.so")]
|
||||||
else:
|
else:
|
||||||
mpi = spec["mpi:cxx"].libs
|
mpi = spec["mpi:cxx"].libs
|
||||||
|
|
||||||
|
19
env/merlin/all/spack.yaml
vendored
19
env/merlin/all/spack.yaml
vendored
@ -3,13 +3,13 @@ spack:
|
|||||||
unify: when_possible
|
unify: when_possible
|
||||||
definitions:
|
definitions:
|
||||||
- Compilers: &Compilers
|
- Compilers: &Compilers
|
||||||
- '%clang@12.0.0'
|
- '%clang'
|
||||||
- '%dpcpp@2022.1.0'
|
- '%dpcpp'
|
||||||
- '%gcc@8.3.0'
|
- '%gcc'
|
||||||
- '%gcc@12.1.0'
|
- '%intel'
|
||||||
- '%intel@2021.6.0'
|
- '%nvhpc'
|
||||||
- '%nvhpc@21.5'
|
- '%oneapi'
|
||||||
- '%oneapi@2022.1.0'
|
- '%pgi'
|
||||||
- Batchsystem_pckgs: &Batchsystem_pckgs
|
- Batchsystem_pckgs: &Batchsystem_pckgs
|
||||||
- slurm
|
- slurm
|
||||||
- Compiler_pckgs: &Compiler_pckgs
|
- Compiler_pckgs: &Compiler_pckgs
|
||||||
@ -559,7 +559,6 @@ spack:
|
|||||||
- ['%gcc@8.3.0']
|
- ['%gcc@8.3.0']
|
||||||
- [$mpi]
|
- [$mpi]
|
||||||
- [$blas]
|
- [$blas]
|
||||||
- [^boost@1.63.0+python+numpy cxxstd=11 +icu ^icu4c cxxstd=11]
|
|
||||||
- [$python]
|
- [$python]
|
||||||
- matrix:
|
- matrix:
|
||||||
- [gromacs, h5hut+mpi, lammps, visit]
|
- [gromacs, h5hut+mpi, lammps, visit]
|
||||||
@ -570,6 +569,10 @@ spack:
|
|||||||
- matrix:
|
- matrix:
|
||||||
- [cp2k@9.1]
|
- [cp2k@9.1]
|
||||||
- ['%oneapi']
|
- ['%oneapi']
|
||||||
|
- [^intel-oneapi-mpi]
|
||||||
|
- [^libxsmm%oneapi]
|
||||||
|
- [^libint%oneapi]
|
||||||
|
- [^libxc%oneapi]
|
||||||
- [$python]
|
- [$python]
|
||||||
- matrix:
|
- matrix:
|
||||||
- [relion +cuda cuda_arch=61]
|
- [relion +cuda cuda_arch=61]
|
||||||
|
Reference in New Issue
Block a user