Search code examples
cudanvcc

CUDA SASS to Cubin


With CuObjDump SASS can be generated from Cubin file using cuobjdump -sass <input file>, But is there any way to convert the SASS back to Cubin.


Solution

  • There are no "assemblers" provided as part of the official NVIDIA CUDA toolchain. The NVIDIA toolchain can take CUDA C/C++, or PTX, and convert it to a cubin or other executable format.

    However there are some community-developed assemblers:

    Perhaps the most recent one at this time (probably the only one worth considering at this time) is maxas.

    There also was an older one asfermi developed in the Fermi generation of CUDA GPUs. I don't think it has been updated or maintained.