forked from flagos-ai/FlagCX
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.61 KB
/
Copy pathunittest-core.yml
File metadata and controls
59 lines (53 loc) · 1.61 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "Unit Tests: core"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unittest-core:
runs-on: [self-hosted, cx-build]
container:
image: localhost:5000/flagscale:cuda12.8.1-cudnn9.7.1-python3.12-torch2.7.0-time2507111538
options: --gpus all --privileged --ipc=host --ulimit memlock=-1 --ulimit stack=67108864
steps:
- name: Checkout Code
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
ssh-strict: true
ssh-user: git
persist-credentials: true
clean: true
sparse-checkout-cone-mode: true
fetch-tags: false
show-progress: true
lfs: false
submodules: true
set-safe-directory: true
- name: Build Google Test
run: |
cd /__w/FlagCX/FlagCX/third-party/googletest
mkdir -p build
cd build
cmake ..
make -j$(nproc)
- name: Build FlagCX
run: |
cd /__w/FlagCX/FlagCX
export MPI_HOME=/usr/local/mpi
make -j$(nproc) USE_NVIDIA=1
- name: Build core unit tests
run: |
cd /__w/FlagCX/FlagCX/test/unittest/core
export MPI_HOME=/usr/local/mpi
make -j$(nproc)
- name: Run core unit tests
run: |
cd /__w/FlagCX/FlagCX/test/unittest/core
export MPI_HOME=/usr/local/mpi
export LD_LIBRARY_PATH=/__w/FlagCX/FlagCX/build/lib:$LD_LIBRARY_PATH
make run-unit