<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 6, 2013 at 11:34 AM, Larry Gritz <span dir="ltr"><<a href="mailto:lg@larrygritz.com" target="_blank">lg@larrygritz.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have an app that uses LLVM API calls from C++ to generate IR and JIT it for x86 (for subsequent live execution).  I'm still using the old JIT, for what it's worth.<br>


<br>
I want to modify it (for prototype/experimental purposes for now) to JIT PTX (into a big string buffer?).<br>
<br>
Docs are sketchy.  I can wade through it and figure it out by trial and error, but would be so very happy if somebody could point me to code or docs addressing all the issues I'll face: how to find out at runtime if the libLLVM I'm linked against can generate PTX, how to change the initialization or JIT commands to request PTX rather than x86, anything I need to know about differences in the IR I should present, etc.<br>


<br>
Any pointers would be greatly appreciated, thanks.<br>___________________</blockquote><div><br></div><div>You'll have to switch to MCJIT for this purpose. Legacy JIT doesn't emit PTX.</div><div><br></div><div>Eli </div>

</div></div></div>