使用CUDA占用计算器 [英] Using CUDA Occupancy Calculator

查看:489
本文介绍了使用CUDA占用计算器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用占用率计算器,但我不知道如何获取每个线程/共享内存的每个块的寄存器。我阅读文档。我使用Visual Studio。在项目属性下的CUDA构建rule->命令行 - >附加选项我添加--ptxas-options = -v。程序编译精细.But我没有看到任何输出。任何人帮助?
感谢


I am using occupancy calculator but I cannot understand how to get the Registers per thread / shared memory per block .I read the documentation.I use visual studio .So in the project properties under CUDA build rule->Command Line -> Additional Options I add --ptxas-options=-v.The program compiles fine .But i do not see any output .Can anybody help? Thanks

推荐答案

使用此开关,应在编译器输出窗口上显示一行,的寄存器和共享内存量。

你在编译器输出窗口看到什么?你可以复制并粘贴到问题吗?

它应该看起来像

With this switch on there should be a line on the compiler output window that tells you about the number of registers and amount of shared memory.
Do you see anything at all on the compiler output window? can you copy and paste it to the question?
It should look something like

ptxas info : Used 3 registers, 2084+1060 bytes smem, 40 bytes cmem[0], 12 bytes cmem[1]

这篇关于使用CUDA占用计算器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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