<div dir="ltr"><div><div>Mingcheng, <br><br></div>I guess you will have a lot of difficulties to compile VTK with CUDA.<br></div>You should better isolate your cuda code (no vtk dependency/header) in a cuda library that you will link together with VTK library against your C++ code.<br>

</div><div class="gmail_extra"><br clear="all"><div><b>Joachim Pouderoux</b><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>PhD, R&D Enginee</i>r</font> <br>

<b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div>
<br><br><div class="gmail_quote">2013/4/30 Mingcheng Chen <span dir="ltr"><<a href="mailto:linyufly@gmail.com" target="_blank">linyufly@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hi Jean-Christophe,<div><br></div><div>Thank you!</div><div><br></div><div>I use VTK 6.0 and CUDA 5.0. I just need vtkUnstructuredGridReader to read something in main.cpp and then everything is CUDA.</div>

<div><br></div><div>Thanks again!</div><div class="im"><div><br></div><div>Best regards,</div><div>Mingcheng Chen</div><div>April 29th, 2013</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br>

<br><div class="gmail_quote">
On Mon, Apr 29, 2013 at 6:54 PM, Jean-Christophe Fillion-Robin <span dir="ltr"><<a href="mailto:jchris.fillionr@kitware.com" target="_blank">jchris.fillionr@kitware.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">Hi Mingcheng, <div><br></div><div>To help identify the issue, could you specify which version of VTK you are building against. Providing a small example using either gist or github would be helpful.</div>

<div><br></div><div>Hth</div><div>Jc</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Mon, Apr 29, 2013 at 6:16 PM, Mingcheng Chen <span dir="ltr"><<a href="mailto:linyufly@gmail.com" target="_blank">linyufly@gmail.com</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><div dir="ltr"><div><div><div><div><div><div>Hi everyone,<br><br></div>My code contains a main.cpp and several *.cu files. The main.cpp uses some VTK functions.<br>




<br></div>How can I make it compiled in ubuntu? In Windows I can use Visual Studio.<br>
<br></div>Is cmake able to do that? I failed...<br></div><br></div>Thanks!<br><br>Best regards,<br>Mingcheng Chen<br></div>April 29th, 2013<span><font color="#888888"><br clear="all"><div><div><div><div><div>

<div><div><div><br>-- <br><div dir="ltr">
<div>Research Assistant in Graphics Group<br></div>
<div>University of Illinois at Urbana-Champaign</div><div><a href="http://mingchengchen.org" target="_blank">http://mingchengchen.org</a></div></div>
</div></div></div></div></div></div></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><a href="tel:%2B1%20919%20869%208849" value="+19198698849" target="_blank">+1 919 869 8849</a><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Research Assistant in Graphics Group<br></div>
<div>University of Illinois at Urbana-Champaign</div><div><a href="http://mingchengchen.org" target="_blank">http://mingchengchen.org</a></div></div>
</div>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>