|
56 | 56 | "2024.4", # OpenVINO short version |
57 | 57 | "2024.4.0.16579.c3152d32c9c", # OpenVINO version with build number |
58 | 58 | ), |
| 59 | + "2024.5.0": ( |
| 60 | + "2024.5", # OpenVINO short version |
| 61 | + "2024.5.0.17288.7975fa5da0c", # OpenVINO version with build number |
| 62 | + ), |
59 | 63 | } |
60 | 64 |
|
61 | 65 |
|
@@ -158,16 +162,16 @@ def dockerfile_for_linux(output_file): |
158 | 162 | && cmake --version |
159 | 163 |
|
160 | 164 | """ |
161 | | - if FLAGS.enable_gpu: |
162 | | - df += """ |
163 | | -# Allow configure to pick up cuDNN where it expects it. |
164 | | -# (Note: $CUDNN_VERSION is defined by base image) |
165 | | -RUN _CUDNN_VERSION=$(echo $CUDNN_VERSION | cut -d. -f1-2) && \ |
166 | | - mkdir -p /usr/local/cudnn-$_CUDNN_VERSION/cuda/include && \ |
167 | | - ln -s /usr/include/cudnn.h /usr/local/cudnn-$_CUDNN_VERSION/cuda/include/cudnn.h && \ |
168 | | - mkdir -p /usr/local/cudnn-$_CUDNN_VERSION/cuda/lib64 && \ |
169 | | - ln -s /etc/alternatives/libcudnn_so /usr/local/cudnn-$_CUDNN_VERSION/cuda/lib64/libcudnn.so |
170 | | -""" |
| 165 | +# if FLAGS.enable_gpu: |
| 166 | +# df += """ |
| 167 | +# # Allow configure to pick up cuDNN where it expects it. |
| 168 | +# # (Note: $CUDNN_VERSION is defined by base image) |
| 169 | +# RUN _CUDNN_VERSION=$(echo $CUDNN_VERSION | cut -d. -f1-2) && \ |
| 170 | +# mkdir -p /usr/local/cudnn-$_CUDNN_VERSION/cuda/include && \ |
| 171 | +# ln -s /usr/include/cudnn.h /usr/local/cudnn-$_CUDNN_VERSION/cuda/include/cudnn.h && \ |
| 172 | +# mkdir -p /usr/local/cudnn-$_CUDNN_VERSION/cuda/lib64 && \ |
| 173 | +# ln -s /etc/alternatives/libcudnn_so /usr/local/cudnn-$_CUDNN_VERSION/cuda/lib64/libcudnn.so |
| 174 | +# """ |
171 | 175 |
|
172 | 176 | if FLAGS.ort_openvino is not None: |
173 | 177 | df += """ |
@@ -401,7 +405,7 @@ def dockerfile_for_linux(output_file): |
401 | 405 | """ |
402 | 406 | df += """ |
403 | 407 | RUN cd /opt/onnxruntime/lib && \ |
404 | | - for i in `find . -mindepth 1 -maxdepth 1 -type f -name '*\.so*'`; do \ |
| 408 | + for i in `find . -mindepth 1 -maxdepth 1 -type f -name '*\\.so*'`; do \ |
405 | 409 | patchelf --set-rpath '$ORIGIN' $i; \ |
406 | 410 | done |
407 | 411 |
|
@@ -482,7 +486,7 @@ def dockerfile_for_windows(output_file): |
482 | 486 |
|
483 | 487 | df += """ |
484 | 488 | WORKDIR /workspace/onnxruntime |
485 | | -ARG VS_DEVCMD_BAT="\BuildTools\VC\Auxiliary\Build\vcvars64.bat" |
| 489 | +ARG VS_DEVCMD_BAT="\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" |
486 | 490 | RUN powershell Set-Content 'build.bat' -value 'call %VS_DEVCMD_BAT%',(Get-Content 'build.bat') |
487 | 491 | RUN build.bat --cmake_generator "Visual Studio 17 2022" --config Release --cmake_extra_defines "CMAKE_CUDA_ARCHITECTURES=75;80;86;90;100;120" --skip_submodule_sync --parallel --build_shared_lib --compile_no_warning_as_error --skip_tests --update --build --build_dir /workspace/build {} |
488 | 492 | """.format( |
@@ -565,12 +569,13 @@ def preprocess_gpu_flags(): |
565 | 569 | FLAGS.tensorrt_home = "/tensorrt" |
566 | 570 | else: |
567 | 571 | if "CUDNN_VERSION" in os.environ: |
568 | | - version = None |
569 | | - m = re.match(r"([0-9]\.[0-9])\.[0-9]\.[0-9]", os.environ["CUDNN_VERSION"]) |
570 | | - if m: |
571 | | - version = m.group(1) |
| 572 | + # version = None |
| 573 | + # m = re.match(r"([0-9]\.[0-9])\.[0-9]\.[0-9]", os.environ["CUDNN_VERSION"]) |
| 574 | + # if m: |
| 575 | + # version = m.group(1) |
572 | 576 | if FLAGS.cudnn_home is None: |
573 | | - FLAGS.cudnn_home = "/usr/local/cudnn-{}/cuda".format(version) |
| 577 | + #FLAGS.cudnn_home = "/usr/local/cudnn-{}/cuda".format(version) |
| 578 | + FLAGS.cudnn_home = "/usr" |
574 | 579 |
|
575 | 580 | if FLAGS.cuda_home is None: |
576 | 581 | FLAGS.cuda_home = "/usr/local/cuda" |
|
0 commit comments