Skip to content

Commit

Permalink
Revert "Using cuda11.8 container for ORT build" (#5367)
Browse files Browse the repository at this point in the history
This reverts commit 2ae64de.
  • Loading branch information
GuanLuo authored Feb 16, 2023
1 parent 097534f commit 9664319
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,15 +632,15 @@ def onnxruntime_cmake_args(images, library_paths):
]
else:
if target_platform() == 'windows':
if 'ort-base' in images:
if 'base' in images:
cargs.append(
cmake_backend_arg('onnxruntime', 'TRITON_BUILD_CONTAINER',
None, images['ort-base']))
None, images['base']))
else:
if 'ort-base' in images:
if 'base' in images:
cargs.append(
cmake_backend_arg('onnxruntime', 'TRITON_BUILD_CONTAINER',
None, images['ort-base']))
None, images['base']))
else:
cargs.append(
cmake_backend_arg('onnxruntime',
Expand Down Expand Up @@ -1036,7 +1036,6 @@ def dockerfile_prepare_container_linux(argmap, backends, enable_gpu,
if 'onnxruntime' in backends:
df += '''
ENV LD_LIBRARY_PATH /opt/tritonserver/backends/onnxruntime:${LD_LIBRARY_PATH}
ENV LD_LIBRARY_PATH /usr/local/cuda-11.8/lib64:${LD_LIBRARY_PATH}
'''

backend_dependencies = ""
Expand Down Expand Up @@ -1108,10 +1107,6 @@ def dockerfile_prepare_container_linux(argmap, backends, enable_gpu,

if enable_gpu:
df += install_dcgm_libraries(argmap['DCGM_VERSION'], target_machine)
# This is temporary solution to support 23.01
df += '''
RUN apt-get update && apt-get install -y libcufft-11-8
'''
df += '''
# Extra defensive wiring for CUDA Compat lib
RUN ln -sf ${_CUDA_COMPAT_PATH}/lib.real ${_CUDA_COMPAT_PATH}/lib \
Expand Down Expand Up @@ -2135,12 +2130,9 @@ def enable_all():
fail_if(
len(parts) != 2,
'--image must specify <image-name>,<full-image-registry>')
# REMOVEME: ONNXRUNTIME 1.13.1 build is failing with cuda 12. Hence, using
# cuda 11.8 container as build image for ORT.
fail_if(
parts[0] not in [
'base', 'gpu-base', 'pytorch', 'tensorflow1', 'tensorflow2',
'ort-base'
'base', 'gpu-base', 'pytorch', 'tensorflow1', 'tensorflow2'
], 'unsupported value for --image')
log('image "{}": "{}"'.format(parts[0], parts[1]))
images[parts[0]] = parts[1]
Expand Down

0 comments on commit 9664319

Please sign in to comment.