forked from deepmodeling/deepmd-kit
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge devel into master (deepmodeling#2871)
- Loading branch information
Showing
286 changed files
with
50,281 additions
and
8,806 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
on: | ||
pull_request_target: | ||
types: | ||
- "labeled" | ||
name: Test CUDA | ||
jobs: | ||
remove_label: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
# so one can re-trigger the workflow without manually removing the label | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'deepmodeling' && github.event.label.name == 'Test CUDA' | ||
steps: | ||
- uses: actions-ecosystem/action-remove-labels@v1 | ||
with: | ||
labels: Test CUDA | ||
number: ${{ github.event.pull_request.number }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
on: | ||
# manually trigger | ||
workflow_dispatch: | ||
pull_request: | ||
types: | ||
- "labeled" | ||
name: Test CUDA | ||
jobs: | ||
test_cuda: | ||
name: Test Python and C++ on CUDA | ||
runs-on: nvidia | ||
if: github.repository_owner == 'deepmodeling' && github.event.label.name == 'Test CUDA' || github.event_name == 'workflow_dispatch' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
- name: Setup MPI | ||
uses: mpi4py/setup-mpi@v1 | ||
with: | ||
mpi: mpich | ||
- uses: lukka/get-cmake@latest | ||
- run: | | ||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb \ | ||
&& sudo dpkg -i cuda-keyring_1.0-1_all.deb \ | ||
&& sudo apt-get update \ | ||
&& sudo apt-get -y install cuda-11-8 libcudnn8=8.9.5.*-1+cuda11.8 | ||
- run: python -m pip install -U "pip>=21.3.1,!=23.0.0" | ||
- run: pip install -v -e .[gpu,test,lmp,cu11] "ase @ https://github.com/rosswhitfield/ase/archive/edd03571aff6944b77b4a4b055239f3c3e4eeb66.zip" | ||
env: | ||
DP_BUILD_TESTING: 1 | ||
DP_VARIANT: cuda | ||
CUDA_PATH: /usr/local/cuda-11.8 | ||
- run: dp --version | ||
- run: pytest -s --cov=deepmd --cov=deepmd_cli source/tests --durations=0 | ||
- run: source/install/test_cc_local.sh | ||
env: | ||
OMP_NUM_THREADS: 1 | ||
TF_INTRA_OP_PARALLELISM_THREADS: 1 | ||
TF_INTER_OP_PARALLELISM_THREADS: 1 | ||
LMP_CXX11_ABI_0: 1 | ||
CMAKE_GENERATOR: Ninja | ||
DP_VARIANT: cuda | ||
DP_USE_MPICH2: 1 | ||
CUDA_PATH: /usr/local/cuda-11.8 | ||
- run: | | ||
export LD_LIBRARY_PATH=${{ github.workspace }}/dp_test/lib:$CUDA_PATH/lib64:$LD_LIBRARY_PATH | ||
export PATH=${{ github.workspace }}/dp_test/bin:$PATH | ||
pytest -s --cov=deepmd source/lmp/tests | ||
pytest -s --cov=deepmd source/ipi/tests | ||
env: | ||
OMP_NUM_THREADS: 1 | ||
TF_INTRA_OP_PARALLELISM_THREADS: 1 | ||
TF_INTER_OP_PARALLELISM_THREADS: 1 | ||
LAMMPS_PLUGIN_PATH: ${{ github.workspace }}/dp_test/lib/deepmd_lmp | ||
CUDA_PATH: /usr/local/cuda-11.8 | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
gcov: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ _skbuild | |
deepmd_kit.egg-info/ | ||
dist | ||
.eggs | ||
_version.py | ||
/deepmd/_version.py | ||
venv* | ||
.vscode/** | ||
_build | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.