1.23
2.0
main
test-branch
| Line | |
|---|
| 1 | #include "civlc.h"
|
|---|
| 2 | #include "cuda.cvh"
|
|---|
| 3 | #include <stdio.h>
|
|---|
| 4 |
|
|---|
| 5 | void _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 |
|
|---|
| 25 | int 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.