daadaada / turingas

Assembler for NVIDIA Volta and Turing GPUs
MIT License
201 stars 40 forks source link

How to generate the .sass file? #10

Open guohaoqiang opened 2 years ago

guohaoqiang commented 2 years ago

I was wondering how to generate the .sass file by using the disasm.py under the tools directory? I tried "python disasm.py test.out > test.sass". However, the test.sass can not be used by turingas.

daadaada commented 2 years ago

Currently, there are some missing components in disasm.py to make python disasm.py test.out > test.sass work. One of the missing components is extracting argument (parameter) information.

Maybe you can manually add the parameter info to the beginning of the sass file. Here is an example of kernel parameter blocks

guohaoqiang commented 2 years ago

Currently, there are some missing components in disasm.py to make python disasm.py test.out > test.sass work. One of the missing components is extracting argument (parameter) information.

Maybe you can manually add the parameter info to the beginning of the sass file. Here is an example of kernel parameter blocks

Thanks! It would be better if the .cu source files of the two .sass files (https://github.com/daadaada/turingas/tree/master/examples) can be provided.