Skip to content

Commit

Permalink
Minor fixes to CI definitions (#80)
Browse files Browse the repository at this point in the history
* Align win gpu ci parameters with vsts definition

* Fix linux CI script to avoid docker name conflict
  • Loading branch information
Raymond Yang authored Dec 4, 2018
1 parent 47a6992 commit 1e59b6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/ci_build/github/azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tools/ci_build/github/linux/run_dockerbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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" \
Expand Down

0 comments on commit 1e59b6f

Please sign in to comment.