aboutsummaryrefslogtreecommitdiff
path: root/Examples/WaveCaKernel/cakernel.ccl
blob: 3df4bbbe0a82e51130c79fd551144171bb3a1c72 (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
CCTK_CUDA_KERNEL calc_rhs_2 TYPE=gpu_cuda/3dblock TILE="8,8,8" SHARECODE=yes STENCIL="1,1,1,1,1,1"
{
  CCTK_CUDA_KERNEL_VARIABLE  cached=no intent=in
  {
    phi
  }
  "phi"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=no intent=out
  {
    phirhs
  }
  "phirhs"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=no intent=in
  {
    pi
  }
  "pi"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=no intent=out
  {
    pirhs
  }
  "pirhs"
}

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

CCTK_CUDA_KERNEL calc_bound_rhs TYPE=gpu_cuda/boundary_s TILE="8,8,8" SHARECODE=yes
{
  CCTK_CUDA_KERNEL_VARIABLE  cached=no intent=out
  {
    phirhs
  }
  "phirhs"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=no intent=out
  {
    pirhs
  }
  "pirhs"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=no intent=in
  {
    xCopy
  }
  "xCopy"
}

CCTK_CUDA_KERNEL copy_to_device TYPE=gpu_cuda/3dblock TILE="8,8,8" SHARECODE=yes STENCIL="0,0,0,0,0,0"
{
  CCTK_CUDA_KERNEL_VARIABLE  cached=no intent=inout
  {
    phi
  }
  "phi"
  
  CCTK_CUDA_KERNEL_VARIABLE  cached=no intent=inout
  {
    pi
  }
  "pi"
}