Skip to content

Commit

Permalink
[release] SIRIUS v7.6.2 (#1052)
Browse files Browse the repository at this point in the history
* Bump version to 7.6.2

* Use find_dependency instead of find_package

* Set POLICY CMP0144 NEW by default.

---------

Co-authored-by: Mathieu Taillefumier <[email protected]>
  • Loading branch information
toxa81 and Mathieu Taillefumier authored Jan 30, 2025
1 parent dcbd7c5 commit 5603b70
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ include(CMakePackageConfigHelpers)
project(SIRIUS
DESCRIPTION "Domain specific library for electronic structure calculations"
HOMEPAGE_URL "https://github.com/electronic-structure/SIRIUS"
VERSION 7.6.1
VERSION 7.6.2
LANGUAGES CXX C)

# for CUDA_ARCHITECTURES
if(POLICY CMP0104)
cmake_policy(SET CMP0104 NEW)
endif()

cmake_policy(SET CMP0144 NEW)

# user variables
option(SIRIUS_CREATE_PYTHON_MODULE "create sirius Python module" OFF)
option(SIRIUS_CREATE_FORTRAN_BINDINGS "build Fortran bindings" ON)
Expand Down
44 changes: 22 additions & 22 deletions cmake/sirius_cxxConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ if(NOT TARGET sirius::sirius_cxx)
set(mode QUIET)
endif()

find_package(MPI ${mode} COMPONENTS CXX)
find_package(GSL ${mode})
find_package(LibXC 3.0.0 ${mode})
find_package(LibSPG ${mode})
find_package(HDF5 ${mode} C)
find_dependency(MPI ${mode} COMPONENTS CXX)
find_dependency(GSL ${mode})
find_dependency(LibXC 3.0.0 ${mode})
find_dependency(LibSPG ${mode})
find_dependency(HDF5 ${mode} C)
include("${CMAKE_CURRENT_LIST_DIR}/hdf5_target.cmake")
find_package(SpFFT 0.9.6 CONFIG ${mode})
find_package(SPLA 1.1.0 CONFIG ${mode})
find_package(costa CONFIG ${mode})
find_dependency(SpFFT 0.9.6 CONFIG ${mode})
find_dependency(SPLA 1.1.0 CONFIG ${mode})
find_dependency(costa CONFIG ${mode})

if(@SIRIUS_USE_OPENMP@)
find_package(OpenMP ${mode})
find_dependency(OpenMP ${mode})
endif()

if(@SIRIUS_USE_MKL@)
Expand All @@ -50,48 +50,48 @@ if(NOT TARGET sirius::sirius_cxx)
set(MKL_MPI "@MKL_MPI@")
find_dependency(MKL CONFIG)
elseif(@SIRIUS_USE_CRAY_LIBSCI@)
find_package(CRAY_LIBSCI ${mode})
find_dependency(CRAY_LIBSCI ${mode})
else()
find_package(LAPACK ${mode})
find_dependency(LAPACK ${mode})
if(@SIRIUS_USE_SCALAPACK@)
find_package(SCALAPACK ${mode}) # just sets scalapack_DIR
find_dependency(SCALAPACK ${mode}) # just sets scalapack_DIR
endif()
endif()

if(@SIRIUS_USE_ELPA@)
find_package(Elpa ${mode})
find_dependency(Elpa ${mode})
endif()

if(@SIRIUS_USE_DLAF@)
find_package(DLAF ${mode})
find_dependency(DLAF ${mode})
endif()

if(@SIRIUS_USE_MAGMA@)
find_package(MAGMA ${mode})
find_dependency(MAGMA ${mode})
endif()

if(@SIRIUS_USE_VDWXC@)
find_package(LibVDWXC 0.3.0 ${mode})
find_dependency(LibVDWXC 0.3.0 ${mode})
endif()

if(@SIRIUS_USE_CUDA@)
# TODO: propagate the passed `sm` flag
find_package(CUDA ${mode})
find_dependency(CUDA ${mode})
include("${CMAKE_CURRENT_LIST_DIR}/cudalibs_target.cmake")
endif()

if(@SIRIUS_USE_ROCM@)
find_package(hip CONFIG ${mode})
find_package(rocblas CONFIG ${mode})
find_package(rocsolver CONFIG ${mode})
find_dependency(hip CONFIG ${mode})
find_dependency(rocblas CONFIG ${mode})
find_dependency(rocsolver CONFIG ${mode})
endif()

if(@SIRIUS_USE_MEMORY_POOL@)
find_package(umpire ${mode})
find_dependency(umpire ${mode})
endif()

if(@SIRIUS_USE_PUGIXML@)
find_package(pugixml ${mode})
find_dependency(pugixml ${mode})
endif()

# Clean-up module path.
Expand Down
2 changes: 1 addition & 1 deletion doc/doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ PROJECT_NAME = "SIRIUS"
# control system is used.


PROJECT_NUMBER = "7.6.1"
PROJECT_NUMBER = "7.6.2"

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down

0 comments on commit 5603b70

Please sign in to comment.