Title: | CUDA expression templates |
Authors: | Wiemann, Paul Wenger, Stephan Magnor, Marcus |
Citation: | WSCG '2011: Communication Papers Proceedings: The 19th International Conference in Central Europe on Computer Graphics, Visualization and Computer Vision, p. 185-192. |
Issue Date: | 2011 |
Publisher: | Václav Skala - UNION Agency |
Document type: | konferenční příspěvek conferenceObject |
URI: | http://wscg.zcu.cz/WSCG2011/!_2011_WSCG-Short_Papers.pdf http://hdl.handle.net/11025/10836 |
ISBN: | 978-80-86943-82-4 |
Keywords: | grafické procesory;paralelní výpočty;CUDA;lineární algebra |
Keywords in different language: | graphic processing units;parallel computing;CUDA;linear algebra |
Abstract: | Many algorithms require vector algebra operations such as the dot product, vector norms or component-wise manipulations. Especially for large-scale vectors, the efficiency of algorithms depends on an efficient implementation of those calculations. The calculation of vector operations benefits from the continually increasing chip level parallelism on graphics hardware. Very efficient basic linear algebra libraries like CUBLAS make use of the parallelism provided by CUDA-enabled GPUs. However, existing libraries are often not intuitively to use and programmers may shy away from working with cumbersome and errorprone interfaces. In this paper we introduce an approach to simplify the usage of parallel graphics hardware for vector calculus. Our approach is based on expression templates that make it possible to obtain the performance of a hand-coded implementation while providing an intuitive and math-like syntax. We use this technique to automatically generate CUDA kernels for various vector calculations. In several performance tests our implementation shows a superior performance compared to CPU-based libraries and comparable results to a GPU-based library. |
Rights: | © Václav Skala - UNION Agency |
Appears in Collections: | WSCG '2011: Communication Papers Proceedings |
Files in This Item:
File | Description | Size | Format | |
---|---|---|---|---|
Wiemann.pdf | Plný text | 220,95 kB | Adobe PDF | View/Open |
Please use this identifier to cite or link to this item:
http://hdl.handle.net/11025/10836
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.