forked from lammps/lammps
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request lammps#4439 from akohlmey/arm-cpu-unittest
Add Workflow for running ctest on Linuix with ARM64 CPU
- Loading branch information
Showing
18 changed files
with
98 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# GitHub action to build LAMMPS on Linux with ARM64 and run standard unit tests | ||
name: "Unittest for Linux on ARM64" | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
|
||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{github.event_name == 'pull_request'}} | ||
|
||
jobs: | ||
build: | ||
name: Linux ARM64 Unit Test | ||
if: ${{ github.repository == 'lammps/lammps' }} | ||
runs-on: ubuntu-22.04-arm | ||
env: | ||
CCACHE_DIR: ${{ github.workspace }}/.ccache | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Install extra packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y ccache \ | ||
libeigen3-dev \ | ||
libcurl4-openssl-dev \ | ||
mold \ | ||
ninja-build \ | ||
python3-dev | ||
- name: Create Build Environment | ||
run: mkdir build | ||
|
||
- name: Set up ccache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: linux-unit-ccache-${{ github.sha }} | ||
restore-keys: linux-unit-ccache- | ||
|
||
- name: Building LAMMPS via CMake | ||
shell: bash | ||
run: | | ||
ccache -z | ||
python3 -m venv linuxenv | ||
source linuxenv/bin/activate | ||
python3 -m pip install numpy | ||
python3 -m pip install pyyaml | ||
cmake -S cmake -B build \ | ||
-C cmake/presets/gcc.cmake \ | ||
-C cmake/presets/most.cmake \ | ||
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \ | ||
-D CMAKE_C_COMPILER_LAUNCHER=ccache \ | ||
-D BUILD_SHARED_LIBS=on \ | ||
-D DOWNLOAD_POTENTIALS=off \ | ||
-D ENABLE_TESTING=on \ | ||
-D MLIAP_ENABLE_ACE=on \ | ||
-D MLIAP_ENABLE_PYTHON=off \ | ||
-D PKG_MANIFOLD=on \ | ||
-D PKG_ML-PACE=on \ | ||
-D PKG_ML-RANN=on \ | ||
-D PKG_RHEO=on \ | ||
-D PKG_PTM=on \ | ||
-D PKG_PYTHON=on \ | ||
-D PKG_QTB=on \ | ||
-D PKG_SMTBQ=on \ | ||
-G Ninja | ||
cmake --build build | ||
ccache -s | ||
- name: Run Tests | ||
working-directory: build | ||
shell: bash | ||
run: ctest -V -LE unstable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
unittest/force-styles/tests/dihedral-cosine_squared_restricted.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
unittest/force-styles/tests/fix-timestep-wall_harmonic_const.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
unittest/force-styles/tests/fix-timestep-wall_lepton_const.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
unittest/force-styles/tests/fix-timestep-wall_table_linear.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
unittest/force-styles/tests/fix-timestep-wall_table_spline.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters