Last active
December 29, 2016 17:42
-
-
Save kenanpelit/c72a243d4f15280df2bf06af9e1530a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package = "cutorch" | |
version = "scm-1" | |
source = { | |
url = "git://github.com/torch/cutorch.git", | |
} | |
description = { | |
summary = "Torch CUDA Implementation", | |
detailed = [[ | |
]], | |
homepage = "https://github.com/torch/cutorch", | |
license = "BSD" | |
} | |
dependencies = { | |
"torch >= 7.0", | |
} | |
build = { | |
type = "command", | |
build_command = [[ | |
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCUDA_NVCC_EXECUTABLE=/usr/local/cuda/bin -DCUDA_INCLUDE_DIRS=/usr/local/cuda/include -DCUDA_CUDART_LIBRARY=/usr/local/cuda/lib64 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda -DCMAKE_PREFIX_PATH="$(LUA_BINDIR)/.." -DCMAKE_INSTALL_PREFIX="$(PREFIX)" && $(MAKE) -j$(getconf _NPROCESSORS_ONLN) install | |
]], | |
install_command = "cd build" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment