Mercurial > hg > Gears > Gears
comparison src/parallel_execution/examples/twice/CUDAtwice.cu @ 414:49159fbdd1fb
Work CUDAbitonicSort
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 15 Sep 2017 22:49:45 +0900 |
parents | 0eba9a04633f |
children | 764c92c3b181 |
comparison
equal
deleted
inserted
replaced
413:497b154141de | 414:49159fbdd1fb |
---|---|
1 extern "C" { | 1 extern "C" { |
2 | |
3 #include <stdio.h> | |
4 __global__ void twice(int* array, int* prefixPtr) { | 2 __global__ void twice(int* array, int* prefixPtr) { |
5 int i = 0; | 3 int i = 0; |
6 int prefix = *prefixPtr; | 4 int prefix = *prefixPtr; |
7 C_twice: | 5 C_twice: |
8 if (i < prefix) { | 6 if (i < prefix) { |