| 
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 | 
 
  | 
@@ -157,16 +161,6 @@ def dockerfile_for_linux(output_file):  | 
157 | 161 |     && apt-get install -y --no-install-recommends cmake=3.28.3* cmake-data=3.28.3* \\  | 
158 | 162 |     && cmake --version  | 
159 | 163 | 
  | 
160 |  | -"""  | 
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 | 164 | """  | 
171 | 165 | 
 
  | 
172 | 166 |     if FLAGS.ort_openvino is not None:  | 
@@ -395,7 +389,7 @@ def dockerfile_for_linux(output_file):  | 
395 | 389 | """  | 
396 | 390 |     df += """  | 
397 | 391 | RUN cd /opt/onnxruntime/lib && \  | 
398 |  | -    for i in `find . -mindepth 1 -maxdepth 1 -type f -name '*\.so*'`; do \  | 
 | 392 | +    for i in `find . -mindepth 1 -maxdepth 1 -type f -name '*\\.so*'`; do \  | 
399 | 393 |         patchelf --set-rpath '$ORIGIN' $i; \  | 
400 | 394 |     done  | 
401 | 395 | 
  | 
@@ -476,7 +470,7 @@ def dockerfile_for_windows(output_file):  | 
476 | 470 | 
 
  | 
477 | 471 |     df += """  | 
478 | 472 | WORKDIR /workspace/onnxruntime  | 
479 |  | -ARG VS_DEVCMD_BAT="\BuildTools\VC\Auxiliary\Build\vcvars64.bat"  | 
 | 473 | +ARG VS_DEVCMD_BAT="\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"  | 
480 | 474 | RUN powershell Set-Content 'build.bat' -value 'call %VS_DEVCMD_BAT%',(Get-Content 'build.bat')  | 
481 | 475 | RUN build.bat --cmake_generator "Visual Studio 17 2022" --config Release --cmake_extra_defines "CMAKE_CUDA_ARCHITECTURES=75;80;86;90" --skip_submodule_sync --parallel --build_shared_lib --compile_no_warning_as_error --skip_tests --update --build --build_dir /workspace/build {}  | 
482 | 476 | """.format(  | 
@@ -559,12 +553,8 @@ def preprocess_gpu_flags():  | 
559 | 553 |             FLAGS.tensorrt_home = "/tensorrt"  | 
560 | 554 |     else:  | 
561 | 555 |         if "CUDNN_VERSION" in os.environ:  | 
562 |  | -            version = None  | 
563 |  | -            m = re.match(r"([0-9]\.[0-9])\.[0-9]\.[0-9]", os.environ["CUDNN_VERSION"])  | 
564 |  | -            if m:  | 
565 |  | -                version = m.group(1)  | 
566 | 556 |             if FLAGS.cudnn_home is None:  | 
567 |  | -                FLAGS.cudnn_home = "/usr/local/cudnn-{}/cuda".format(version)  | 
 | 557 | +                FLAGS.cudnn_home = "/usr"  | 
568 | 558 | 
 
  | 
569 | 559 |         if FLAGS.cuda_home is None:  | 
570 | 560 |             FLAGS.cuda_home = "/usr/local/cuda"  | 
@@ -611,6 +601,7 @@ def preprocess_gpu_flags():  | 
611 | 601 |         default=None,  | 
612 | 602 |         help='Target for build, can be "linux", "windows", "rhel", or "igpu". If not specified, build targets the current platform.',  | 
613 | 603 |     )  | 
 | 604 | + | 
614 | 605 |     parser.add_argument(  | 
615 | 606 |         "--cuda-version", type=str, required=False, help="Version for CUDA."  | 
616 | 607 |     )  | 
 | 
0 commit comments