Skip to content

Conversation

cudawarped
Copy link
Contributor

@cudawarped cudawarped commented Aug 30, 2025

Executables linked to staic versions of OpenCV cudaarithm (e.g. test_opencv_cudaarithm) built against CUDA 13.0 fail due to dependency on depreciated libcufft_static_nocallback.a.

libcufft_static_nocallback.a was added in #3753 because it did not require seperable compilation and allowed static OpenCV builds to use a static version of the cuFFT library. Unfortunatley libcufft_static_nocallback.a has been depreciated in CUDA 13.0 and there is no straight forward way to get OpenCV to link against libcufft_static.a so this PR reinstates dynamic linking agains cuFFT in static builds for CUDA toolkit >= 13.0.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

…y linking to cufft because libcufft_static.a requires seperable compilation.
@cudawarped cudawarped changed the title [cuda] Remove libcufft_static_nocallback.a dependency with CUDA 13.0 [cuda][cudaarithm] Remove libcufft_static_nocallback.a dependency with CUDA 13.0 Sep 2, 2025
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.

1 participant