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
  • 26,644
  • 4
  • 61
  • 72
Yakov
  • 9,221
  • 29
  • 109
  • 199
  • 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 Путлер Капут 六四事 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
  • 131,712
  • 9
  • 184
  • 228