Mercurial > hg > Game > Cerium
annotate example/flip/twice.cl @ 1983:c3b4083c4467 draft
fix CudaScheduler
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 15 Mar 2014 17:46:13 +0900 |
parents | 273de551f726 |
children |
rev | line source |
---|---|
1515 | 1 __kernel void |
2 twice(__constant int *data_count, | |
1546
61164c687b29
fix GpuScheduler flip
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
3 __global int *input_data) |
1515 | 4 { |
5 long count = (long)data_count[0]; | |
1544
5c4e3f0d372a
many_task add task array
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1515
diff
changeset
|
6 for (int i = 0; i<count; i++) { |
1546
61164c687b29
fix GpuScheduler flip
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1544
diff
changeset
|
7 input_data[i] *= 2; |
1544
5c4e3f0d372a
many_task add task array
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1515
diff
changeset
|
8 } |
1515 | 9 } |