-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (18 loc) · 779 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (18 loc) · 779 Bytes
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
NVCC = $(shell which nvcc)
NVCC_FLAGS = -g -G -Xcompiler -Wall
#PYTHON_SOFT_DIR = /lus/theta-fs0/software/thetagpu/conda/2021-11-30/mconda3
#* SET THE PATH TO YOUR BASE CONDA or PYTHON BUILD DIRECTORY *#
#PYTHON_SOFT_DIR = /PATH/TO/YOUR/LOCAL/CONDAorPYTHON/DIR
#Example
#PYTHON_SOFT_DIR = /lus/theta-fs0/software/thetagpu/conda/2021-11-30/mconda3
INCLUDES = -I$(PYTHON_SOFT_DIR)/lib/python3.8/site-packages/tensorflow/include/external/local_config_python/numpy_include
INCLUDES += -I$(PYTHON_SOFT_DIR)/include
INCLUDES += -I$(PYTHON_SOFT_DIR)/include/python3.8
LIBRARIES = -L$(PYTHON_SOFT_DIR)/lib -lpython3.8
all: main.exe
main.exe: main.o
$(NVCC) $(LIBRARIES) $^ -o $@
main.o: main.cu kernel.h
$(NVCC) $(NVCC_FLAGS) $(INCLUDES) -c $< -o $@
clean:
rm -f *.o *.exe