annotate example/multiply/gpu/Multi.cl @ 1692:13ffed43fe68 draft

bug fix time.pl
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Tue, 24 Sep 2013 00:00:16 +0900 (2013-09-23)
parents 0e1d40a3474b
children 9c065614561f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1556
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 __kernel void
1654
0e1d40a3474b fix basic/Makefile.gpu
shoheikokubo
parents: 1561
diff changeset
2 multi(__global const void *params,__global const float *A, __global const float*B, __global float *C,int param0,int param1)
1556
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 {
1654
0e1d40a3474b fix basic/Makefile.gpu
shoheikokubo
parents: 1561
diff changeset
4 if (param0 ==256 && param1 == 512) {
0e1d40a3474b fix basic/Makefile.gpu
shoheikokubo
parents: 1561
diff changeset
5 int i=get_global_id(0);
1561
e8c9a7099bcc add set NDRange param
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 1556
diff changeset
6
1654
0e1d40a3474b fix basic/Makefile.gpu
shoheikokubo
parents: 1561
diff changeset
7 C[i]=A[i]*B[i];
0e1d40a3474b fix basic/Makefile.gpu
shoheikokubo
parents: 1561
diff changeset
8 }
1556
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 }