I started off reading the Brown Deer tutorial (http://browndeertechnology.com/docs/BDT … NBody.html) for using OpenCL for the NBody algorithm. I’ve used the skeleton that this tutorial provided to write an OpenCL solver for a problem that I am working on.
I have downloaded both the OpenCL SDK and the Brown Deer coprthr SDK. I use the Makefile they give at the end of their tutorial for compiling and running the program (http://browndeertechnology.com/docs/BDT … le_and_run). I have made some modifications to file names and paths of directories, but have the left the rest intact. When I run `make’, I get as far as:
cc -O3 -I/home/kaushik/Berkeley/OpenCLSDK/ati-stream-sdk-v2.3-lnx64/include -I/usr/local/browndeer/include -c fd_par.c make: *** No rule to make target `fd_par_init.o', needed by `fd_par.x'. Stop.
My Makefile is:
### Makefile for Equation solver NAME = fd_par OBJS = fd_par_init.o fd_par_output.o OPENCL = /home/kaushik/Berkeley/OpenCLSDK/ati-stream-sdk-v2.3-lnx64 STDCL = /usr/local/browndeer INCS += -I$(OPENCL)/include -I$(STDCL)/include LIBS += -L$(OPENCL)/lib/x86_64 -lOpenCL -lpthread -ldl\ -L$(STDCL)/lib -lstdcl CFLAGS += -O3 all: $(NAME).x $(NAME).x: $(NAME).o $(OBJS) $(CC) $(CFLAGS) $(INCS) -o $(NAME).x $(NAME).o $(OBJS) $(LIBS) .SUFFIXES: .SUFFIXES: .c .o .c.o: $(CC) $(CFLAGS) $(INCS) -c $< clean: rm -f *.o *.x
My directory has the following files:
$ ls fd_par.c fd_par.cl Makefile Me
I wonder if anyone can tell me what I am doing wrong?