Skip to content

Fix cuFFT discovery with older CMake CUDA finders. - #166

Merged
romerojosh merged 2 commits into
mainfrom
fix-cufft-cmake
Oct 15, 2026
Merged

romerojosh merged 2 commits into
mainfrom
fix-cufft-cmake

Conversation

@romerojosh

Copy link
Copy Markdown
Collaborator

Fixes #165.

In PR #163, I made changes to the CMake build process to use more generic tooling for dependency discovery (e.g. FindCUDAToolkit) instead of a CMake configuration file sourced from the NVHPC SDK. Turns out that older CMake versions can fail to find the cuFFT library within the NVHPC SDK directory layout, which was the source of the configure error in #165. Newer CMake versions have a FindCUDAToolkit that is NVHPC directory structure aware.

This PR adds custom search logic for CMake versions that fail to find cuFFT on their own.

Fall back to the matching NVHPC math_libs directory when FindCUDAToolkit does not provide CUDA::cufft. Preserve existing CUDA targets and resolve headers alongside the selected library.

Report the selected cuFFT library in the dependency summary.

Fixes #165

Signed-off-by: Josh Romero <joshr@nvidia.com>
Signed-off-by: Josh Romero <joshr@nvidia.com>
@romerojosh

Copy link
Copy Markdown
Collaborator Author

/build

@github-actions

Copy link
Copy Markdown

🚀 Build workflow triggered! View run

@github-actions

Copy link
Copy Markdown

✅ Build workflow passed! View run

@romerojosh
romerojosh merged commit 7312115 into main Oct 15, 2026
4 checks passed
@romerojosh
romerojosh deleted the fix-cufft-cmake branch October 15, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cuDecomp_compilation_error_Leonardo

1 participant