mirror of https://github.com/hpcaitech/ColossalAI
[release] update version (#4332)
* [release] update version * [devops] hotfix cuda extension building * [devops] pytest ignore useless folderspull/4359/head v0.3.1
parent
75c5389037
commit
806477121d
|
@ -72,7 +72,7 @@ jobs:
|
||||||
ssh-key: ${{ secrets.SSH_KEY_FOR_CI }}
|
ssh-key: ${{ secrets.SSH_KEY_FOR_CI }}
|
||||||
- name: Download cub for CUDA 10.2
|
- name: Download cub for CUDA 10.2
|
||||||
run: |
|
run: |
|
||||||
CUDA_VERSION=$(cat $CUDA_HOME/version.txt | grep "CUDA Version" | awk '{print $NF}' | cut -d. -f1,2)
|
CUDA_VERSION=$(nvcc -V | awk -F ',| ' '/release/{print $6}')
|
||||||
|
|
||||||
# check if it is CUDA 10.2
|
# check if it is CUDA 10.2
|
||||||
# download cub
|
# download cub
|
||||||
|
|
|
@ -66,7 +66,7 @@ jobs:
|
||||||
ssh-key: ${{ secrets.SSH_KEY_FOR_CI }}
|
ssh-key: ${{ secrets.SSH_KEY_FOR_CI }}
|
||||||
- name: Download cub for CUDA 10.2
|
- name: Download cub for CUDA 10.2
|
||||||
run: |
|
run: |
|
||||||
CUDA_VERSION=$(cat $CUDA_HOME/version.txt | grep "CUDA Version" | awk '{print $NF}' | cut -d. -f1,2)
|
CUDA_VERSION=$(nvcc -V | awk -F ',| ' '/release/{print $6}')
|
||||||
|
|
||||||
# check if it is CUDA 10.2
|
# check if it is CUDA 10.2
|
||||||
# download cub
|
# download cub
|
||||||
|
|
|
@ -61,6 +61,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ssh-key: ${{ secrets.SSH_KEY_FOR_CI }}
|
ssh-key: ${{ secrets.SSH_KEY_FOR_CI }}
|
||||||
|
|
||||||
|
- name: Download cub for CUDA 10.2
|
||||||
|
run: |
|
||||||
|
CUDA_VERSION=$(nvcc -V | awk -F ',| ' '/release/{print $6}')
|
||||||
|
|
||||||
|
# check if it is CUDA 10.2
|
||||||
|
# download cub
|
||||||
|
if [ "$CUDA_VERSION" = "10.2" ]; then
|
||||||
|
wget https://github.com/NVIDIA/cub/archive/refs/tags/1.8.0.zip
|
||||||
|
unzip 1.8.0.zip
|
||||||
|
cp -r cub-1.8.0/cub/ colossalai/kernel/cuda_native/csrc/kernels/include/
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install Colossal-AI
|
- name: Install Colossal-AI
|
||||||
run: |
|
run: |
|
||||||
pip install -v --no-cache-dir .
|
pip install -v --no-cache-dir .
|
||||||
|
|
|
@ -37,6 +37,18 @@ jobs:
|
||||||
- name: Install PyTorch
|
- name: Install PyTorch
|
||||||
run: eval ${{ matrix.build.torch_command }}
|
run: eval ${{ matrix.build.torch_command }}
|
||||||
|
|
||||||
|
- name: Download cub for CUDA 10.2
|
||||||
|
run: |
|
||||||
|
CUDA_VERSION=$(nvcc -V | awk -F ',| ' '/release/{print $6}')
|
||||||
|
|
||||||
|
# check if it is CUDA 10.2
|
||||||
|
# download cub
|
||||||
|
if [ "$CUDA_VERSION" = "10.2" ]; then
|
||||||
|
wget https://github.com/NVIDIA/cub/archive/refs/tags/1.8.0.zip
|
||||||
|
unzip 1.8.0.zip
|
||||||
|
cp -r cub-1.8.0/cub/ colossalai/kernel/cuda_native/csrc/kernels/include/
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
CUDA_EXT=1 pip install -v .
|
CUDA_EXT=1 pip install -v .
|
||||||
|
|
|
@ -4,3 +4,4 @@ markers =
|
||||||
gpu: tests which requires a single GPU
|
gpu: tests which requires a single GPU
|
||||||
dist: tests which are run in a multi-GPU or multi-machine environment
|
dist: tests which are run in a multi-GPU or multi-machine environment
|
||||||
experiment: tests for experimental features
|
experiment: tests for experimental features
|
||||||
|
addopts = --ignore=tests/test_analyzer --ignore=tests/test_auto_parallel --ignore=tests/test_autochunk
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.3.0
|
0.3.1
|
||||||
|
|
Loading…
Reference in New Issue