aboutsummaryrefslogtreecommitdiff
path: root/Examples/SimpleWaveCaKernel/cakernel.ccl
blob: b68af03ed3174b3b1bf47b5258131bb2433b0b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
CCTK_CUDA_KERNEL initial_sine TYPE=gpu_cuda/3dblock STENCIL="0,0,0,0,0,0" TILE="8,8,8" SHARECODE=yes
{
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=out
  {
    phi
  }
  "phi"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=out
  {
    pi
  }
  "pi"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=in
  {
    x
  }
  "x"
}

CCTK_CUDA_KERNEL calc_rhs TYPE=gpu_cuda/3dblock STENCIL="0,0,0,0,0,0" TILE="8,8,8" SHARECODE=yes
{
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=in
  {
    phi
  }
  "phi"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=out
  {
    phirhs
  }
  "phirhs"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=in
  {
    pi
  }
  "pi"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=out
  {
    pirhs
  }
  "pirhs"
}

CCTK_CUDA_KERNEL rk1 TYPE=gpu_cuda/3dblock STENCIL="0,0,0,0,0,0" TILE="8,8,8" SHARECODE=yes
{
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=inout
  {
    phi
  }
  "phi"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=in
  {
    phirhs
  }
  "phirhs"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=inout
  {
    pi
  }
  "pi"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=yes intent=in
  {
    pirhs
  }
  "pirhs"
}