Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
7ad9bd14
Unverified
Commit
7ad9bd14
authored
Nov 23, 2022
by
Frank Lee
Committed by
GitHub
Nov 23, 2022
Browse files
[workflow] added conda cache and fixed no-compilation bug in release (#2005)
parent
6cd784ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
.github/workflows/release_bdist.yml
.github/workflows/release_bdist.yml
+12
-0
.github/workflows/scripts/build_colossalai_wheel.sh
.github/workflows/scripts/build_colossalai_wheel.sh
+4
-3
No files found.
.github/workflows/release_bdist.yml
View file @
7ad9bd14
...
@@ -64,9 +64,21 @@ jobs:
...
@@ -64,9 +64,21 @@ jobs:
-
name
:
Copy scripts and checkout
-
name
:
Copy scripts and checkout
run
:
|
run
:
|
cp -r ./.github/workflows/scripts/* ./
cp -r ./.github/workflows/scripts/* ./
# link the cache diretories to current path
ln -s /github/home/conda_pkgs ./conda_pkgs
ln -s /github/home/pip_wheels ./pip_wheels
ln -s /github/home/pip_wheels ./pip_wheels
# set the conda package path
echo pkgs_dirs:\n\t- $PWD/conda_pkgs > ~/.condarc
# set safe directory
git config --global --add safe.directory /__w/ColossalAI/ColossalAI
git config --global --add safe.directory /__w/ColossalAI/ColossalAI
# check out
git checkout $git_ref
git checkout $git_ref
# get cub package for cuda 10.2
wget https://github.com/NVIDIA/cub/archive/refs/tags/1.8.0.zip
wget https://github.com/NVIDIA/cub/archive/refs/tags/1.8.0.zip
unzip 1.8.0.zip
unzip 1.8.0.zip
env
:
env
:
...
...
.github/workflows/scripts/build_colossalai_wheel.sh
View file @
7ad9bd14
...
@@ -34,8 +34,9 @@ fi
...
@@ -34,8 +34,9 @@ fi
python setup.py bdist_wheel
python setup.py bdist_wheel
mv
./dist/
*
./all_dist
mv
./dist/
*
./all_dist
# must remove build to enable compilation for
# cuda extension in the next build
rm
-rf
./build
python setup.py clean
python setup.py clean
conda deactivate
conda deactivate
conda
env
remove
-n
$python_version
conda
env
remove
-n
$python_version
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment