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.
ランタイム用にデバイス カーネルで起動するように構成されたブロックの数を知りたいです。それを行う機能や方法はありますか?
1行で正確な数を見つけることはできませんがgridDim.x gridDim.y ...、必要なものが得られます。作業している次元のカーネルがわかっている場合は、これらの値から数を取得できます。
gridDim.x gridDim.y ...