<?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: Large grid gives &#34;Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C&#34;</title>
		<link>http://www.k-wave.org/forum/topic/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:30:37 +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/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c" rel="self" type="application/rss+xml" />

		<item>
			<title>ttiennot on "Large grid gives &#34;Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c#post-6131</link>
			<pubDate>Mon, 11 Sep 2017 08:16:08 +0000</pubDate>
			<dc:creator>ttiennot</dc:creator>
			<guid isPermaLink="false">6131@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Jiri,&#60;/p&#62;
&#60;p&#62;Thank you for your answer, I will try to work with the CPU code in the future.&#60;/p&#62;
&#60;p&#62;Thomas
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jiri Jaros on "Large grid gives &#34;Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c#post-6129</link>
			<pubDate>Fri, 08 Sep 2017 21:24:48 +0000</pubDate>
			<dc:creator>Jiri Jaros</dc:creator>
			<guid isPermaLink="false">6129@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Thomas,&#60;br /&#62;
This is the same error as before. I just unified the error messages with Nvidia CUDA. The problem is that the simulation is obviously big. You'd need about ~12-15GB just for simulation data depending on heterogeneity. In your case, you may be able to accommodate the data in GPU memory. However, the CUDA FFT library also needs some scratch place to calculate FFTs in parallel. And that's where the simulation crashed due to out-of-memory problem. &#60;/p&#62;
&#60;p&#62;The only solution for you is the CPU code (or getting P40 GPU with 24GB of memory).&#60;/p&#62;
&#60;p&#62;Jiri
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ttiennot on "Large grid gives &#34;Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c#post-6128</link>
			<pubDate>Wed, 06 Sep 2017 12:02:02 +0000</pubDate>
			<dc:creator>ttiennot</dc:creator>
			<guid isPermaLink="false">6128@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Brad,&#60;/p&#62;
&#60;p&#62;Thank you very much for your quick answer !&#60;/p&#62;
&#60;p&#62;I am working with a 1024*512*256 matrix which explains why this bug occurs I think... Do you have an idea on how i could steel use k-wave with such heavy matrices ?&#60;/p&#62;
&#60;p&#62;Thanks again,&#60;/p&#62;
&#60;p&#62;Thomas
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Large grid gives &#34;Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c#post-6126</link>
			<pubDate>Wed, 06 Sep 2017 11:34:17 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6126@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Thomas,&#60;/p&#62;
&#60;p&#62;What are your dimension sizes? If you use the formula to calculate the memory usage given in the user manual (Section 4.9), does this exceed the amount of memory available on the GPU?&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ttiennot on "Large grid gives &#34;Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c#post-6125</link>
			<pubDate>Wed, 06 Sep 2017 08:45:32 +0000</pubDate>
			<dc:creator>ttiennot</dc:creator>
			<guid isPermaLink="false">6125@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am currently working with the 1.2 version of the GPU code on a GE Force GTE TITAN X. &#60;/p&#62;
&#60;p&#62;With 1.1 version I used to get the error &#34;Failed to execute an cuFFT on the GPU&#34;. I do not have this error anymore but I have a new one : &#34;Error: cuFFT failed to allocate GPU or CPU memory while creating plan for 3D complex-to-real fft.&#34;&#60;/p&#62;
&#60;p&#62;Do you know what might be the problem?&#60;/p&#62;
&#60;p&#62;Thank you,&#60;/p&#62;
&#60;p&#62;Thomas
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "Large grid gives &#34;Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c#post-6112</link>
			<pubDate>Wed, 23 Aug 2017 19:44:06 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">6112@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Suma,&#60;/p&#62;
&#60;p&#62;I'm fairly certain all of these issues have been fixed for k-Wave V1.2, which will be out before the IEEE IUS conference (less than two weeks time).&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sanand on "Large grid gives &#34;Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c#post-6104</link>
			<pubDate>Fri, 11 Aug 2017 21:35:17 +0000</pubDate>
			<dc:creator>sanand</dc:creator>
			<guid isPermaLink="false">6104@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Jiri,&#60;br /&#62;
I get this error on two different GPus: GeForce Titan X GPU and Tesla K40c. I was wondering if you had made any progress?&#60;br /&#62;
Thanks!&#60;br /&#62;
Suma
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jiri Jaros on "Large grid gives &#34;Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c#post-5873</link>
			<pubDate>Thu, 30 Mar 2017 11:38:06 +0000</pubDate>
			<dc:creator>Jiri Jaros</dc:creator>
			<guid isPermaLink="false">5873@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi erlendsriis,&#60;br /&#62;
I also noticed this bug but only on Pascal GPUs. Here, you show it also crashes on K40 which is Kepler I think. I will have to take a closer look at this. However, from the top of my mind, the CUDA FFT parameters are Nx, Ny, Nz and a buffer. So, I'm not sure why it did not work.&#60;/p&#62;
&#60;p&#62;Will give it a try when updating the code for CUDA 8.0&#60;/p&#62;
&#60;p&#62;Jiri
&#60;/p&#62;</description>
		</item>
		<item>
			<title>erlendsriis on "Large grid gives &#34;Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C&#34;"</title>
			<link>http://www.k-wave.org/forum/topic/large-grid-gives-failed-to-execute-an-cufft-on-the-gpu-for-execute_fft_3d_r2c#post-5843</link>
			<pubDate>Tue, 28 Feb 2017 12:42:46 +0000</pubDate>
			<dc:creator>erlendsriis</dc:creator>
			<guid isPermaLink="false">5843@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;(I see that someone else in this forum have experienced the same problem with a Pascal GPU.) I am using the CUDA 7.5 binary file. When I run CUDA simulations for small enough grid sizes it works fine, but when I try to run it for a 400x400x400 grid, I get a &#34;Error : Failed to execute an cuFFT on the GPU for Execute_FFT_3D_R2C.&#34;&#60;/p&#62;
&#60;p&#62;Regarding memory requirements, the CUDA card should have about 12 GB of memory, and the script prints &#34;Current host memory in use: 4514MB. Current device memory in use: 4957MB&#34;.&#60;/p&#62;
&#60;p&#62;I use the following CUDA version: &#34;NVIDIA (R) Cuda compiler driver, Cuda compilation tools, release 7.5, V7.5.17&#34;. The CUDA card is a Tesla K40c which has 11439MiB of memory.&#60;/p&#62;
&#60;p&#62;Do you know what might be the problem here?&#60;/p&#62;
&#60;p&#62;Thanks in advance,&#60;br /&#62;
Erlend
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
