annotate src/parallel_execution/examples/twice/CUDAtwice.cu @ 410:85b0ddbf458e

Fix CudaWorker
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Thu, 14 Sep 2017 02:35:20 +0900
parents b81492c74d2b
children 0eba9a04633f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
290
625a19d81ed7 add Cmake
ikkun
parents:
diff changeset
1 extern "C" {
309
8c2123bb577b fix compile errors
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 308
diff changeset
2
308
aeddca686007 CUDAtwice
ikkun
parents: 302
diff changeset
3 #include <stdio.h>
410
85b0ddbf458e Fix CudaWorker
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents: 381
diff changeset
4 __global__ void twice(int* array) {
85b0ddbf458e Fix CudaWorker
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents: 381
diff changeset
5 printf("array %p",array);
85b0ddbf458e Fix CudaWorker
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents: 381
diff changeset
6 array[blockIdx.x] = array[blockIdx.x]*2;
290
625a19d81ed7 add Cmake
ikkun
parents:
diff changeset
7 }
625a19d81ed7 add Cmake
ikkun
parents:
diff changeset
8 }