https://github.com/hughperkins/findcuda
FindCUDA module for cmake
https://github.com/hughperkins/findcuda
Last synced: about 2 months ago
JSON representation
FindCUDA module for cmake
- Host: GitHub
- URL: https://github.com/hughperkins/findcuda
- Owner: hughperkins
- License: other
- Created: 2016-02-06T10:40:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-04T15:09:08.000Z (over 8 years ago)
- Last Synced: 2025-03-30T22:14:55.403Z (7 months ago)
- Language: CMake
- Size: 40 KB
- Stars: 0
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FindCUDA
Activates incremental builds for [cutorch](https://github.com/torch/cutorch) and [cunn](https://github.com/torch/cunn)
## How to use?
Make sure you have [torch](https://github.com/torch/distro.git) 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.