How to compile PTX code

前端 未结 6 1600
旧巷少年郎
旧巷少年郎 2020-12-15 11:35

I need to modify the PTX code and compile it directly. The reason is that I want to have some specific instructions right after each other and it is difficult to write a cud

6条回答
  •  庸人自扰
    2020-12-15 12:06

    I am rather late but GPU Lynx does exactly that: take a CUDA fat binary, parse the PTX, and modify it before emitting the result to the driver for execution on a GPU. You can optionally print out the modified PTX as well.

提交回复
热议问题