Skip to content

Commit 8064771

Browse files
authored
[release] update version (#4332)
* [release] update version * [devops] hotfix cuda extension building * [devops] pytest ignore useless folders
1 parent 75c5389 commit 8064771

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

.github/workflows/compatiblity_test_on_dispatch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
ssh-key: ${{ secrets.SSH_KEY_FOR_CI }}
7373
- name: Download cub for CUDA 10.2
7474
run: |
75-
CUDA_VERSION=$(cat $CUDA_HOME/version.txt | grep "CUDA Version" | awk '{print $NF}' | cut -d. -f1,2)
75+
CUDA_VERSION=$(nvcc -V | awk -F ',| ' '/release/{print $6}')
7676
7777
# check if it is CUDA 10.2
7878
# download cub

.github/workflows/compatiblity_test_on_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
ssh-key: ${{ secrets.SSH_KEY_FOR_CI }}
6767
- name: Download cub for CUDA 10.2
6868
run: |
69-
CUDA_VERSION=$(cat $CUDA_HOME/version.txt | grep "CUDA Version" | awk '{print $NF}' | cut -d. -f1,2)
69+
CUDA_VERSION=$(nvcc -V | awk -F ',| ' '/release/{print $6}')
7070
7171
# check if it is CUDA 10.2
7272
# download cub

.github/workflows/compatiblity_test_on_schedule.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ jobs:
6161
with:
6262
ssh-key: ${{ secrets.SSH_KEY_FOR_CI }}
6363

64+
- name: Download cub for CUDA 10.2
65+
run: |
66+
CUDA_VERSION=$(nvcc -V | awk -F ',| ' '/release/{print $6}')
67+
68+
# check if it is CUDA 10.2
69+
# download cub
70+
if [ "$CUDA_VERSION" = "10.2" ]; then
71+
wget https://github.com/NVIDIA/cub/archive/refs/tags/1.8.0.zip
72+
unzip 1.8.0.zip
73+
cp -r cub-1.8.0/cub/ colossalai/kernel/cuda_native/csrc/kernels/include/
74+
fi
75+
6476
- name: Install Colossal-AI
6577
run: |
6678
pip install -v --no-cache-dir .

.github/workflows/cuda_ext_check_before_merge.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ jobs:
3737
- name: Install PyTorch
3838
run: eval ${{ matrix.build.torch_command }}
3939

40+
- name: Download cub for CUDA 10.2
41+
run: |
42+
CUDA_VERSION=$(nvcc -V | awk -F ',| ' '/release/{print $6}')
43+
44+
# check if it is CUDA 10.2
45+
# download cub
46+
if [ "$CUDA_VERSION" = "10.2" ]; then
47+
wget https://github.com/NVIDIA/cub/archive/refs/tags/1.8.0.zip
48+
unzip 1.8.0.zip
49+
cp -r cub-1.8.0/cub/ colossalai/kernel/cuda_native/csrc/kernels/include/
50+
fi
51+
4052
- name: Build
4153
run: |
4254
CUDA_EXT=1 pip install -v .

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ markers =
44
gpu: tests which requires a single GPU
55
dist: tests which are run in a multi-GPU or multi-machine environment
66
experiment: tests for experimental features
7+
addopts = --ignore=tests/test_analyzer --ignore=tests/test_auto_parallel --ignore=tests/test_autochunk

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.0
1+
0.3.1

0 commit comments

Comments
 (0)