<div dir="ltr"><div><div>Hi Evan,<br><br></div>As Shawn mentioned it could be due to lack of multi-threading. Could you provide us the configuration of the system you are using? Like the number of cores/threads and the CPU frequency? Also please share the actual time that ParaView and VTK are taking. Is it possible for you to try out a slightly older VTK version and see if the performance difference is still there?<br></div><div><br>Which dataset are you setting as input and which as source? The names are unfortunately opposite between VTK-m and ParaView due to legacy reasons. Probing with the unstructured grid as the source is much slower than probing with the structured grid as the source. So please confirm that the VTK pipeline is set up properly.<br><br></div><div>Please let me know if none these seem to be the cause of your problem and I will dig deeper.<br><br></div><div>Thanks<br></div><div>Sujin<br><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 15, 2018 at 9:52 AM, Shawn Waldon <span dir="ltr"><<a href="mailto:shawn.waldon@kitware.com" target="_blank">shawn.waldon@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"><div><div>Hi Evan,<br><br></div>I suspect the differece is that the ParaView binaries were compiled with TBB multithreading support and the Anaconda VTK was not. vtkResampleWithDataSet is set up to use TBB multithreading if available. Check the utilization of the cores on your computer when running each and you will see ParaView using all available cores and Anaconda's VTK probably only using one. It is also possible the cell locator change improved things further but I'm not familiar with that.<br><br></div><div>HTH,<br><br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, May 14, 2018 at 7:54 PM, Evan Kao <span dir="ltr"><<a href="mailto:tossin@gmail.com" target="_blank">tossin@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 class="h5"><div dir="ltr">Hello all,<div><br></div><div>I am trying to resample a structured grid data (~1.4M points, 1.3M cells) with an unstructured grid (~320K points, 480K cells). In Paraview 5.5, this resampling is nearly instant with the Resample With Dataset filter. Yet in a Python script using vtkResampleWithDataSet from VTK 8.1.0, the same operation takes about 15 minutes (>2 orders of magnitude difference in speed). As far as I can tell from the VTK repository on Gitlab, the only difference between the Paraview/release version and the 8.1.0 or 8.1.1 tagged releases is a switch in the cell locator. Is this enough to explain the difference in the performance? If not, could someone enlighten me as to what the possible factors are here?</div><div><br></div><div>Also, if it matters, this is all on a Windows 7 64-bit machine. Paraview is installed from binaries, while VTK was downloaded from an Anaconda distribution compiled by a third party.</div><div><br></div><div>Thanks for your time,</div><div>Evan Kao</div></div>
<br></div></div><span class="">______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listin<wbr>fo/vtkusers</a><br>
<br></span></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>