<?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: memory requirments for larfe grid</title>
		<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:28:24 +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/memory-requirments-for-larfe-grid" rel="self" type="application/rss+xml" />

		<item>
			<title>umitarabul on "memory requirments for larfe grid"</title>
			<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid#post-5507</link>
			<pubDate>Tue, 17 May 2016 15:31:31 +0000</pubDate>
			<dc:creator>umitarabul</dc:creator>
			<guid isPermaLink="false">5507@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Thanks for the answer Dr. Treeby. I will look at those two studies.&#60;/p&#62;
&#60;p&#62;Umit
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "memory requirments for larfe grid"</title>
			<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid#post-5503</link>
			<pubDate>Sun, 15 May 2016 15:50:22 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5503@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi umitarabul,&#60;/p&#62;
&#60;p&#62;Anthony Grisey did something similar to this in &#60;a href=&#34;http://jtultrasound.biomedcentral.com/articles/10.1186/s40349-016-0056-9&#34;&#62;this paper&#60;/a&#62;. There are a few related forum posts, for example, &#60;a href=&#34;http://www.k-wave.org/forum/topic/simulation-layer-by-layer&#34;&#62;here&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>umitarabul on "memory requirments for larfe grid"</title>
			<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid#post-5496</link>
			<pubDate>Tue, 10 May 2016 13:13:39 +0000</pubDate>
			<dc:creator>umitarabul</dc:creator>
			<guid isPermaLink="false">5496@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Is it possible to divide the volume in pieces and run simulations separately and superpose the solutions? Is there a way to define the output of one block as input to the neighbor block? If we neglect non-linearity for example?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "memory requirments for larfe grid"</title>
			<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid#post-5445</link>
			<pubDate>Mon, 04 Apr 2016 21:05:05 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5445@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Benji,&#60;/p&#62;
&#60;p&#62;This equation only applies to the C++ code. There is a significant difference between the two codes, with the C++ code being heavily optimised. I would definitely use this for larger problems if at all possible. Also, if you're trying to conserve memory, it's a good idea to run the C++ code outside of MATLAB using the &#60;code&#62;SaveToDisk&#60;/code&#62; option rather than the inbuilt &#60;code&#62;kspaceFirstOrder3DC&#60;/code&#62; function. This avoids the variables being in memory twice (once in MATLAB and once in C++).&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>benji on "memory requirments for larfe grid"</title>
			<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid#post-5433</link>
			<pubDate>Fri, 18 Mar 2016 14:26:47 +0000</pubDate>
			<dc:creator>benji</dc:creator>
			<guid isPermaLink="false">5433@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hi,&#60;br /&#62;
Bradly - thank u. is the equation relevant also to the MATLAB case?&#60;br /&#62;
is their a difference in memory requirments between the matlab and C codes?&#60;br /&#62;
I tried running a hetrogenious  grid of 768X768X768 with the MATLAB code using 45GB of physical memory and 45GB of virtual memory (90gb in total)&#60;br /&#62;
it crushes because of memory issues, while according to equation 4.1 it requires only 25-30GB. &#60;/p&#62;
&#60;p&#62;marlen - sorry, but i have no magical solution, and as it seems so does Brad:). got to customize your simulation to meet practical limitations... I for instance will probably have to compromise on grid size and work with lower frequency.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "memory requirments for larfe grid"</title>
			<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid#post-5419</link>
			<pubDate>Wed, 16 Mar 2016 13:23:31 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5419@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi benji,&#60;/p&#62;
&#60;p&#62;If you are using the C++ code, there is a formulae for the memory requirements given in Eq. 4.1 in the &#60;a href=&#34;http://www.k-wave.org/documentation.php&#34;&#62;user manual&#60;/a&#62; (section 4.9). It neglects a few small matrices, but it should give you a reasonable estimate.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>marlenep on "memory requirments for larfe grid"</title>
			<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid#post-5418</link>
			<pubDate>Wed, 16 Mar 2016 12:25:18 +0000</pubDate>
			<dc:creator>marlenep</dc:creator>
			<guid isPermaLink="false">5418@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Benji,&#60;br /&#62;
I have your same problem...have you found any solution? thank you very much for any suggestion
&#60;/p&#62;</description>
		</item>
		<item>
			<title>benji on "memory requirments for larfe grid"</title>
			<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid#post-5415</link>
			<pubDate>Sun, 13 Mar 2016 19:34:27 +0000</pubDate>
			<dc:creator>benji</dc:creator>
			<guid isPermaLink="false">5415@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hi,&#60;br /&#62;
Jiri - although u havent made me any more optimistic, thank u very much for your reply.&#60;/p&#62;
&#60;p&#62;a 2D simulation won't be helpful in that case. It must be a 3D one.&#60;br /&#62;
as i said, i have about 200GB RAM memory available (includes both physical and virtual memory) at max. i will have to do the best under those contrains.&#60;/p&#62;
&#60;p&#62;how can i calculte memory requirments as a function of grid size? is their some thumb rule or simlpe equation to evluate that?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jiri Jaros on "memory requirments for larfe grid"</title>
			<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid#post-5414</link>
			<pubDate>Sat, 12 Mar 2016 22:34:26 +0000</pubDate>
			<dc:creator>Jiri Jaros</dc:creator>
			<guid isPermaLink="false">5414@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Benji,&#60;br /&#62;
It may be possible to run such a simulation with the MPI code, however, it would be extremely expensive!&#60;/p&#62;
&#60;p&#62;To simulate the wave propagating over 3000^3, you would need about 3TB of RAM. The simulation would have to run over at least 50k time steps. Using 3000 compute cores, and predicting that a time step would last 20s, you would have to wait for 277 hours for the simulation to complete. Taking into account 1 core-hours is for $0.1, you’d have to pay $83,000, which is, you’ll agree, quite impractical. &#60;/p&#62;
&#60;p&#62;We’re working on the faster GPU code, we hope could get the simulation cost below $10k, but still it’s really expensive for routine runs.&#60;/p&#62;
&#60;p&#62;I’d recommend you to start with a 2D slice. That would be much cheaper and faster.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>benji on "memory requirments for larfe grid"</title>
			<link>http://www.k-wave.org/forum/topic/memory-requirments-for-larfe-grid#post-5407</link>
			<pubDate>Sun, 28 Feb 2016 23:42:37 +0000</pubDate>
			<dc:creator>benji</dc:creator>
			<guid isPermaLink="false">5407@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi again,&#60;br /&#62;
as mentioned in my previous post - I am simulating acoustic propagation in a humen body phantom. the desired max frequancy is around f=3MHz, and the 3D dimensions should be at minimum 12cmX12cmX12cm.&#60;/p&#62;
&#60;p&#62;in order to simulate body surface returns, the computational grid includs air with a sound speed of around 300m/s.&#60;/p&#62;
&#60;p&#62;That makes the greed spacing: dx=dy=dz= Cmin/[(num. of greed points per wave length)*fmax]&#60;br /&#62;
I saw on the k-wave guide it is recomended to have num. of greed points per wave length at least 3-4 in a heteroginious medium. Cmin is 300m/s as mentioned above.&#60;br /&#62;
that makes dx=dy=dz=~0.03mm.&#60;br /&#62;
that meens the grid size shouldvbe about 3000X3000X3000 big.&#60;/p&#62;
&#60;p&#62;What would the memory requirments be to handle such a grid?&#60;br /&#62;
i saw somwhere on the forum here that a 256X256X256 would require 6GB, so linearly interpulating i guess I would need some 12,000GB... :-o&#60;br /&#62;
1. am i right?&#60;br /&#62;
2. any practical ideas how to run such a simulation given a powerful university cluster with up to some 200GB or so ?&#60;/p&#62;
&#60;p&#62;thank u,&#60;br /&#62;
Benji
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
