[CUDA] Make cuFFT optional at runtime#29808
Merged
Merged
Conversation
tianleiwu
enabled auto-merge (squash)
July 22, 2026 06:32
baijumeswani
approved these changes
Jul 22, 2026
tianleiwu
added a commit
that referenced
this pull request
Jul 22, 2026
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.
Description
Make cuFFT an optional runtime dependency for the CUDA Execution Provider and CUDA Plugin EP.
Rfft/Irfftcontrib operators.CUDA::cufftfrom the CUDA provider, CUDA plugin, and CUDA unit-test link lists.NOT_IMPLEMENTEDwith an actionable error when an FFT operator is used without cuFFT installed.Rfftfails cleanly.Motivation and Context
The CUDA provider currently has a hard load-time dependency on cuFFT even though only the
RfftandIrfftcontrib operators use it. This prevents otherwise compatible CUDA models from loading when cuFFT is not installed.This applies the same lazy-loading model introduced for optional cuDNN in #29252: non-FFT models can run without cuFFT, while FFT operators continue to work when the matching cuFFT runtime is available.
Testing
onnxruntime_providers_cudawith CUDA 13.libonnxruntime_providers_cuda.sohas no cuFFTNEEDEDentry.ContribOpTest.RfftandContribOpTest.Irfft; both passed.lintrunnerchecks andgit diff --check.