Linux.com

Author Message
Joined: Feb 13, 2009
Posts: 2
Other Topics
Posted Feb 13, 2009 at 9:27:43 AM
Subject: fftw says memory allocation error
I have written a code in Fortran 90 that needs to call for a fourier transform package which I installed from http://www.fftw.org. The version I have installed is 2.1.5. Now, using gdb software for debugging the code, I saw it gives an error - fftw:fftw_malloc:out of memory after 8000 iterations. The software is written in C. But looking at the documentation provided at the fftw website it is clear that one can call for the package using fortran as well. While compilation, one just needs to specify the address of the package. Any help will be highly appreciated. Thanks in advance.
Back to top Profile Email Website
Rubberman
Joined Jul 30, 2007
Posts: 944
Location:40 miles west of Chicago

Other Topics
Posted: Feb 13, 2009 4:39:03 PM
Subject: fftw says memory allocation error
Is this a recursive algorithm, or a simple loop?

Sometimes real fast is almost as good as real time. Remember, Google is your friend!

Back to top Profile Email Website AOL Instant Messenger
debc
Joined Feb 13, 2009
Posts: 2

Other Topics
Posted: Feb 18, 2009 11:27:11 AM
Subject: fftw says memory allocation error
It is a recursive algorithm. But the fftw package is supposedly a reliable one, when it comes to speed. It isn't real time by any means. what do you suggest I do?
Back to top Profile Email Website
Rubberman
Joined Jul 30, 2007
Posts: 944
Location:40 miles west of Chicago

Other Topics
Posted: Feb 18, 2009 3:50:47 PM
Subject: fftw says memory allocation error
The recursion is likely the issue here. You are probably overrunning your stack and need to increase the amount of stack made available to your applications by the operating system. If that isn't it (depth of your recursion), then you probably need to increase the amount of swap space available. In any case, you are running out of memory. The ulimit comman will show you what your settings are, and allow you to change them if necessary. My 64bit system allows processes unlimited data segment size (-d), but only about 10M of stack (-s). You might need to change that, up to 'unlimited'.

Sometimes real fast is almost as good as real time. Remember, Google is your friend!

Back to top Profile Email Website AOL Instant Messenger
Anonymous
Joined Mar 15, 2010
Posts: 12

Other Topics
Posted: Feb 21, 2009 3:27:31 AM
Subject: fftw says memory allocation error
thanks for your suggestion. I'll try it out.
Back to top Profile Email
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya