Commit f3ea76d9 authored by incardon's avatar incardon

Adding missing examples codes

parent 6eeff2c9
Pipeline #2062 failed with stages
in 29 minutes and 12 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
CC=mpic++
LDIR =
OBJ = main.o
%.o: %.cu
$(CUDA_CC) -O3 -g -c --std=c++11 -o $@ $< $(INCLUDE_PATH_NVCC)
gray_scott_sparse_gpu: $(OBJ)
$(CUDA_CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
all: gray_scott_sparse_gpu
run: all
mpirun -np 4 ./gray_scott_sparse_gpu
.PHONY: clean all run
clean:
rm -f *.o *~ core gray_scott_sparse_gpu
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