Skip to content

Commit

Permalink
cp2k v2024.1 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
timostrunk authored Jan 4, 2024
1 parent 2f93b7b commit 8a63e92
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
28 changes: 24 additions & 4 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,38 @@ else
CP2K_USE_MPI=ON
CP2K_VERSION=psmp
fi

export PKG_CONFIG_PATH=$PREFIX/lib:$PKG_CONFIG_PATH

mkdir -p build_dbcsr
pushd build_dbcsr

cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_FIND_FRAMEWORK=NEVER \
-DCMAKE_FIND_APPBUNDLE=NEVER \
-DUSE_MPI=$CP2K_USE_MPI \
-DUSE_SMM=libxsmm \
${CMAKE_ARGS} \
../exts/dbcsr

cmake --build . --config Release -j 2
make install

popd #build_dbcsr

mkdir -p build
pushd build

export PKG_CONFIG_PATH=$PREFIX/lib:$PKG_CONFIG_PATH
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_FIND_FRAMEWORK=NEVER \
-DCMAKE_FIND_APPBUNDLE=NEVER \
-DCP2K_ENABLE_REGTESTS=ON \
-DPython3_EXECUTABLE="$PYTHON" \
-DCP2K_BUILD_DBCSR=ON \
-DCP2K_BUILD_DBCSR=OFF \
-DCP2K_USE_MPI=$CP2K_USE_MPI \
-DCP2K_BLAS_VENDOR=$BLAS_VENDOR \
-DCP2K_SCALAPACK_VENDOR=$SCALAPACK_VENDOR \
Expand All @@ -58,7 +78,7 @@ export CP2K_DATA_DIR=$PWD/data

if [ "$CP2K_USE_MPI" == "ON" ]
then
python ./tools/regtesting/do_regtest.py cmake_build_cpu ${CP2K_VERSION} --smoketest --mpiexec 'mpiexec --bind-to none -mca plm isolated' --ompthreads 1
python ./tests/do_regtest.py local ${CP2K_VERSION} --smoketest --mpiexec 'mpiexec --bind-to none -mca plm isolated' --ompthreads 1
else
python ./tools/regtesting/do_regtest.py cmake_build_cpu ${CP2K_VERSION} --smoketest --ompthreads 2
python ./tests/do_regtest.py local ${CP2K_VERSION} --smoketest --ompthreads 2
fi
8 changes: 4 additions & 4 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "cp2k" %}
{% set version = "2023.2" %}
{% set version = "2024.1" %}

# Define build matrix for MPI vs. non-mpi
# ensure mpi is defined (needed for conda-smithy recipe-lint)
Expand All @@ -17,7 +17,7 @@ package:

source:
- url: https://github.com/{{ name }}/{{ name }}/releases/download/v{{ version }}/{{ name }}-{{ version }}.tar.bz2
sha256: adbcc903c1a78cba98f49fe6905a62b49f12e3dfd7cedea00616d1a5f50550db
sha256: a7abf149a278dfd5283dc592a2c4ae803b37d040df25d62a5e35af5c4557668f
patches:
- macosxtest.patch # [osx]
- url: https://github.com/cp2k/dbcsr/releases/download/v2.6.0/dbcsr-2.6.0.tar.gz
Expand All @@ -31,8 +31,8 @@ build:
# - nompi: osx issue introduced in 8.1, fixed in future 8.2
# - openmpi: runtime failures during test suite
skip: true # [not linux]
# For version 2023.2 the tests fail with segmentation fault with MKL and OpenMPI
# in line 452 of cp_basic_linalg.f, i.e.
# For version 2024.1 the tests fail with segmentation fault with MKL and OpenMPI
# in line 455 of cp_basic_linalg.f, i.e.
# CALL pdgemm(transa, transb, m, n, k, alpha, a, i_a, j_a, desca, b, i_b, j_b, &
# descb, beta, c, i_c, j_c, descc)
# (specific to scalapack MKL and tested as failing for MKL 2019 until 2024
Expand Down

0 comments on commit 8a63e92

Please # to comment.