Mainland, GeoffreyMorrisett, Greg Gregory2012-11-292010Mainland, Geoffrey, and John Gregory Morrisett. 2010. Nikola: Embedding compiled GPU functions in Haskell. In Haskell '10: Proceedings of the 2010 ACM SIGPLAN Haskell Symposium: September 30, 2010, Baltimore, Maryland, ed. Jeremy Gibbons, 67-78. New York: Association for Computing Machinery.9781450302524http://nrs.harvard.edu/urn-3:HUL.InstRepos:9965456We describe Nikola, a first-order language of array computations embedded in Haskell that compiles to GPUs via CUDA using a new set of type-directed techniques to support re-usable computations. Nikola automatically handles a range of low-level details for Haskell programmers, such as marshaling data to/from the GPU, size inference for buffers, memory management, and automatic loop parallelization. Additionally, Nikola supports both compile-time and run-time code generation, making it possible for programmers to choose when and where to specialize embedded programs.en-USmeta programmingCUDAGPUlanguagesdesignNikola: Embedding Compiled GPU Functions in HaskellMonograph or Book10.1145/1863523.1863533