Commit 08187026 authored by incardon's avatar incardon

Adding complex geometry problem

parent 3d50542a
Pipeline #2417 passed with stages
in 20 minutes and 3 seconds
include ../../example.mk
### internally the example disable with the preprocessor its code if not compiled with nvcc
CUDA_CC=
CUDA_CC_LINK=
ifeq (, $(shell which nvcc))
CUDA_CC=mpic++ -x c++ $(INCLUDE_PATH)
INCLUDE_PATH_NVCC=
CUDA_CC_LINK=mpic++
else
CUDA_CC=nvcc -ccbin=mpic++
CUDA_CC_LINK=nvcc -ccbin=mpic++
endif
gray_scott_sparse_gpu_test: OPT += -DTEST_RUN
gray_scott_sparse_gpu_test: gray_scott_sparse_gpu
CC=mpic++
LDIR =
OBJ = main.o
%.o: %.cu
$(CUDA_CC) $(OPT) -O3 -g -c --std=c++14 -o $@ $< $(INCLUDE_PATH_NVCC)
gray_scott_sparse_gpu: $(OBJ)
$(CUDA_CC_LINK) -o $@ $^ $(LIBS_PATH) $(LIBS)
all: gray_scott_sparse_gpu
run: gray_scott_sparse_gpu_test
mpirun -np 4 ./gray_scott_sparse_gpu
.PHONY: clean all run
clean:
rm -f *.o *~ core gray_scott_sparse_gpu
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment