Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ if(ENABLE_RAPIDJSON)
include(FetchContent)
FetchContent_Declare(
rapidjson
GIT_REPOSITORY https://github.com/Tencent/rapidjson.git
GIT_TAG "origin/master"
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE)
URL https://codeload.github.com/Tencent/rapidjson/tar.gz/24b5e7a8b27f42fa16b96fc70aade9106cf7102f
)
set(RAPIDJSON_BUILD_TESTS
OFF
CACHE INTERNAL "")
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindCereal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if(NOT CEREAL_INCLUDE_DIR)
include(FetchContent)
FetchContent_Declare(
cereal
URL https://github.com/USCiLab/cereal/archive/refs/tags/v1.3.0.tar.gz
URL https://codeload.github.com/USCiLab/cereal/tar.gz/22a1b369f39be918ca79206a83c4facd759f9105
)
FetchContent_Populate(cereal)
set(CEREAL_INCLUDE_DIR ${cereal_SOURCE_DIR}/include)
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindLibComm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(NOT LIBCOMM_DIR)
include(FetchContent)
FetchContent_Declare(
LibComm
URL https://github.com/abacusmodeling/LibComm/archive/refs/tags/v0.1.1.tar.gz
URL https://codeload.github.com/abacusmodeling/LibComm/tar.gz/965bf90713ce5598bae4fd957d417065f77ceb42
)
FetchContent_Populate(LibComm)
set(LIBCOMM_DIR ${libcomm_SOURCE_DIR})
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindLibRI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(NOT LIBRI_DIR)
include(FetchContent)
FetchContent_Declare(
LibRI
URL https://github.com/abacusmodeling/LibRI/archive/refs/tags/v0.2.1.1.tar.gz
URL https://codeload.github.com/abacusmodeling/LibRI/tar.gz/e6d78e0504693d2a464c72b87d3240ce183fd881
)
FetchContent_Populate(LibRI)
set(LIBRI_DIR ${libri_SOURCE_DIR})
Expand Down
24 changes: 12 additions & 12 deletions toolchain/scripts/package_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,22 @@ libnpy_main_sha256="43452a4db1e8c1df606c64376ea1e32789124051d7640e7e4e8518ab4f0f
libnpy_alt_ver="1.0.1"
libnpy_alt_sha256="43452a4db1e8c1df606c64376ea1e32789124051d7640e7e4e8518ab4f0fba44"

# Master branch packages (no fixed versions)
cereal_ver="master"
cereal_sha256="--no-checksum"
# Branch packages cut with specific commits
cereal_ver="22a1b369f39be918ca79206a83c4facd759f9105"
cereal_sha256="ca3d544456f93ea3176eab85e2e7892063af45b20467bb4ad9c1c51068e521c6"

libcomm_ver="master"
libcomm_sha256="--no-checksum"
libcomm_ver="965bf90713ce5598bae4fd957d417065f77ceb42"
libcomm_sha256="1d1626b833c51efa7ab844af140e022e063ea64389c9e47b168c24fcc05b7323"

libri_ver="master"
libri_sha256="--no-checksum"
libri_ver="e6d78e0504693d2a464c72b87d3240ce183fd881"
libri_sha256="ead14f05b645f3d028e09f715abaa0e8fca3d1d6d61804239c4858b33397286a"

rapidjson_ver="master"
rapidjson_sha256="--no-checksum"
rapidjson_ver="24b5e7a8b27f42fa16b96fc70aade9106cf7102f"
rapidjson_sha256="2d2601a82d2d3b7e143a3c8d43ef616671391034bc46891a9816b79cf2d3e7a8"

# NEP (Neural Evolution Potential) - CPU version
nep_ver="main"
nep_sha256="--no-checksum"
nep_ver="629ec5dda3127e046fde3f8082aedfca8deb915e"
nep_sha256="57803d2e98ca5c8ced09e3e8d21ac1a0dbd61dda1977997864195f8c54b9b1f9"

# =============================================================================
# Package Variable Loading Function
Expand Down Expand Up @@ -265,4 +265,4 @@ load_package_vars() {
return 1
;;
esac
}
}
41 changes: 0 additions & 41 deletions toolchain/scripts/patches/6190.patch

This file was deleted.

8 changes: 2 additions & 6 deletions toolchain/scripts/stage4/install_cereal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ case "$with_cereal" in
#pkg_install_dir="${HOME}/lib/cereal/${cereal_ver}"
install_lock_file="$pkg_install_dir/install_successful"
# url construction rules:
# - Branch names (master, main, develop) without v prefix
# - Commit hash (40 hex chars) without v prefix
# - Version tags (e.g., 1.0.0) with v prefix
if [[ "${cereal_ver}" =~ ^(master|main|develop)$ ]]; then
if [[ "${cereal_ver}" =~ ^[0-9a-f]{40}$ ]]; then
url="https://codeload.github.com/USCiLab/cereal/tar.gz/${cereal_ver}"
else
url="https://codeload.github.com/USCiLab/cereal/tar.gz/v${cereal_ver}"
Expand All @@ -72,10 +72,6 @@ case "$with_cereal" in
echo "Installing from scratch into ${pkg_install_dir}"
[ -d $dirname ] && rm -rf $dirname
tar -xzf $filename
#unzip -q $filename
# apply patch files for libri installation in issue #6190, Kai Luo
# echo ${SCRIPT_DIR}
cd $dirname && pwd && patch -p1 < ${SCRIPT_DIR}/patches/6190.patch
cd "${BUILDDIR}"
#
mkdir -p "${pkg_install_dir}"
Expand Down
2 changes: 1 addition & 1 deletion toolchain/scripts/stage4/install_libcomm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ case "$with_libcomm" in
# url construction rules:
# - Branch names (master, main, develop) without v prefix
# - Version tags (e.g., 1.0.0) with v prefix
if [[ "${libcomm_ver}" =~ ^(master|main|develop)$ ]]; then
if [[ "${libcomm_ver}" =~ ^[0-9a-f]{40}$ ]]; then
url="https://codeload.github.com/abacusmodeling/LibComm/tar.gz/${libcomm_ver}"
else
url="https://codeload.github.com/abacusmodeling/LibComm/tar.gz/v${libcomm_ver}"
Expand Down
2 changes: 1 addition & 1 deletion toolchain/scripts/stage4/install_libri.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ case "$with_libri" in
# url construction rules:
# - Branch names (master, main, develop) without v prefix
# - Version tags (e.g., 1.0.0) with v prefix
if [[ "${libri_ver}" =~ ^(master|main|develop)$ ]]; then
if [[ "${libri_ver}" =~ ^[0-9a-f]{40}$ ]]; then
url="https://codeload.github.com/abacusmodeling/LibRI/tar.gz/${libri_ver}"
else
url="https://codeload.github.com/abacusmodeling/LibRI/tar.gz/v${libri_ver}"
Expand Down
2 changes: 1 addition & 1 deletion toolchain/scripts/stage4/install_rapidjson.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ case "$with_rapidjson" in
# url construction rules:
# - Branch names (master, main, develop) without v prefix
# - Version tags (e.g., 1.0.0) with v prefix
if [[ "${rapidjson_ver}" =~ ^(master|main|develop)$ ]]; then
if [[ "${rapidjson_ver}" =~ ^[0-9a-f]{40}$ ]]; then
url="https://codeload.github.com/Tencent/rapidjson/tar.gz/${rapidjson_ver}"
else
url="https://codeload.github.com/Tencent/rapidjson/tar.gz/v${rapidjson_ver}"
Expand Down
Loading