[LLVMdev] Compiling to NVPTX

Timothy Baldridge tbaldridge at gmail.com
Tue Jan 22 12:56:57 PST 2013


I'm in the process of writing a library and giving a talk about writing
compilers using LLVM (llvm-c) and Clojure. As part of my talk I'd like to
give an example of a program running on CUDA.

Are there any papers, tutorials, examples, on writing a custom frontend for
NVPTX? For instance, I'm trying to figure out how to get access to "global"
variables like blockidx. I know that libc won't be accessible  so I'm
probably just going to give a demonstration of a image blur filter written
in a custom-built programming language

I was going to try simply taking my llvm module and having llvm write out
the object file using the nvptx triple. But to be honest here, I'm just
shooting in the dark at this point.

Any information would be greatly appreciated.

Timothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130122/6e083638/attachment.html>


More information about the llvm-dev mailing list