Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ORTSRV nightly build #1440

Merged
merged 3 commits into from
Jul 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions onnxruntime/test/server/integration_tests/model_zoo_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ def __test_model(self, model_path, data_paths):
test_util.pb_response_validation(self, resp, os.path.join(test, 'response.pb'))

test_util.test_log('[{0}] GRPC testing ....'.format(model_path))
uri = ("{}:{}".format(self.server_ip, self.grpc_port))
with open(os.path.join(test, 'request.pb'), 'rb') as f:
request_payload = f.read()
with grpc.insecure_channel(uri) as channel:
stub = prediction_service_pb2_grpc.PredictionServiceStub(channel)
resp = stub.Predict(request_payload)
test_util.pb_response_validation(self, resp, os.path.join(test, 'response.pb'))
uri = ("{}:{}".format(self.server_ip, self.grpc_port))
with open(os.path.join(test, 'request.pb'), 'rb') as f:
request_payload = f.read()
with grpc.insecure_channel(uri) as channel:
stub = prediction_service_pb2_grpc.PredictionServiceStub(channel)
resp = stub.Predict(request_payload)
test_util.pb_response_validation(self, resp, os.path.join(test, 'response.pb'))
finally:
test_util.shutdown_server_app(server_app_proc, self.server_off_in_seconds)

Expand Down
6 changes: 2 additions & 4 deletions tools/ci_build/github/linux/server_run_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ done

if [ $BUILD_DEVICE = "gpu" ]; then
_CUDNN_VERSION=$(echo $CUDNN_VERSION | cut -d. -f1-2)
python3 $SCRIPT_DIR/../../build.py --build_dir /home/onnxruntimedev \
python3 $SCRIPT_DIR/../../build.py --build_dir /build \
--config Debug Release \
--skip_submodule_sync --enable_onnx_tests \
--parallel --build_shared_lib \
--use_cuda --use_openmp \
--cuda_home /usr/local/cuda \
--cudnn_home /usr/local/cudnn-$_CUDNN_VERSION/cuda --build_shared_lib $BUILD_EXTR_PAR
/home/onnxruntimedev/Release/onnx_test_runner -e cuda /data/onnx
else
python3 $SCRIPT_DIR/../../build.py --build_dir /home/onnxruntimedev \
python3 $SCRIPT_DIR/../../build.py --build_dir /build \
--skip_submodule_sync \
--parallel $BUILD_EXTR_PAR
# /home/onnxruntimedev/Release/onnx_test_runner /data/onnx
fi