-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I've been scanning ebuilds and source code for packages that use Cuda, and noticed that a lot of them have CMake modules that detect the version of Cuda they use and then use that info to compile the module during compile time. There's a lot of detection going on in OpenCV:
https://github.com/Itseez/opencv/blob/master/cmake/FindCUDA.cmake
If I read this right, it's detecting what GPU you have and Cuda version. Blender has nothing like this and just depends on a list. I'm wondering if they did this on purpose for render farms, build on one machine to package it and then transfer it to all computers. It's the best theory I have. But, in general, I think auto-detection would be good for the common users (not headless mode), and then build all in headless mode. We could nick the CMake logic from another program that does this, if OpenCV does, maybe them. I need to look at it a bit more.
I don't know if the above is part of Automagic or not, it's just detecting a version instead of actually building it. 90% of the users will be building it for their own system, so this might be more user friendly. If a person is compiling headless, they are compiling for renderfarm. They are the ones that would benefit all modules.