<div dir="ltr">Hi Jingyue,<div><br></div><div>Thank should work! :)</div><div><br></div><div>Also, next time I will check the available resources in NVPTX before posting here!</div><div><br></div><div>Thanks.</div><div><br></div><div>-Gurunath</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 21, 2016 at 6:13 PM, Jingyue Wu <span dir="ltr"><<a href="mailto:jingyue@google.com" target="_blank">jingyue@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><a href="https://github.com/llvm-mirror/llvm/blob/652375a8cc49615de31fd9d424753795059185b6/lib/Target/NVPTX/NVPTXUtilities.h#L58" target="_blank">https://github.com/llvm-<wbr>mirror/llvm/blob/<wbr>652375a8cc49615de31fd9d4247537<wbr>95059185b6/lib/Target/NVPTX/<wbr>NVPTXUtilities.h#L58</a><div><br></div><div>Does this solve your problem? </div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Dec 21, 2016 at 2:29 PM, Gurunath Kadam via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I am trying to instrument CUDA kernel functions only (llvm-3.9.0).</div><div><br></div><div>Is there a way to identify cuda kernel functions?</div><div><br></div><div>I see that in llvm IR for CUDA has nvvm annotations section, where kernel functions are identified for NVPTX usage. I can parse the whole IR for this kernel metadata and then proceed, but this is very clumsy.</div><div><br></div><div>Other way is to work with cuda-device-only IR. But then I am not sure how to run this cuda-only-IR, as this contains cuda-device specific code and not rest of the host-device code.</div><div><br></div><div>In NVPTXBaseInfo.h, the function attributes are defined, along with PROPERTY_ISKERNEL_FUNCTIO<wbr>N. How can this be used to identify the kernel function?</div><div><br></div><div>Thanks.</div><span class="m_-4054618361488033279HOEnZb"><font color="#888888"><div><br></div><div>-Gurunath</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>