Mercurial > hg > GearsTemplate
comparison src/parallel_execution/CUDAExecutor.cbc @ 439:eab6f8cd2820
Add printArray
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 06 Nov 2017 18:36:38 +0900 |
parents | 7679093bdd72 |
children | dcc42f3e7e97 |
comparison
equal
deleted
inserted
replaced
438:7679093bdd72 | 439:eab6f8cd2820 |
---|---|
39 // Asynchronous launch kernel | 39 // Asynchronous launch kernel |
40 task->num_exec = 1; | 40 task->num_exec = 1; |
41 if (task->iterate) { | 41 if (task->iterate) { |
42 struct MultiDimIterator* iterator = &task->iterator->iterator->MultiDimIterator; | 42 struct MultiDimIterator* iterator = &task->iterator->iterator->MultiDimIterator; |
43 checkCudaErrors(cuLaunchKernel(task->function, | 43 checkCudaErrors(cuLaunchKernel(task->function, |
44 iterator->x/1024, iterator->y, iterator->z, | 44 iterator->x, iterator->y, iterator->z, |
45 1024, 1, 1, | 45 1, 1, 1, |
46 0, NULL, (void**)executor->kernelParams, NULL)); | 46 0, NULL, (void**)executor->kernelParams, NULL)); |
47 } else { | 47 } else { |
48 checkCudaErrors(cuLaunchKernel(task->function, | 48 checkCudaErrors(cuLaunchKernel(task->function, |
49 1, 1, 1, | 49 1, 1, 1, |
50 1, 1, 1, | 50 1, 1, 1, |