diff options
author | Determinant <[email protected]> | 2016-03-02 21:21:30 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2016-03-02 21:21:30 +0800 |
commit | c964d74b1927ffd9fd431f457f7e385b2d2ba5ba (patch) | |
tree | 7977869252be2cb62a37b1c12a950256f5b24b2d /nerv | |
parent | ad704f2623cc9e0a5d702434bfdebc345465ca12 (diff) |
...
Diffstat (limited to 'nerv')
-rw-r--r-- | nerv/Makefile | 9 | ||||
-rw-r--r-- | nerv/nerv-scm-1.rockspec | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/nerv/Makefile b/nerv/Makefile index 46e79a0..e8bcad2 100644 --- a/nerv/Makefile +++ b/nerv/Makefile @@ -1,3 +1,11 @@ +ifndef LUA_BINDIR +$(error Please build the package via luarocks: `luarocks make`) +endif + +ifndef CUDA_BASE +$(error CUDA_BASE is not set) +endif + .PHONY: build install clean SHELL := /bin/bash @@ -43,6 +51,7 @@ CUDA_INCLUDE := -I $(CUDA_BASE)/include/ INCLUDE += $(CUDA_INCLUDE) CUDA_LDFLAGS := -L$(CUDA_BASE)/lib64/ -Wl,-rpath=$(CUDA_BASE)/lib64/ -lcudart -lcuda -lcublas -lcurand +override CFLAGS += $(NERV_FEAT) NVCC := $(CUDA_BASE)/bin/nvcc EMPTY := diff --git a/nerv/nerv-scm-1.rockspec b/nerv/nerv-scm-1.rockspec index 0e1e47f..9dbe771 100644 --- a/nerv/nerv-scm-1.rockspec +++ b/nerv/nerv-scm-1.rockspec @@ -11,7 +11,8 @@ description = { license = "BSD" } dependencies = { - "lua >= 5.1" + "lua >= 5.1", + "luafilesystem >= 1.6.3" } build = { type = "make", |