source: CIVL/examples/cuda/simple.cvl@ ac43965

1.23 2.0 main test-branch
Last change on this file since ac43965 was 9803bc1, checked in by Manchun Zheng <zmanchun@…>, 11 years ago

get rid of all references of civlc.h, since it is removed from ABC.

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

  • Property mode set to 100644
File size: 717 bytes
Line 
1#include <civlc.cvh>
2#include "cuda.cvh"
3#include <stdio.h>
4
5void _kernel_simple(dim3 gridDim, dim3 blockDim, cudaStream_t s) {
6
7 void _kernel (_kernelInstance *this, cudaEvent_t e) {
8
9 void _block (uint3 blockIdx) {
10
11 void _thread (uint3 threadIdx) {
12
13 }
14
15 _runProcs(blockDim, _thread);
16 }
17
18 _waitInQueue(this, e);
19 _runProcs(gridDim, _block);
20 _kernelFinish(this);
21 }
22 _enqueueKernel(s, _kernel);
23}
24
25int main ( void ) {
26
27 int _main( void ) {
28 dim3 _t1, _t2;
29 _t1 = _toDim3(1);
30 _t2 = _toDim3(1);
31 _kernel_simple(_t1, _t2, 0);
32 return 0;
33 }
34
35 _cudaInit();
36 _main();
37 _cudaFinalize();
38}
39
40
Note: See TracBrowser for help on using the repository browser.