Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C インターフェイスにまだ実装されていない PTX 1.3 の機能を使用できるようにしたいと考えています。PTX で独自の関数を記述し、既存のバイナリに挿入する方法はありますか?
私が探している機能は、%smid
%smid
答え:
__noinline__ __device__ uint get_smid(void) { uint ret; asm("mov.u32 %0, %smid;" : "=r"(ret) ); return ret; }