-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
# Parse ARGs | ||
for ARGUMENT in "$@" | ||
do | ||
KEY=$(echo $ARGUMENT | cut -f1 -d=) | ||
VALUE=$(echo $ARGUMENT | cut -f2 -d=) | ||
case "$KEY" in | ||
CI_SETUP_CMAKE_ARGS) SHA=${VALUE} ;; | ||
PY) PY=${VALUE} ;; | ||
*) | ||
esac | ||
done | ||
|
||
source /home/dev/miniconda/etc/profile.d/conda.sh | ||
conda activate $PY | ||
|
||
cd taichi | ||
python3 -m pip install --user -r requirements_dev.txt | ||
python3 -m pip install torch==1.9.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html | ||
TAICHI_CMAKE_ARGS=$CI_SETUP_CMAKE_ARGS python3 setup.py install --user | ||
|
||
export TI_IN_DOCKER=true | ||
|
||
ti diagnose | ||
ti test -vr2 -t2 -k "not ndarray and not torch" | ||
ti test -vr2 -t1 -k "ndarray or torch" |