Just a small clarification. The default value for&nbsp;VTK_USE_64BIT_IDS depends on the type of binary you are building. For 32-bit binaries, it is OFF, for 64-bit binaries it is ON by default.<br><br><div>from VTK&#39;s CMakeLists.txt:</div>
<div>=================================<br><div><div>IF(&quot;${CMAKE_SIZEOF_VOID_P}&quot; GREATER 4)</div><div>&nbsp;SET(VTK_USE_64BIT_IDS_DEFAULT ON)</div><div>ELSE(&quot;${CMAKE_SIZEOF_VOID_P}&quot; GREATER 4)</div><div>&nbsp;SET(VTK_USE_64BIT_IDS_DEFAULT OFF)</div>
<div>ENDIF(&quot;${CMAKE_SIZEOF_VOID_P}&quot; GREATER 4)</div><div><br></div><div><br></div><div class="gmail_quote">On Tue, Feb 17, 2009 at 9:10 AM, Berk Geveci <span dir="ltr">&lt;<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">&gt; &nbsp;Thorough testing of your extremely large data sets is well warranted. I&#39;m<br>
&gt; not trying to take anything away from VTK. I think it is a wonderful toolkit<br>
&gt; that has allowed me to help people solve real problems. Just a word of<br>
&gt; caution that if your data sets start getting large (into 64 bit territory)<br>
&gt; be ready to possibly hunt down some bugs in the VTK code.<br>
<br>
</div>I would strongly encourage developers and users to report any issues<br>
they find related to 64 bit issues when processing large datasets. We<br>
are actively hunting such bugs. I want to clarify a few things:<br>
<br>
* You will be in the &quot;64 bit territory&quot; when the number of points or<br>
cells in your datasets is bigger than 2^31 (we use signed ints). It is<br>
totally possible to have datasets much larger than 4 GiB without<br>
exceeding 2^31 points/cells.<br>
<br>
* Make sure to turn on VTK_USE_64BIT_IDS before compiling. This is OFF<br>
by default. Without setting VTK_USE_64BIT_IDS to on, you cannot<br>
process datasets that have more than 2^31 points/cells even on a 64<br>
bit machine. When VTK_USE_64BIT_IDS is on, VTK will use a 64 bit<br>
integer for indexing. Otherwise, it will use a 32 bit integer.<br>
<font color="#888888"><br>
-berk<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Sat, Feb 14, 2009 at 11:16 PM, Michael Jackson<br>
&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt; wrote:<br>
&gt; There are those issues and possible issues with 32 bit math results being<br>
&gt; placed into a 64 bit value such as the following:<br>
&gt;<br>
&gt; int x, y, z;<br>
&gt;<br>
&gt; int64 total = x * y * z;<br>
&gt;<br>
&gt; on the surface that looks fine, but what happens when x * y * z goes beyond<br>
&gt; the max signed int value? It rolls over and you get all sorts of weird<br>
&gt; errors.<br>
&gt;<br>
&gt; &nbsp;I found and fixed a few of these last year and others have gone on the &quot;64<br>
&gt; bit hunt&quot; before but no one really sure just where the rest of the bugs are<br>
&gt; at.<br>
&gt;<br>
&gt; &nbsp;Thorough testing of your extremely large data sets is well warranted. I&#39;m<br>
&gt; not trying to take anything away from VTK. I think it is a wonderful toolkit<br>
&gt; that has allowed me to help people solve real problems. Just a word of<br>
&gt; caution that if your data sets start getting large (into 64 bit territory)<br>
&gt; be ready to possibly hunt down some bugs in the VTK code.<br>
&gt;<br>
&gt; ---<br>
&gt; Mike Jackson &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Feb 14, 2009, at 8:37 PM, shekharc wrote:<br>
&gt;<br>
&gt;&gt; No, not atm. Perhaps that&#39;s why it works for me so far.<br>
&gt;&gt;<br>
&gt;&gt; Is it fair to say that 64-bit issues would crop up when say the array<br>
&gt;&gt; lengths are like 2^32 or bigger (because of ints)? Other libraries (like<br>
&gt;&gt; Blitz++) tend to have this issue too I believe.<br>
&gt;&gt;<br>
&gt;&gt; Cheers<br>
&gt;&gt; Shakes<br>
&gt;&gt;<br>
&gt;&gt; Sean McBride wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 2/13/09 12:58 PM, shekharc said:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Works fine on Windows Vista/XP x64 and Linux x64 fine for me so far.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Out of curiosity, are you using datasets &gt; 4 GiB?<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div></div>