File: cuda

package info (click to toggle)
ruby-rouge 4.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,836 kB
  • sloc: ruby: 38,168; sed: 2,071; perl: 152; makefile: 8
file content (11 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
__global__ void kernel(float *a, float *b) {
    __shared__ float sum;
    some_func();
}

__device__ __host__ void some_func() {}

int main() {
    dim3 grid(1, 1);
    kernel<<<grid, block>>>(&a, &b);
}