Skip to content

Fix: Fix toolchain installation of Cereal#7116

Merged
mohanchen merged 1 commit intodeepmodeling:developfrom
Flying-dragon-boxing:260323-cereal
Mar 23, 2026
Merged

Fix: Fix toolchain installation of Cereal#7116
mohanchen merged 1 commit intodeepmodeling:developfrom
Flying-dragon-boxing:260323-cereal

Conversation

@Flying-dragon-boxing
Copy link
Copy Markdown
Collaborator

Currently when installing Cereal using ABACUS toolchain, we apply a patch to Cereal's code in order to solve a compilation problem. The file where this patch apply has changed so the patch doesn't work any longer.
cmake/FindCereal.cmake uses a forked version of Cereal (MCresearch/cereal), making the cereal version in ABACUS compilation stable. This PR applies the practice above to the toolchain.

Copilot AI review requested due to automatic review settings March 23, 2026 06:40
@Flying-dragon-boxing
Copy link
Copy Markdown
Collaborator Author

Creating a CI/CD for the toolchain might be a good idea.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ABACUS toolchain’s Cereal download source to match the fork already used by the CMake build logic, restoring the ability to apply the existing patch during toolchain installation.

Changes:

  • Switch Cereal tarball download URLs from USCiLab/cereal to MCresearch/cereal.
  • Keep existing version/tag URL selection logic (branch names vs v-prefixed tags).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Flying-dragon-boxing
Copy link
Copy Markdown
Collaborator Author

Pull request overview

This PR updates the ABACUS toolchain’s Cereal download source to match the fork already used by the CMake build logic, restoring the ability to apply the existing patch during toolchain installation.

Changes:

  • Switch Cereal tarball download URLs from USCiLab/cereal to MCresearch/cereal.
  • Keep existing version/tag URL selection logic (branch names vs v-prefixed tags).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Shut up

@QuantumMisaka
Copy link
Copy Markdown
Collaborator

@Flying-dragon-boxing Thanks for your fix!
I'm considering not using patch, could you please check is this patch still need for ABACUS installation on Intel-OneAPI >2025.2? Thanks !

@Flying-dragon-boxing
Copy link
Copy Markdown
Collaborator Author

@Flying-dragon-boxing Thanks for your fix! I'm considering not using patch, could you please check is this patch still need for ABACUS installation on Intel-OneAPI >2025.2? Thanks !

I'll check this out soon. Still, I think it's not a good idea that different routes for installing Cereal use different logics.

@Flying-dragon-boxing
Copy link
Copy Markdown
Collaborator Author

Flying-dragon-boxing commented Mar 23, 2026

@Flying-dragon-boxing Thanks for your fix! I'm considering not using patch, could you please check is this patch still need for ABACUS installation on Intel-OneAPI >2025.2? Thanks

It does compile with the upstream cereal after removing the patch

Copy link
Copy Markdown
Collaborator

@mohanchen mohanchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mohanchen mohanchen merged commit c00074a into deepmodeling:develop Mar 23, 2026
19 checks passed
@mohanchen mohanchen added Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS Refactor Refactor ABACUS codes Interfaces Interfaces with other packages labels Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS Interfaces Interfaces with other packages Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants