[Insight-users] Failed to allocate memory
Nithiananthan, Sajendra
Sajendra.Nithiananthan at rmp.uhn.on.ca
Wed Apr 9 13:00:40 EDT 2008
I was in a situation similar to the OP, Zhihong, trying to use ITK based
Demons registration on larger images (~400MB). It failed spectacularly on
32 bit Windows. Compiling and running on a 64 bit machine solved the
problem.
The peak memory was about 4.5 GB, which seems high (no histogram matching or
casting used). I had imported the images into ITK from VTK so perhaps that
explains some of the increased memory usage. Either way, it did run well and
gave me the results I would have expected (compared the output for a smaller
image to that from a 32bit machine). I will hopefully confirm later that
nothing strange is happening with memory usage.
Thank you for your input
-Sajendra
> -----Original Message-----
> From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
> Sent: Thursday, March 27, 2008 4:13 PM
> To: Nithiananthan, Sajendra
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] Failed to allocate memory
>
>
>
> Hi Sajendra,
>
>
>
> The Status of ITK in Windows 64 is the following:
>
>
> 1) ITK builds Nightly on "redwall.kitware", which
> is a Windows 64bits, running Windows Vista and
> Visual Studio 2005.
>
> The build today has all 1306 unit test passing:
> http://www.itk.org/Testing/Sites/redwall.kitware/Win64-Vista-v
> s8-Release/20080327-0100-Nightly/Test.html
>
> The compilation produces zero errors and 156 warnings,
> most of them in Third partylibraries:
> http://www.itk.org/Testing/Sites/redwall.kitware/Win64-Vista-v
> s8-Release/20080327-0100-Nightly/BuildWarning.html
>
>
>
> 2) There are no specific CMake flags to enable.
> Simply select the compiler:
>
> "Visual Studio 2005 - 64bits"
>
> when you configure the build for the first
> time. Note the specific "64 bits" at the end.
>
>
>
> 3) I'm not sure about the option of cross-compiling.
> It may be possible. I know that CMake itself
> supports and facilitates cross-compilation, but
> I know of an effort at the Rensselaer Polytechnic
> Institute for cross-compiling ITK in order to run
> it in a BlueGene supercomputer, and that required
> several changes to CMakeLists.txt files.
>
>
>
>
> To summarize:
>
> Yes, ITK is working on Windows 64 bits.
>
> Just configure with CMake and start
> enjoying ITK :-)
>
>
>
> Please let us know if you encounter any problems.
>
>
> Thanks
>
>
> Luis
>
>
>
> --------------------------------
> Nithiananthan, Sajendra wrote:
> > Hi Luis and others,
> >
> > What is the current status of ITK on 64bit windows? I found
> this post from a
> > year ago indicating (at the time) that there might still be
> problems:
> >
> http://public.kitware.com/pipermail/insight-users/2007-Februar
> y/021058.html
> >
> > Also, is there any CMake flags that need to be enabled to
> compile ITK for 64
> > bits or is it sufficient to just compile it on a 64 bit
> machine? I assume
> > there is no way to cross-compile it from 32bit Windows for
> a 64 bit machine?
> >
> > Thank you
> > Sajendra
> >
> >
> >
> >>-----Original Message-----
> >>From: insight-users-bounces at itk.org
> >>Subject: Re: [Insight-users] Failed to allocate memory
> >>
> >>
> >>Hi Zhihong,
> >>
> >>
> >>It is not surprising that you are encountering memory
> >>allocation problems for this example given the size
> >>of your images.
> >>
> >>
> >>Here is a short account of memory usage in the example
> >>
> >
> >
> >
> >>This amounts to: 5593 Mb
> >>
> >> or about: 5.46 Gb
> >>
> >>
> >>If you are using Windows 32 bits, you are limited
> >>to 2Gb for any given process.
> >>
> >>You would need a 64 bits machine with at least 6Gb
> >>in order to run this example in its current form.
> >>Preferably 8 Gb, since the operating system will
> >>take some RAM.
> >>
> >>
> >>
> >> Regards,
> >>
> >>
> >> Luis
> >
> >
> >
> > This e-mail may contain confidential and/or privileged
> information for the sole use of the intended recipient. Any
> review or distribution by anyone other than the person for
> whom it was originally intended is strictly prohibited. If
> you have received this e-mail in error, please contact the
> sender and delete all copies. Opinions, conclusions or other
> information contained in this e-mail may not be that of the
> organization.
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization.
More information about the Insight-users
mailing list