source: CIVL/examples/cuda/include_order_1.cu@ 997a683

1.23 2.0 main test-branch
Last change on this file since 997a683 was 997a683, checked in by Alex Wilton <awilton@…>, 5 years ago

Added cuda example demonstrating broken include order bug.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5411 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 172 bytes
Line 
1#include "include_order_2.h"
2
3__global__ void test_kernel(int* data, int numv)
4{
5 int idx = threadIdx.x + blockIdx.x * blockDim.x;
6 if (idx < numv) {
7 data[0]++;
8 }
9}
Note: See TracBrowser for help on using the repository browser.