diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-03-15 17:23:09 +0100 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-03-15 17:23:09 +0100 |
commit | fa52744053f212b79087a40dac8c9df8d6d40158 (patch) | |
tree | 8440718606729dfcdfb9fe2030f058c2b95d96d5 /Examples/WaveCaKernel/cakernel.ccl | |
parent | 7840f15af87fc2b070da6f49fd2ee5c0f247e78f (diff) |
Replace SimpleWaveCaKernel with WaveCaKernel
This script now generates WaveCaKernel and WaveHost which do the same
thing, one using CaKernel and one using the host. This allows easy
cross-comparison between the two methods.
Diffstat (limited to 'Examples/WaveCaKernel/cakernel.ccl')
-rw-r--r-- | Examples/WaveCaKernel/cakernel.ccl | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Examples/WaveCaKernel/cakernel.ccl b/Examples/WaveCaKernel/cakernel.ccl new file mode 100644 index 0000000..2b33cf1 --- /dev/null +++ b/Examples/WaveCaKernel/cakernel.ccl @@ -0,0 +1,63 @@ +CCTK_CUDA_KERNEL calc_rhs 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_bound_rhs TYPE=gpu_cuda/boundary 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" +} + |