<?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: running k-wave simulation in linux terminal</title>
		<link>http://www.k-wave.org/forum/topic/running-k-wave-simulation-in-linux-terminal</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:01:41 +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/running-k-wave-simulation-in-linux-terminal" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "running k-wave simulation in linux terminal"</title>
			<link>http://www.k-wave.org/forum/topic/running-k-wave-simulation-in-linux-terminal#post-5528</link>
			<pubDate>Wed, 08 Jun 2016 21:18:39 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5528@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi benji,&#60;/p&#62;
&#60;p&#62;Unfortunately this is a common problem using MATLAB's inbuilt interpolation function. One way to save some memory is to save to disk in parts. There is an example in the k-Wave MATLAB help covering how to do this, although I think this currently skips calculating the density on a staggered grid (it probably shouldn't).&#60;/p&#62;
&#60;p&#62;For larger input files, we always save to disk in parts, and get around the MATLAB interp problem by using a C++ mex function to perform the interpolation. I'd be happy to send it to you if that's helpful.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>benji on "running k-wave simulation in linux terminal"</title>
			<link>http://www.k-wave.org/forum/topic/running-k-wave-simulation-in-linux-terminal#post-5522</link>
			<pubDate>Sun, 05 Jun 2016 21:46:19 +0000</pubDate>
			<dc:creator>benji</dc:creator>
			<guid isPermaLink="false">5522@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;thank u, that was a silly question of mine:)&#60;/p&#62;
&#60;p&#62;i have a matlab script that creates an input file for the c++ binary.&#60;br /&#62;
i am running that script in linux OS on university servers, using PBS (Portable Batch System).&#60;/p&#62;
&#60;p&#62;i have created successfully input files for a grid of sizes 128^3,256^3 and 512^3, using 10-15GB.&#60;br /&#62;
when trying to create an input file for a 768^3 and larger, MATLAB bring up the next error:&#60;/p&#62;
&#60;p&#62;///////////////////////////////////////////&#60;br /&#62;
Error using griddedInterpolant/subsref&#60;br /&#62;
Out of memory. Type HELP MEMORY for your options.&#60;/p&#62;
&#60;p&#62;Error in interpn (line 178)&#60;br /&#62;
    Vq = F(Xq{:});&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder3D (line 556)&#60;br /&#62;
    rho0_sgy = interpn(kgrid.x, kgrid.y, kgrid.z, rho0, kgrid.x, kgrid.y + kgrid.dy/2, kgrid.z, '*linear');&#60;/p&#62;
&#60;p&#62;Error in create_input_1024_1024_1024 (line 51)&#60;br /&#62;
kspaceFirstOrder3D(kgrid, medium, source, sensor, input_args{:},'SaveToDisk',filename);&#60;/p&#62;
&#60;p&#62;////////////////////////////////////////&#60;/p&#62;
&#60;p&#62;i note that i have been trying to run that with up to 48GB of physical memory+48GB of vmem (the maxumum i can be allocated at the moment). i believe 48GB shoukd be much more than inough to create a 678X678X678 or 1024X1024X1024 grid input file (using wsave to disc').&#60;/p&#62;
&#60;p&#62;what could be the reason for that and how can it be solved?&#60;/p&#62;
&#60;p&#62;thank u very much,&#60;br /&#62;
benji
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jiri Jaros on "running k-wave simulation in linux terminal"</title>
			<link>http://www.k-wave.org/forum/topic/running-k-wave-simulation-in-linux-terminal#post-5501</link>
			<pubDate>Fri, 13 May 2016 23:57:16 +0000</pubDate>
			<dc:creator>Jiri Jaros</dc:creator>
			<guid isPermaLink="false">5501@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Benji,&#60;br /&#62;
you've got to add +x permission &#60;/p&#62;
&#60;p&#62;chmod +x ./kspaceFirstOrder3D-OMP&#60;/p&#62;
&#60;p&#62;the you can run the code by&#60;br /&#62;
./kspaceFirstOrder3D-OMP ...&#60;/p&#62;
&#60;p&#62;Jiri
&#60;/p&#62;</description>
		</item>
		<item>
			<title>benji on "running k-wave simulation in linux terminal"</title>
			<link>http://www.k-wave.org/forum/topic/running-k-wave-simulation-in-linux-terminal#post-5491</link>
			<pubDate>Wed, 04 May 2016 21:55:14 +0000</pubDate>
			<dc:creator>benji</dc:creator>
			<guid isPermaLink="false">5491@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hi,&#60;br /&#62;
i sm trying to use the C++ code in order to run large grid simulations.&#60;br /&#62;
I created a h5 input file in local matlab (kwave_input_data_128_64_64.h5), and run the next script:&#60;/p&#62;
&#60;p&#62;#!/bin/csh&#60;/p&#62;
&#60;p&#62;./kspaceFirstOrder3D-OMP -i kwave_input_data_128_64_64.h5 -o output_data.h5&#60;/p&#62;
&#60;p&#62;exit&#60;/p&#62;
&#60;p&#62;I get the next error &#34;line 3: ./kspaceFirstOrder3D-OMP: Permission denied&#34;&#60;/p&#62;
&#60;p&#62;when running without ./ iget the next error: &#34;kspaceFirstOrder3D-OMP: Command not found.&#34;&#60;/p&#62;
&#60;p&#62;what is the reason?&#60;br /&#62;
Thank you,&#60;br /&#62;
benj
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
