conan-io / wishlist

This repo is to propose libraries, frameworks, and code in general that users would like to have in conan
MIT License
49 stars 5 forks source link

CUDA runtime #235

Closed Hopobcn closed 3 years ago

Hopobcn commented 5 years ago

I wonder a package could be created to distribute the CUDA runtime. I saw some references to CUDA in the blog post about OpenCV, then I tried to see how packages use it, but then I saw that conan-ffmpeg just disables CUDA for now.

Unfortunately after reading a bit the EULA i'm not sure if it's possible.

Any ideas?

Hopobcn commented 4 years ago

Looking at competitors, seems that vcpkg cuda package doesnt installs CUDA. Only finds the CUDA installation in the system and fails if cant be found.

Is this possible in conan? Maybe adding a check inside system_requirements + adding all cuda stuff in cpp_info?

SSE4 commented 4 years ago

probably, for certain libraries, the only way is to use virtual package (which doesn't install anything), but just populate cpp_info, as you suggest but this might be confusing for users, e.g. you install CUDA conan package, then you notice it doesn't work and you have to install things by some other means...

Hopobcn commented 4 years ago

In conda-forge repo there was a similar discussion. Seems that installing the cuda toolkit at package-install-time could be another solution. Is it possible to create a package that it is always out of date so it has to be build each time it gets installed?

Croydon commented 3 years ago

Can be closed in favour of https://github.com/conan-io/conan-center-index/issues/4844