annotate example/word_count/Makefile @ 1941:f19885ea776d draft

add wordcount for cuda. fix CudaScheduler. add makefile
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Tue, 04 Feb 2014 02:18:07 +0900
parents d28f0c5489c3
children 7dc90c83a787
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
393
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
1 default: macosx
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
2
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
3 macosx: FORCE
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
4 @echo "Make for Mac OS X"
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
5 @$(MAKE) -f Makefile.macosx
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
6
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
7 linux: FORCE
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
8 @echo "Make for Linux"
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
9 @$(MAKE) -f Makefile.linux
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
10
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
11 cell: FORCE
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
12 @echo "Make for CELL (Cell)"
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
13 @$(MAKE) -f Makefile.cell
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
14
1884
d28f0c5489c3 ppe conditional wait done.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1849
diff changeset
15 test:
d28f0c5489c3 ppe conditional wait done.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1849
diff changeset
16 ./word_count -file c.txt
d28f0c5489c3 ppe conditional wait done.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1849
diff changeset
17
1538
fac06524090b add gpu task wordcount. But not work print
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 946
diff changeset
18 gpu: FORCE
fac06524090b add gpu task wordcount. But not work print
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 946
diff changeset
19 @echo "Make for OpenCL"
fac06524090b add gpu task wordcount. But not work print
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 946
diff changeset
20 @$(MAKE) -f Makefile.gpu
fac06524090b add gpu task wordcount. But not work print
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 946
diff changeset
21
1849
0296fa2dfe6d add test
Shinji KONO
parents: 1538
diff changeset
22 gpu-test: FORCE
0296fa2dfe6d add test
Shinji KONO
parents: 1538
diff changeset
23 @echo "Make for OpenCL"
0296fa2dfe6d add test
Shinji KONO
parents: 1538
diff changeset
24 @$(MAKE) -f Makefile.gpu test
0296fa2dfe6d add test
Shinji KONO
parents: 1538
diff changeset
25
1941
f19885ea776d add wordcount for cuda. fix CudaScheduler. add makefile
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents: 1884
diff changeset
26 cuda: FORCE
f19885ea776d add wordcount for cuda. fix CudaScheduler. add makefile
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents: 1884
diff changeset
27 @echo "Make for Cuda"
f19885ea776d add wordcount for cuda. fix CudaScheduler. add makefile
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents: 1884
diff changeset
28 @$(MAKE) -f Makefile.cuda
f19885ea776d add wordcount for cuda. fix CudaScheduler. add makefile
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents: 1884
diff changeset
29
393
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
30 FORCE:
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
31
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
32 clean:
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
33 @$(MAKE) -f Makefile.macosx clean
cb06748ba6cf add word_count
e065725@localhost.localdomain
parents:
diff changeset
34 @$(MAKE) -f Makefile.linux clean
1849
0296fa2dfe6d add test
Shinji KONO
parents: 1538
diff changeset
35 @$(MAKE) -f Makefile.cell clean
1941
f19885ea776d add wordcount for cuda. fix CudaScheduler. add makefile
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents: 1884
diff changeset
36 @$(MAKE) -f Makefile.cuda clean