forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 136
43 lines (36 loc) · 939 Bytes
/
cuda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CUDA Test
on:
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test on CUDA Build
runs-on: nvidia
if: github.repository_owner == 'deepmodeling'
container:
image: ghcr.io/deepmodeling/abacus-cuda
volumes:
- /tmp/ccache:/github/home/.ccache
options: --gpus all
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Ccache
run: |
sudo apt-get update
sudo apt-get install -y ccache
- name: Build
run: |
nvidia-smi
cmake -B build -DUSE_CUDA=ON -DBUILD_TESTING=ON
cmake --build build -j4
cmake --install build
- name: Test
run: |
cd tests/integrate
bash Autotest.sh -n 2 -f CASES_GPU.txt