CONFIG: provisional cuda rule. Update naming for CGAL rules

This commit is contained in:
Mark Olesen
2020-11-17 16:38:46 +01:00
parent 9fd514bbe6
commit 6dd2cc808e
13 changed files with 105 additions and 78 deletions

26
wmake/rules/General/cuda Normal file
View File

@ -0,0 +1,26 @@
#------------------------------------------------------------------------------
# Additional rules for handling CUDA files
SUFFIXES += .cu
ifeq (,$(NVARCH))
NVARCH = 70
endif
NVCC = nvcc -std=c++14 --compiler-options='-fPIC'
cuARCH = -arch=sm_$(NVARCH)
cuOPT = -O3
cuDBUG =
# Similar to c++FLAGS
cuFLAGS = $(GFLAGS) -DNoRepository $(cuARCH) $(cuOPT) $(cuDBUG) $(LIB_HEADER_DIRS)
cutoo = $(WM_SCHEDULER) $(NVCC) $(cuFLAGS) -c $< -o $@
$(OBJECTS_DIR)/%.o : %.cu
$(cutoo)
CUDA_LINKLIBSO = $(NVCC) -shared
#------------------------------------------------------------------------------