Skip to content

Commit 180420c

Browse files
pvijayakrishmc-nv
andauthored
Update CUDA archs in ORT (#291)
* Update CUDA archs in ORT * Update CUDA archs in ORT and fixing typo * Update cudnn home * Version upgrade for openvino updated from 24.12 * Update CUDNN_home for v9.7.0 * Update the home path * Update path * Update CUDNN home * Remove comments * Update the supported igpu NVCC * Update the supported igpu and dgpu NVCC * Upadate default branch post 24.12 (#290) * Update README and versions for 2.53.0 / 24.12 (#288) * Update 'gen_ort_dockerfile.py' fil to meet changes in ONNX Runtime 1.20.x * remove psutils * Update reformating * restore description * Update OpenVINO to 2024.5 (#287) * Update 'gen_ort_dockerfile.py' fil to meet changes in ONNX Runtime 1.20.x * remove psutils * Add OpenVINO version * Fix pre-commit issues * Extract archive in different location (#289) * Extract archive in different location * Revert "Extract archive in different location" This reverts commit e57256a. * Update installation instructions * Reapply "Extract archive in different location" This reverts commit 59e24e4. * Rolling back changes cherry picked from 24.12 * Rolling back changes cherry picked from 24.12: fixing spaces --------- Co-authored-by: Misha Chornyi <[email protected]>
1 parent 2be37f7 commit 180420c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

cmake/download_onnxruntime.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ if(DEFINED TRITON_ONNXRUNTIME_PACKAGE_URL)
2828

2929
endif(NOT DOWNLOAD_RESULT EQUAL 0)
3030

31-
endif(DEFINED TRITON_ONNXRUNTIME_PACKAGE_URL)
31+
endif(DEFINED TRITON_ONNXRUNTIME_PACKAGE_URL)
32+

tools/gen_ort_dockerfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def dockerfile_for_linux(output_file):
256256
if FLAGS.cudnn_home is not None:
257257
ep_flags += ' --cudnn_home "{}"'.format(FLAGS.cudnn_home)
258258
elif target_platform() == "igpu":
259-
ep_flags += ' --cudnn_home "/usr/lib/aarch64-linux-gnu"'
259+
ep_flags += ' --cudnn_home "/usr/include"'
260260
if FLAGS.ort_tensorrt:
261261
ep_flags += " --use_tensorrt"
262262
if FLAGS.ort_version >= "1.12.1":
@@ -275,9 +275,9 @@ def dockerfile_for_linux(output_file):
275275
ep_flags += (
276276
" --skip_tests --cmake_extra_defines 'onnxruntime_BUILD_UNIT_TESTS=OFF'"
277277
)
278-
cuda_archs = "53;62;72;87"
278+
cuda_archs = "87;101"
279279
else:
280-
cuda_archs = "75;80;86;90"
280+
cuda_archs = "75;80;86;89;90;100;120"
281281

282282
df += """
283283
WORKDIR /workspace/onnxruntime
@@ -472,7 +472,7 @@ def dockerfile_for_windows(output_file):
472472
WORKDIR /workspace/onnxruntime
473473
ARG VS_DEVCMD_BAT="\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
474474
RUN powershell Set-Content 'build.bat' -value 'call %VS_DEVCMD_BAT%',(Get-Content 'build.bat')
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 {}
475+
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 {}
476476
""".format(
477477
ep_flags
478478
)

0 commit comments

Comments
 (0)