blob: bc7bf2a10b22905aada1547646173aeaed009dc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
CFLAGS=-g
COMMON_OBJECTS = cl_simple.o cl_util.o
LDFLAGS = -L/usr/local/lib -lOpenCL
all: hello_world math-int get-global-id get-global-id-2d loop get-global-id-3d mat-mul use-host-ptr copy-host-ptr
hello_world: hello_world.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
math-int: math-int.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
get-global-id: get_global_id.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
get-global-id-2d: get_global_id_2d.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
loop: loop.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
get-global-id-3d: get_global_id_3d.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
mat-mul: mat_mul.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
memset: memset.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
use-host-ptr: use_host_ptr.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
copy-host-ptr: copy_host_ptr.o $(COMMON_OBJECTS)
gcc -o $@ $^ $(LDFLAGS)
|