<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>k-Wave User Forum &#187; Topic: FFT Plans Creation</title>
		<link>http://www.k-wave.org/forum/topic/fft-plans-creation</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:32:33 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/fft-plans-creation" rel="self" type="application/rss+xml" />

		<item>
			<title>Jiri Jaros on "FFT Plans Creation"</title>
			<link>http://www.k-wave.org/forum/topic/fft-plans-creation#post-6943</link>
			<pubDate>Mon, 01 Jul 2019 10:34:00 +0000</pubDate>
			<dc:creator>Jiri Jaros</dc:creator>
			<guid isPermaLink="false">6943@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Tony,&#60;br /&#62;
from the point of viewt the C++ code, every scan line is an independent simulation. That's why it generates a new plan for FFT. (In general, every simulation can be of different sizes, that's why the code generates a new one every time).&#60;/p&#62;
&#60;p&#62;In the provided binary, the MKL is used and the planing phase should be instant. If you compile it with FFTW, you can change the level of planning and speed the pre-processing phase up.&#60;br /&#62;
1. Open the source file MatrixClasses/FftwComplexMatrix.h&#60;br /&#62;
2. change this line&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;static const unsigned kFftMeasureFlag  = FFTW_MEASURE;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;static const unsigned kFftMeasureFlag  = FFTW_ESTIMATE;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;In the future, I may add a flag to import system-wise wisdom or the one stored in file.&#60;br /&#62;
Best wishes&#60;br /&#62;
Jiri
&#60;/p&#62;</description>
		</item>
		<item>
			<title>guns2roses on "FFT Plans Creation"</title>
			<link>http://www.k-wave.org/forum/topic/fft-plans-creation#post-6872</link>
			<pubDate>Wed, 05 Jun 2019 16:33:55 +0000</pubDate>
			<dc:creator>guns2roses</dc:creator>
			<guid isPermaLink="false">6872@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;I use kspaceFirstOrder3DG(...) for phased array B-mode ultrasound imaging simulation. However, when computing each scan line, the initialisation step always appears before the actual simulation. In the initialisation process, the &#34;FFT plans creation&#34; takes most of the computational time (about 3 - 4 mins for grid size 900*900*25 points, time steps: 6307). I understand that this depends on the throughput of the CPU, but I wonder why the simulation has to do it for every single scan line calculation as the medium is always the same in each iteration. Would it be possible to just do the initialisation at the very beginning of the simulation, saved it, and used it for the rest of the scan line simulations? If this is possible, we would save quite significant amount of time for the simulation (eg. 4 mins*65 scan lines = 4.33 hrs). Thanks a million :)&#60;/p&#62;
&#60;p&#62;Best wishes,&#60;/p&#62;
&#60;p&#62;Toni
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
