-
Notifications
You must be signed in to change notification settings - Fork 43
47 lines (42 loc) · 1.49 KB
/
mscclpp-lang.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
44
45
46
47
name: MSCCLPPLang
on:
pull_request:
branches:
- main
- release/*
jobs:
compare-diffs:
runs-on: 'ubuntu-latest'
container:
image: ghcr.io/microsoft/mscclpp/mscclpp:base-dev-${{ matrix.version }}
strategy:
fail-fast: false
matrix:
version: [ 'cuda11.8', 'cuda12.2' ]
steps:
- uses: actions/checkout@v4
- name: Install mscclpp
run: |
CMAKE_ARGS="-DMSCCLPP_BYPASS_GPU_CHECK=ON -DMSCCLPP_USE_CUDA=ON" pip3 install .
- name: Copy test script/config to temp directory
run: |
cp python/test/generate_mscclpp_lang_test_result.py $RUNNER_TEMP/
cp python/test/configs/mscclpp_lang_test_config.json $RUNNER_TEMP/
- name: generate outputs
run: |
python3 $RUNNER_TEMP/generate_test_results.py examples/mscclang/ $RUNNER_TEMP/test-config.json $RUNNER_TEMP/tests/pr-outputs/
# - name: Checkout main branch
# uses: actions/checkout@v4
# if: github.event_name == 'pull_request' || github.event_name == 'push'
# with:
# ref: main
# - name: Install msccl and dependencies
# run: |
# pip install --upgrade pip
# pip install -r requirements.txt
# - name: generate outputs
# run: |
# python $RUNNER_TEMP/generate_test_results.py examples/mscclang/ $RUNNER_TEMP/test-config.json $RUNNER_TEMP/tests/main-outputs/
# - name: Compare outputs
# run: |
# diff -rw $RUNNER_TEMP/tests/main-outputs/ $RUNNER_TEMP/tests/pr-outputs/