"tools/git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "9f0b01caf6aefed861ef4c3eb197c09362d26b32"
Commit 47de00ac authored by rusty1s's avatar rusty1s
Browse files

build conda [ci skip]

parent d53e3ace
...@@ -10,21 +10,25 @@ jobs: ...@@ -10,21 +10,25 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-latest] #[ubuntu-18.04, macos-10.15, windows-latest] os: [ubuntu-18.04, macos-10.15, windows-2019]
python-version: [3.6, 3.7, 3.8, 3.9] python-version: ['3.7', '3.8', '3.9', '3.10']
torch-version: [1.9.0, 1.10.0] torch-version: [1.10.0, 1.11.0]
cuda-version: ['cu113'] #['cpu', 'cu102', 'cu111', 'cu113'] cuda-version: ['cpu', 'cu102', 'cu113', 'cu115']
exclude: exclude:
- torch-version: 1.9.0
cuda-version: 'cu113'
- torch-version: 1.10.0 - torch-version: 1.10.0
cuda-version: 'cu111' cuda-version: 'cuda115'
- os: macos-10.15 - os: windows-2019
torch-version: 1.11.0
cuda-version: 'cu102' cuda-version: 'cu102'
- os: windows-2019
torch-version: 1.11.0
cuda-version: 'cu115'
- os: macos-10.15 - os: macos-10.15
cuda-version: 'cu111' cuda-version: 'cu102'
- os: macos-10.15 - os: macos-10.15
cuda-version: 'cu113' cuda-version: 'cu113'
- os: macos-10.15
cuda-version: 'cu115'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
......
``` ```
./build_conda.sh 3.9 1.9.0 cu111 # python, pytorch and cuda version ./build_conda.sh 3.9 1.11.0 cu113 # python, pytorch and cuda version
``` ```
...@@ -10,6 +10,9 @@ if [ "${CUDA_VERSION}" = "cpu" ]; then ...@@ -10,6 +10,9 @@ if [ "${CUDA_VERSION}" = "cpu" ]; then
export CONDA_CUDATOOLKIT_CONSTRAINT="cpuonly # [not osx]" export CONDA_CUDATOOLKIT_CONSTRAINT="cpuonly # [not osx]"
else else
case $CUDA_VERSION in case $CUDA_VERSION in
cu115)
export CONDA_CUDATOOLKIT_CONSTRAINT="cudatoolkit==11.3.*"
;;
cu113) cu113)
export CONDA_CUDATOOLKIT_CONSTRAINT="cudatoolkit==11.3.*" export CONDA_CUDATOOLKIT_CONSTRAINT="cudatoolkit==11.3.*"
;; ;;
...@@ -33,4 +36,4 @@ echo "PyTorch $TORCH_VERSION+$CUDA_VERSION" ...@@ -33,4 +36,4 @@ echo "PyTorch $TORCH_VERSION+$CUDA_VERSION"
echo "- $CONDA_PYTORCH_CONSTRAINT" echo "- $CONDA_PYTORCH_CONSTRAINT"
echo "- $CONDA_CUDATOOLKIT_CONSTRAINT" echo "- $CONDA_CUDATOOLKIT_CONSTRAINT"
conda build . -c nvidia -c pytorch -c default -c conda-forge --output-folder "$HOME/conda-bld" conda build . -c pytorch -c default --output-folder "$HOME/conda-bld"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment