From 69f2911e04ffb1b19eef1fafb8c040af271f656e Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Thu, 15 Jul 2010 18:09:46 -0800 Subject: creating branch for adding support for CUDA 3.x and Fermi [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6829] --- benchmarks/CUDA/DG/MakefileCPU2d | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 benchmarks/CUDA/DG/MakefileCPU2d (limited to 'benchmarks/CUDA/DG/MakefileCPU2d') diff --git a/benchmarks/CUDA/DG/MakefileCPU2d b/benchmarks/CUDA/DG/MakefileCPU2d new file mode 100644 index 0000000..04fd7c7 --- /dev/null +++ b/benchmarks/CUDA/DG/MakefileCPU2d @@ -0,0 +1,51 @@ +# define variables +VPATH = ./ +HDRDIR = ./include +LIBDIR = ./lib +# adjust this for your system + +# set options for this machine +# specify which compilers to use for c, fortran and linking +CC = mpicc +LD = mpicc + +# compiler flags to be used (set to compile with debugging on) +CFLAGS = -Dp_N=$(N) -DNDG2d -I/opt/local/include -I/usr/include/malloc -I$(HDRDIR) -O3 + +# link flags to be used +LDFLAGS = -I$(HDRDIR) -L. -L./$(LIBDIR) -O3 + +# libraries to be linked in +LIBS = -lparmetis -lmetis -lm + +# types of files we are going to construct rules for +.SUFFIXES: .c .f .cu + +# rule for .c files +.c.o: + $(CC) $(CFLAGS) -o $*.o -c $*.c + +# list of objects to be compiled +OBJS = \ + src/Mesh2d.o\ + src/Utils.o\ + src/LoadBalance2d.o\ + src/FacePair2d.o\ + src/ParallelPairs.o\ + src/BuildMaps2d.o\ + src/StartUp2d.o\ + src/MaxwellsRun2d.o\ + src/MaxwellsMPI2d.o\ + src/MaxwellsDriver2d.o\ + src/MaxwellsRHS2d.o\ + src/InitCPU2d.o + +MaxwellsCPU2d:$(OBJS) + $(LD) $(LDFLAGS) -o MaxwellsCPU2d $(OBJS) $(LIBS) + rm -r $(OBJS) + +# what to do if user types "make clean" +clean : + rm -r $(OBJS) + + -- cgit v1.3