A simple tutorial on generating PTX assembler out of Ada source code using LLVM NVPTX backend

Dear LLVM,

FWIW, attached presentation provides a simple jump-start tutorial for newbies to start doing something useful with LLVM, DragonEgg, NVPTX backend and some custom high-level language. Along with short software overview from the user perspective it contains instructions on building components necessary to experiment with NVPTX and an example usecase of generating PTX assembler out of the Ada source code with help of DragonEgg.

Best,

  • Dima.

llvm_nvptx.pdf (162 KB)

sum_kernel.tar.gz (3.22 KB)

Hi Dima,

FWIW, attached presentation provides a simple jump-start tutorial for newbies to
start doing something useful with LLVM, DragonEgg, NVPTX backend and some custom
high-level language. Along with short software overview from the user
perspective it contains instructions on building components necessary to
experiment with NVPTX and an example usecase of generating PTX assembler out of
the Ada source code with help of DragonEgg.

very amusing! :slight_smile: I'm curious to know though: do you think many people
are interested in this kind of thing?

Best wishes, Duncan.

We should collect this kind of tutorial and put them on the website. :wink:

Regards,
chenwj

I’m sorry if it is too funny, I just thought it could be a simple enough basic tutorial. If you are asking whether many people are interested particularly in Ada, then I don’t think so. Ada here is just an illustration of “whatever unusual thing you need - you can do it with LLVM easily by pipelining different components”.

Anyway, if you think it could be useful for the website, please let me know what should be changed or re-worked, in order to do so.

Thanks,

  • D.

2012/6/15 陳韋任 (Wei-Ren Chen) <chenwj@iis.sinica.edu.tw>

I’m sorry if it is too funny, I just thought it could be a simple enough basic tutorial. If you are asking whether many people are interested particularly in Ada, then I don’t think so. Ada here is just an illustration of “whatever unusual thing you need - you can do it with LLVM easily by pipelining different components”.

Anyway, if you think it could be useful for the website, please let me know what should be changed or re-worked, in order to do so.

This is very cool! I like how it shows a very simple way to enable GPU programming in Ada using a minimum of code. At the very least, it deserves a link from the LLVM website.