2

AMD defines for each GPU family ot its ISA. As I understand, ISA is a instruction set architecture : assembly -like "language". How is called NVidia`s GPU "assembly -like language"? - PTX? Is there any tool like AMD or Intel offline compiler which generates such assembly for NVidia kernels ? Thanks

iH8
  • 27,722
  • 4
  • 67
  • 76
YAKOVM
  • 9,805
  • 31
  • 116
  • 217
  • 4
    No, PTX is an abstract, platform-independent intermediate language, somewhat similar to, say, LLVM IR. – SK-logic Dec 07 '12 at 11:51
  • http://stackoverflow.com/questions/1697842/do-graphic-cards-have-instruction-sets-of-their-own | http://stackoverflow.com/questions/20341502/what-instruction-set-does-the-nvidia-geforce-6xx-series-use GPUCC by Google, merged into clang, seems to compile to whatever it is that NVIDIA uses. – Ciro Santilli OurBigBook.com Apr 26 '16 at 08:11

1 Answers1

5

NVIDIA assembly language is called SASS. You can generate SASS from a compiled kernel using the cuobjdump tool. If the name of your executable is foo, use cuobjdump -sass foo The output is close enough to the type of PTX output you get from doing nvcc -ptx foo.cu that you should be able to understand it with the PTX ISA reference manual

Robert Crovella
  • 143,785
  • 11
  • 213
  • 257