Over 60 trainings all over Europe for universities and industryOn-site trainings on the whole range of GPU computing technologiesEach lecture accompanied with a practical session on remote GPU clusterBest recipes of GPU code optimization, based on our 5-year development experienceWe have multiple training programs and even books! Check out our catalogue here.

How to find CUDA's version of LLVM backend

Category: Uncategorised Published: Monday, 14 July 2014

It is well-known that CUDA toolkit uses LLVM backend, but the used version number is not shown. We can use gdb and LLVM API function to print the version string:

$ gdb /opt/cuda/nvvm/bin/cicc
(gdb) start
(gdb) p 'llvm::cl::PrintVersionMessage'() 
Low Level Virtual Machine (http://llvm.org/):
  llvm version 3.0
  Optimized build.
  Built Mar 13 2014 (11:31:40).
  Host: i386-pc-linux-gnu
  Host CPU: i686

So, CUDA 6.0 uses LLVM 3.0. Current LLVM stable release is 3.4.2.

Hits: 4439