source:
CIVL/examples/cuda/include_order_1.cu@
997a683
| Last change on this file since 997a683 was 997a683, checked in by , 5 years ago | |
|---|---|
|
|
| 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.
