简体   繁体   English

CUDA中的基本块

[英]Basic-Blocks in CUDA

Is there a way to see the basic-block information for a CUDA source code? 有没有办法查看CUDA源代码的基本块信息? I am trying to compile a CUDA code so that the output it gives me is a file with all the basic-blocks listed. 我正在尝试编译CUDA代码,以便它给我的输出是一个列出了所有基本块的文件。 But so far,I haven't been able to find any option in nvcc which allows me to do that. 但是到目前为止,我还没有在nvcc中找到任何允许我执行此操作的选项。

If we can extract the basic-block information from the IR (PTX), that also helps. 如果我们可以从IR(PTX)中提取基本块信息,那也会有所帮助。

I was looking for a way to extract the basic-blocks or the control flow graph of a CUDA source. 我正在寻找一种提取CUDA源的基本块或控制流程图的方法。 It seems there is a way, but we get the control flow in the form of an intermediate representation (PTX). 似乎有一种方法,但是我们以中间表示(PTX)的形式获得控制流。

The "nvdisasm" has a way to extract the control flow graph of a kernel. “ nvdisasm”具有提取内核的控制流程图的方法。 More information can be found here: http://docs.nvidia.com/cuda/cuda-binary-utilities/index.html#axzz3lONRPxm5 可以在这里找到更多信息: http : //docs.nvidia.com/cuda/cuda-binary-utilities/index.html#axzz3lONRPxm5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM