mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
CONFIG: provisional cuda rule. Update naming for CGAL rules
This commit is contained in:
26
wmake/rules/General/cuda
Normal file
26
wmake/rules/General/cuda
Normal 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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user