blob: ebf130f0edceda2167b330ac3af168776b464629 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
include ./common/make.config
CC := $(CUDA_DIR)/bin/nvcc
INCLUDE := $(CUDA_DIR)/include
SRC = needle.cu
EXE = needle
release: $(SRC)
$(CC) ${KERNEL_DIM} $(SRC) -o $(EXE) -I$(INCLUDE) -L$(CUDA_LIB_DIR) -DTIMING
clang: $(SRC)
clang++ $(SRC) -o $(EXE) -I../util --cuda-gpu-arch=sm_20 \
-L/usr/local/cuda/lib64 -lcudart_static -ldl -lrt -pthread -DTIMING
enum: $(SRC)
$(CC) ${KERNEL_DIM} -deviceemu $(SRC) -o $(EXE) -I$(INCLUDE) -L$(CUDA_LIB_DIR)
debug: $(SRC)
$(CC) ${KERNEL_DIM} -g $(SRC) -o $(EXE) -I$(INCLUDE) -L$(CUDA_LIB_DIR)
debugenum: $(SRC)
$(CC) ${KERNEL_DIM} -g -deviceemu $(SRC) -o $(EXE) -I$(INCLUDE) -L$(CUDA_LIB_DIR)
clean: $(SRC)
rm -f $(EXE) $(EXE).linkinfo result.txt
|