<?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: Problems about GPU memory used</title>
		<link>http://www.k-wave.org/forum/topic/problems-about-gpu-memory-used</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:28:38 +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/problems-about-gpu-memory-used" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Problems about GPU memory used"</title>
			<link>http://www.k-wave.org/forum/topic/problems-about-gpu-memory-used#post-8758</link>
			<pubDate>Wed, 17 May 2023 18:53:42 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">8758@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I’d advise switching to the C++/CUDA version of the GPU code - it uses much less memory in general, and the memory usage can be calculated reasonably accurately. Unfortunately, when using gpuArray, I’m not exactly sure how the inbuilt memory management of MATLAB works under the hood, and why the memory usage might change in these two cases.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zhaoxiang on "Problems about GPU memory used"</title>
			<link>http://www.k-wave.org/forum/topic/problems-about-gpu-memory-used#post-8713</link>
			<pubDate>Tue, 07 Mar 2023 09:52:22 +0000</pubDate>
			<dc:creator>zhaoxiang</dc:creator>
			<guid isPermaLink="false">8713@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi, firstly I have to say this toolbox is very useful. However, I have a problem that has troubled me a lot.&#60;/p&#62;
&#60;p&#62;The problem is about GPU memory used. The code is run on A100(40GB). It looked normal at first：&#60;/p&#62;
&#60;p&#62;estimated simulation time 2hours 6min 29.7093s...&#60;br /&#62;
  GPU memory used: 21.9727 GB (of 39.5871 GB)&#60;br /&#62;
  simulation completed in 2hours 6min 36.3867s&#60;/p&#62;
&#60;p&#62;It looked like it was over but next something happende：&#60;/p&#62;
&#60;p&#62;{Error using gpuArray/ifft&#60;br /&#62;
Out of memory on device. MATLAB was unable to allocate sufficient resources on&#60;br /&#62;
the GPU to complete this operation. If the problem persists, reset the GPU by&#60;br /&#62;
calling 'gpuDevice(1)'.&#60;/p&#62;
&#60;p&#62;Error in fourierShift (line 112)&#60;br /&#62;
data = real(ifft(bsxfun(@times, ifftshift( exp(1i .* k_vec .* shift) ),&#60;br /&#62;
fft(data, [], dim)), [], dim));&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrder_saveIntensity (line 46)&#60;br /&#62;
    ux_sgt     = fourierShift(sensor_data(sensor_mask_index).ux_non_staggered,&#60;br /&#62;
    1/2);&#60;/p&#62;
&#60;p&#62;Error in kspaceFirstOrderAS (line 1387)&#60;br /&#62;
    kspaceFirstOrder_saveIntensity;&#60;/p&#62;
&#60;p&#62;Error in code1 (line 169)&#60;br /&#62;
        sensor_data = kspaceFirstOrderAS(kgrid, medium, source, sensor, ...&#60;br /&#62;
} &#60;/p&#62;
&#60;p&#62;And I have another question about GPU memory used.&#60;br /&#62;
There is another case which can be run on A100 and the GPU memory used is 3.5964 GB (of 39.5871 GB). However, this case cannot not be run on a GPU of 6GB.&#60;/p&#62;
&#60;p&#62;Could anybody tell me why?&#60;br /&#62;
Thanks in advance.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
