aboutsummaryrefslogtreecommitdiff
path: root/Examples/WaveCaKernelScript/cakernel.ccl
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/WaveCaKernelScript/cakernel.ccl')
-rw-r--r--Examples/WaveCaKernelScript/cakernel.ccl81
1 files changed, 81 insertions, 0 deletions
diff --git a/Examples/WaveCaKernelScript/cakernel.ccl b/Examples/WaveCaKernelScript/cakernel.ccl
new file mode 100644
index 0000000..4359133
--- /dev/null
+++ b/Examples/WaveCaKernelScript/cakernel.ccl
@@ -0,0 +1,81 @@
+CCTK_CUDA_KERNEL initial_gaussian_calc TYPE=gpu_cuda/3dblock TILE="8,8,8" SHARECODE=yes STENCIL="0,0,0,0,0,0"
+{
+ CCTK_CUDA_KERNEL_VARIABLE cached=no intent=out
+ {
+ phi
+ }
+ "phi"
+
+ CCTK_CUDA_KERNEL_VARIABLE cached=no intent=out
+ {
+ pi
+ }
+ "pi"
+
+ CCTK_CUDA_KERNEL_VARIABLE cached=no intent=in
+ {
+ x
+ }
+ "x"
+
+ CCTK_CUDA_KERNEL_PARAMETER
+ {
+ fdOrder
+ }
+ "fdOrder"
+}
+
+CCTK_CUDA_KERNEL calc_rhs TYPE=gpu_cuda/3dblock TILE="8,8,8" SHARECODE=yes STENCIL="0,0,0,0,0,0"
+{
+ 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_PARAMETER
+ {
+ fdOrder
+ }
+ "fdOrder"
+}
+
+CCTK_CUDA_KERNEL calc_bound_rhs TYPE=gpu_cuda/3dblock TILE="8,8,8" SHARECODE=yes STENCIL="0,0,0,0,0,0"
+{
+ 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
+ {
+ x
+ }
+ "x"
+
+ CCTK_CUDA_KERNEL_PARAMETER
+ {
+ fdOrder
+ }
+ "fdOrder"
+}
+