From c964d74b1927ffd9fd431f457f7e385b2d2ba5ba Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 2 Mar 2016 21:21:30 +0800 Subject: ... --- nerv/Makefile | 9 +++++++++ nerv/nerv-scm-1.rockspec | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'nerv') 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", -- cgit v1.2.3