Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] added wheel build scripts #910

Merged
merged 13 commits into from
May 5, 2022
Prev Previous commit
[ci] polish wheel build scripts
  • Loading branch information
FrankLeeeee committed May 4, 2022
commit 8a82e23140f20684fdbd8236cb55cc99c99e1d15
3 changes: 3 additions & 0 deletions .github/workflows/release_bdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
# cub is for cuda 10.2
- name: Copy scripts and checkout
run: |
cp -r ./.github/workflows/scripts/* ./
ln -s /github/home/pip_wheels ./pip_wheels
git checkout $git_ref
wget https://github.com/NVIDIA/cub/archive/refs/tags/1.8.0.zip
unzip 1.8.0.zip
env:
git_ref: ${{ github.event.inputs.github_ref }}
- name: Build bdist wheel
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/scripts/build_colossalai_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ else
exit
fi

if [ $cuda_version == "10.2" ]
then
cp -r cub-1.8.0/cub/ colossalai/kernel/cuda_native/csrc/kernels/include/
fi

python setup.py bdist_wheel
mv ./dist/* ./all_dist
python setup.py clean
Expand Down