@@ -488,7 +488,7 @@ stages:
488488 - stage : WindowsCUDABuilds
489489 dependsOn : []
490490 jobs :
491- - job : WindowsC
491+ - job : WindowsCUDABoth
492492 pool :
493493 name : ' onnxruntime-extensions-Win2022-GPU-A10'
494494 variables :
@@ -526,7 +526,8 @@ stages:
526526
527527 - script : |
528528 set CUDA_PATH=$(Agent.TempDirectory)\v11.8
529- call .\build.bat -T cuda="%CUDA_PATH%" -DOCOS_ENABLE_CTEST=ON -DOCOS_USE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=86 -DOCOS_ONNXRUNTIME_VERSION="$(ORT_VERSION)" -DONNXRUNTIME_PKG_DIR=.\onnxruntime-win-x64-gpu-$(ORT_VERSION)
529+ call .\build.bat -T cuda="%CUDA_PATH%" -DOCOS_ENABLE_CTEST=ON -DOCOS_USE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=70;86^
530+ -DOCOS_ONNXRUNTIME_VERSION="$(ORT_VERSION)" -DONNXRUNTIME_PKG_DIR=.\onnxruntime-win-x64-gpu-$(ORT_VERSION)
530531 displayName: build the customop library with onnxruntime
531532
532533 - script : |
@@ -547,7 +548,7 @@ stages:
547548 python -m pip install --upgrade setuptools pip
548549 python -m pip install numpy coloredlogs flatbuffers packaging protobuf sympy
549550 python -m pip install onnxruntime-gpu==$(ORT_VERSION)
550- python -m pip install -v --config-settings "ortx-user-option=use-cuda" .
551+ python -m pip install -v --config-settings "ortx-user-option=use-cuda,cuda_archs=70;86 " .
551552 displayName: Build and install onnxruntime-extensions CUDA package.
552553
553554 - script : |
@@ -665,7 +666,7 @@ stages:
665666 python3 -m pip install --upgrade pip; \
666667 python3 -m pip install --upgrade setuptools; \
667668 python3 -m pip install onnxruntime-gpu==$(ORT_VERSION); \
668- python3 -m pip install -v --config-settings " ortx-user-option=use-cuda" . ; \
669+ python3 -m pip install -v --config-settings ' ortx-user-option=use-cuda,cuda_archs=70;86' . ; \
669670 python3 -m pip install $(TORCH_VERSION) ; \
670671 python3 -m pip install -r requirements-dev.txt; \
671672 cd test && python -m pytest . --verbose; \
@@ -864,4 +865,4 @@ stages:
864865 -scheme OrtExtensionsUsage \
865866 -destination "platform=iOS Simulator,id=${ORT_EXTENSIONS_SIMULATOR_DEVICE_ID}" \
866867 test CODE_SIGNING_ALLOWED=NO
867- displayName: "Build and test OrtExtensionsUsage"
868+ displayName: "Build and test OrtExtensionsUsage"
0 commit comments