We report on the development of one of the first libraries ever presented based on the so-called expression templates technique for simplifying the implementation of CPU and parallel GPU codes. Expression templates allow expressing matrix-algebra operations for execution either on the CPU or on the GPU, with a syntax very close to the natural mathematical syntax. We present all the key relevant programming points to implement a CUDA expression template-based library, so that applied electromagnetics research groups can develop their own implementations of the approach without much effort. The developed library has been extensively optimized so that the same performance as standard C/C++ or CUDA codings is kept. We illustrate how the coding of an inverse-scattering algorithm for parallel execution on a GPU - which in pure CUDA language would be very cumbersome - can be significantly simplified by the language exposed by the developed CUDA-expression-templates-based library.
No takes yet. Share an insight, caveat, or question.
Breglia et al. (2013) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: