You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to build this feature/cmake branch with spack. My package currently looks like this:
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other# Spack Project Developers. See the top-level COPYRIGHT file for details.## SPDX-License-Identifier: (Apache-2.0 OR MIT)fromspackimport*classCp2kCmake(CMakePackage):
"""CP2K is a quantum chemistry and solid state physics software package that can perform atomistic simulations of solid state, liquid, molecular, periodic, material, crystal, and biological systems """homepage="https://www.cp2k.org"url="https://github.com/dev-zero/cp2k"git="https://github.com/dev-zero/cp2k.git"version('develop', branch='feature/cmake')
build_directory='spack-build'variant('mpi', default=True, description='Enable MPI support')
variant('smm', default='libxsmm', values=('libxsmm', 'libsmm', 'blas'),
description='Library for small matrix multiplications')
depends_on('blas')
depends_on('lapack')
depends_on('fftw-api@3')
depends_on('mpi@2:', when='+mpi')
depends_on('dbcsr')
depends_on('libxsmm@1.11:~header-only', when='smm=libxsmm')
# Build dependenciesdepends_on('python', type='build')
depends_on("py-fypp", type="build")
depends_on("pkgconfig", type='build')
conflicts('smm=libxsmm', when='target=aarch64:', msg='libxsmm is not available on arm')
# Make sure dependencies use openmp threadingconflicts('^fftw~openmp')
conflicts('^openblas threads=none')
conflicts('^openblas threads=pthreads')
defcmake_args(self):
return [
self.define_from_variant('USE_MPI', 'mpi'),
]
I had to fix:
two build errors, one about get_accdrv_active_device_id not being exported from dbcsr, so I patched dbcsr locally. And another one about truncated lines due to CPABORT calls, which is just trimmed a bit.
Uh oh!
There was an error while loading. Please reload this page.
I've tried to build this feature/cmake branch with spack. My package currently looks like this:
I had to fix:
get_accdrv_active_device_id
not being exported from dbcsr, so I patched dbcsr locally. And another one about truncated lines due to CPABORT calls, which is just trimmed a bit.make install
target: Install cp2k binaries #41I create the following environment file in the parent folder where I had cloned both cp2k and dbcsr:
$ spack -e . install -v ... [+] /home/harmen/spack/opt/spack/linux-ubuntu20.04-zen2/gcc-9.3.0/cp2k-cmake-develop-aytliij634jsqmkoybvbefdm6qojl3dy
and it works just fine. I wonder if the spack package would get a lot shorter after migration to cmake.
I'm just leaving this here, cause I don't know where else to share it.
The text was updated successfully, but these errors were encountered: