Skip to content

Commit

Permalink
added ability for user to select OpenCL platform and device IDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtramm committed Nov 18, 2020
1 parent f8a126a commit 5b795bc
Show file tree
Hide file tree
Showing 10 changed files with 851 additions and 642 deletions.
196 changes: 0 additions & 196 deletions opencl/CLutils.c

This file was deleted.

8 changes: 4 additions & 4 deletions opencl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ io.c \
init.c \
material.c \
utils.c\
CLutils.c
cl_utils.c

obj = $(source:.c=.o)

Expand Down Expand Up @@ -61,17 +61,17 @@ endif
# Targets to Build
#===============================================================================

$(program): $(obj) rsbench.h Makefile
$(program): $(obj) rsbench.h cl_utils.h Makefile
$(CC) $(CFLAGS) $(obj) -o $@ $(LDFLAGS)

%.o: %.c rsbench.h Makefile
%.o: %.c rsbench.h cl_utils.h Makefile
$(CC) $(CFLAGS) -c $< -o $@

clean:
rm -rf rsbench $(obj)

edit:
vim -p $(source) kernel.cl rsbench.h
vim -p $(source) kernel.cl rsbench.h cl_utils.h

run:
./rsbench
Loading

0 comments on commit 5b795bc

Please sign in to comment.