onnxruntime: Fix cuda-toolkit version range - #11
Open
danimtb wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
onnxruntimeCUDA requirement fromcuda-toolkit/[>=12 <14]tocuda-toolkit/[>=12 <13.3]so the sample no longer resolves tocuda-toolkit/13.3.1.moe_kernel.cuagainst Abseil container headers.cuda-toolkit/13.3.1landed (Add cuda-toolkit/13.3.1 #8, ~2026-08-04). Earlier green runs usedcuda-toolkit/13.2.xwith the sameabseil/20260107.1.Root cause
With
with_cuda=True, Conan resolvescuda-toolkit/[>=12 <14]to 13.3.1. Building ONNX Runtime’s MoE CUDA kernel fails in nvcc’s EDG/cudafe++host path with errors like:See failure at https://github.com/conan-io/cuda-conan/actions/runs/31498690863/job/94037761221
Seen in Abseil headers such as:
absl/container/internal/raw_hash_map.habsl/container/internal/btree_container.hSame Abseil + recipe combination builds with CUDA 13.2.x, so this is treated as an nvcc 13.3 incompatibility rather than an Abseil/recipe bug.
Fix
In
samples/onnxruntime/all/conanfile.py:self.requires("cuda-toolkit/[>=12 <13.3]")tool_requires("cuda-toolkit/<host_version>")stays unchanged and follows the host requirement (resolves to 13.2.2 today).Test plan
onnxruntimewith CUDA builds successfully (resolvescuda-toolkit/13.2.2)cuda-toolkit/13.3.1See https://github.com/conan-io/cuda-conan/actions/runs/31582068953
TODO