source: CIVL/examples/cuda/simple.cu@ afc300c

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

Fixed issue in which cuda kernels couldn't have param list of form (void). Added new simple cuda regression test for this case.

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

  • Property mode set to 100644
File size: 205 bytes
Line 
1#include <cuda.h>
2
3__global__ void simple1(void) {
4}
5
6__global__ void simple2(void);
7
8__global__ void simple2(void) {
9
10}
11
12int main(void) {
13 simple1<<<1, 1, 0>>>();
14 simple2<<<1, 1, 0>>>();
15 return 0;
16}
17
18
Note: See TracBrowser for help on using the repository browser.