FindCUDA module for cmake
CMake
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
FindCUDA patch for incremental cutorch builds Feb 6, 2016
rocks add rockspec, and tweak so looks for FindPackageHandleStandardArgs in… Feb 6, 2016
.gitignore Initial commit Feb 6, 2016
CMakeLists.txt remove dead code Feb 6, 2016
FindCUDA.cmake add rockspec, and tweak so looks for FindPackageHandleStandardArgs in… Feb 6, 2016
LICENSE Initial commit Feb 6, 2016
README.md

README.md

FindCUDA

Activates incremental builds for cutorch and cunn

How to use?

Make sure you have torch installed

Then do simply:

luarocks install findcuda

That's it! cutorch and cunn builds will now be incremental :-) It's a bit draft, so worst case if something is not building fully, just:

  • (ideally) zip your cutorch directory, and send it to me somehow, so I can take a look
  • rm -Rf build

How this source-code was obtained?

  • downloaded https://cmake.org/files/v3.5/cmake-3.5.0-rc1.tar.gz
  • extracted
  • copied Modules/FindCUDA.cmake and Modules/FindCUDA/ folders
  • applied a custom fix to allow incremental builds on cutorch, and cunn (might not generalize for other software)
  • added appropriate rocks file and CMakeLists.txt so installable as luarocks module

FAQ

Why not just use the Ubuntu standard FindCUDA?

  • doesnt contain the fix for incremental builds on cutorch

Why not just download the gz directly?

  • doesnt contain the fix for incremental builds on cutorch

Why not push the fix upstream into cmake?

working on it :-) This repo might evolve appropriately as a function of this, or disappear eventually, as and when upstream is fixed, and a new version of cmake is available

License

MIT

Where can I find out more about FindCUDA?

The documentation for FindCUDA is at https://cmake.org/cmake/help/v3.5/module/FindCUDA.html The author of the uncustomized FindCUDA module is James Bigler.