是否可以查询Cuda设备中活动块号的编号? [英] is it possible to query number of active block number in Cuda Device?

查看:469
本文介绍了是否可以查询Cuda设备中活动块号的编号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想学习配置为在设备内核中运行的块的数量。

I want to learn number of blocks configured to launch in the device kernel for runtime. Is there any function or way to do it ?

推荐答案

我不能找到一行而是的确切数字, gridDim.x gridDim.y ... 给出了我想要的,如果你知道你在使用什么维度的内核,你可以通过这些值获得数字。

I cannot find exact number with one line but gridDim.x gridDim.y ... gives what I want and you might get the number by these values if you know what dimensional kernel you are working at.

这篇关于是否可以查询Cuda设备中活动块号的编号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆