Examples from the OpenCL cookbook written by Dhruba Bandopadhyay.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
291 B

CFLAGS += -O0 -Werror -ggdb -std=c99
LIBS += -lOpenCL
CC = cc
BINARIES = part1 part2 part3 part4 part5 part6 part8 createclbin part6bin
all: $(BINARIES)
%: %.c
$(CC) $(CFLAGS) $(LIBS) -o $@ $<
part4.clbin: createclbin
createclbin
.PHONY: clean
clean:
@rm -f $(BINARIES) part4.clbin