diff options
author | Determinant <[email protected]> | 2016-02-16 14:50:31 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2016-02-16 14:50:31 +0800 |
commit | 9e7171e2da3e4edba303f5c2bdaef416fb62e81a (patch) | |
tree | 722605d92482df5f57e329ab4b3e34b6982671ee /nerv/Makefile | |
parent | a7608a67f16f745309409f6a004354121e0b3ba6 (diff) |
pass cflags to nvcc correctly; add omitted func decl
Diffstat (limited to 'nerv/Makefile')
-rw-r--r-- | nerv/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nerv/Makefile b/nerv/Makefile index 0c6b380..a29309a 100644 --- a/nerv/Makefile +++ b/nerv/Makefile @@ -46,7 +46,10 @@ INCLUDE += $(CUDA_INCLUDE) LDFLAGS := -L$(CUDA_BASE)/lib64/ -Wl,-rpath=$(CUDA_BASE)/lib64/ -lcudart -lcublas -lcurand NVCC := $(CUDA_BASE)/bin/nvcc -NVCC_FLAGS := -Xcompiler -fPIC,-Wextra +EMPTY := +SPACE := $(EMPTY) $(EMPTY) +COMMA := , +NVCC_FLAGS := -Xcompiler -fPIC -Xcompiler $(subst $(SPACE),$(COMMA),$(CFLAGS)) LUA_LIBS := $(addprefix $(LUA_DIR)/,$(LUA_LIBS)) |