PeriDyno 1.0.0
Loading...
Searching...
No Matches
ForEach.cu
Go to the documentation of this file.
1#include "ForEach.h"
2#include <cuda_runtime.h>
3
4
5namespace dyno
6{
7 template<typename Operation> __global__ void kernel_foreach(Operation o)
8 {
9 size_t i = blockIdx.x * blockDim.x + threadIdx.x;
10 o(i);
11 }
12
13 void ForEach(size_t size, ...)
14 {
15 }
16}
17