Minor fixes to CI definitions (#80)

* Align win gpu ci parameters with vsts definition

* Fix linux CI script to avoid docker name conflict
This commit is contained in:
Raymond Yang 2018-12-03 17:35:23 -08:00 committed by GitHub
parent 47a6992e1b
commit 1e59b6f1c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -87,7 +87,7 @@ jobs:
- task: BatchScript@1
inputs:
filename: build.bat
arguments: ' --enable_onnx_tests --use_cuda --cuda_home="C:\local\cuda-9.1.85-windows10-x64-0" --cudnn_home="C:\local\cudnn-9.1-windows10-x64-v7.1\cuda"'
arguments: ' --use_cuda --cuda_home="C:\local\cuda-9.1.85-windows10-x64-0" --cudnn_home="C:\local\cudnn-9.1-windows10-x64-v7.1\cuda"'
workingFolder: "$(Build.SourcesDirectory)"
- task: CmdLine@1

View file

@ -35,7 +35,7 @@ fi
set +e
if [ $BUILD_DEVICE = "cpu" ]; then
docker rm -f $HOSTNAME || true
docker rm -f "onnxruntime-$BUILD_DEVICE" || true
docker run -h $HOSTNAME \
--rm -e AZURE_BLOB_KEY \
--name "onnxruntime-$BUILD_DEVICE" \
@ -45,6 +45,7 @@ if [ $BUILD_DEVICE = "cpu" ]; then
/bin/bash /onnxruntime_src/tools/ci_build/github/linux/run_build.sh \
-d $BUILD_DEVICE -x "$BUILD_EXTR_PAR" &
else
docker rm -f "onnxruntime-$BUILD_DEVICE" || true
nvidia-docker run --rm -h $HOSTNAME \
--rm -e AZURE_BLOB_KEY \
--name "onnxruntime-$BUILD_DEVICE" \