Commit 543b79c9 authored by incardon's avatar incardon

Adding cuda interoperability example

parent 40e497d5
include ../../example.mk
CC=mpic++
OBJ = main.o
gpu_interop:
%.o: %.cu
nvcc -O3 -g -c -isystem=/home/i-bird/MPI/include --std=c++11 -o $@ $< $(INCLUDE_PATH_NVCC)
%.o: %.cpp
$(CC) -O3 $(OPT) -g -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
gpu_interop: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
all: gpu_interop
run: gpu_interop
mpirun -np 2 ./gpu_interop
.PHONY: clean all run
clean:
rm -f *.o *~ core gpu_interop
[pack]
files = main.cu Makefile
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