Skip to content

Use new find_package(CUDA Toolkit)#2250

Merged
f4exb merged 1 commit intof4exb:masterfrom
GlassOnTin:CUDAToolkit
Sep 13, 2024
Merged

Use new find_package(CUDA Toolkit)#2250
f4exb merged 1 commit intof4exb:masterfrom
GlassOnTin:CUDAToolkit

Conversation

@GlassOnTin
Copy link
Contributor

On current Ubuntu Noble, unable to compile against CUDA using default sdrbase/CMakeLists.txt due to unsupported find_package(CUDA 9.0).

Instead use:
https://cmake.org/cmake/help/latest/module/FindCUDAToolkit.html

See suggestions at:
https://stackoverflow.com/questions/68475502/c-with-cuda-project-in-cmake-gives-error-nvlink-fatal-could-not-open-input

@sonarqubecloud
Copy link

@srcejon
Copy link
Collaborator

srcejon commented Sep 11, 2024

Looks like that requires CMake 3.17 - Currently we have: cmake_minimum_required(VERSION 3.13.0) - So I guess that needs updating too.

@f4exb f4exb merged commit c03f8dc into f4exb:master Sep 13, 2024
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.

3 participants