The version of octave installed on the workstations of the Physics Education Cluster (the ``ws##'' machines, not the login node ``ac'') actually have FFTW installed.
To get an idea of the performance enhancements associated with this package, first time the current ``fft3.m'' package which you are using:
cp /home/muchomas/P480/Octave/fft3_factored.m fft3.m
octave> setup octave> tic; poisson; runtime=toc octave> tic; poisson; runtime=toc octave> tic; poisson; runtime=toc
Next, install the direct call to the FFTW package with
cp /home/muchomas/P480/Octave/fft3w.m fft3.mand rerun the above timing test with
octave> setup octave> tic; poisson; runtime=toc octave> tic; poisson; runtime=toc octave> tic; poisson; runtime=tocYou should find that you get exactly the same results as before but at a notable improvement in performance.
Finally, before proceeding with the rest of this assignment, you may find it convenient to comment out the lines of code used in your final version of ``fft3.m'' to compute the MFLOPS rate, namely the two with the ``tic'' and ``MFLOPS=...'' commands.
Tomas Arias 2005-04-15