<?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: GPU error: an illegal memory access was encountered routine</title>
		<link>http://www.k-wave.org/forum/topic/gpu-error-an-illegal-memory-access-was-encountered-routine</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:26:51 +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/gpu-error-an-illegal-memory-access-was-encountered-routine" rel="self" type="application/rss+xml" />

		<item>
			<title>BIlly on "GPU error: an illegal memory access was encountered routine"</title>
			<link>http://www.k-wave.org/forum/topic/gpu-error-an-illegal-memory-access-was-encountered-routine#post-8915</link>
			<pubDate>Thu, 21 Sep 2023 14:58:24 +0000</pubDate>
			<dc:creator>BIlly</dc:creator>
			<guid isPermaLink="false">8915@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;After 3 straight days trying to debug this the error seems to have gone away on its own, that's computers for you :) Hopefully I don't encounter it again...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>BIlly on "GPU error: an illegal memory access was encountered routine"</title>
			<link>http://www.k-wave.org/forum/topic/gpu-error-an-illegal-memory-access-was-encountered-routine#post-8912</link>
			<pubDate>Fri, 15 Sep 2023 17:27:01 +0000</pubDate>
			<dc:creator>BIlly</dc:creator>
			<guid isPermaLink="false">8912@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I'm very suspicious the error is caused by the GPU not releasing enough resources after the first process is complete, which would explain why the 2D reconstructions (which barely use any resources) are running fine. My forward simulations are on a 1024*128*1024 grid at 32 bit floating point precision, the A100s have 80GB of GPU RAM which should be more than enough.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Billy.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>BIlly on "GPU error: an illegal memory access was encountered routine"</title>
			<link>http://www.k-wave.org/forum/topic/gpu-error-an-illegal-memory-access-was-encountered-routine#post-8911</link>
			<pubDate>Fri, 15 Sep 2023 15:31:41 +0000</pubDate>
			<dc:creator>BIlly</dc:creator>
			<guid isPermaLink="false">8911@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Greetings all, &#60;/p&#62;
&#60;p&#62;First off let me say K-Wave has been an invaluable tool for me and it's been running brilliantly on my workstation for months. Since I intend to run bigger simulations (and lots of them) I'm now trying to run kspaceFirstOrder-CUDA on my department's HPC using A100s. Unfortunately it doesn't seem to get very far and I receive the following:&#60;br /&#62;
'&#60;br /&#62;
INFO:root:k-wave forward, cycle: 1, wavelength_index: 1, pulse: 1&#60;br /&#62;
INFO:root:p0 loaded in 0.09530607238411903 seconds&#60;br /&#62;
INFO:root:kwave forward run in 229.18575995601714 seconds&#60;br /&#62;
INFO:root:sensor data saved in 0.010119317099452019 seconds&#60;br /&#62;
INFO:root:k-wave forward, cycle: 1, wavelength_index: 2, pulse: 1&#60;br /&#62;
INFO:root:p0 loaded in 0.021063480526208878 seconds&#60;br /&#62;
┌───────────────────────────────────────────────────────────────┐&#60;br /&#62;
│            !!! K-Wave experienced a fatal error !!!           │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│ GPU error: an illegal memory access was encountered routine   │&#60;br /&#62;
│        name: cudaGetLastError() in file OutputStreams/        │&#60;br /&#62;
│        OutputStreamsCudaKernels.cu, line 130.                 │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│                      Execution terminated                     │&#60;br /&#62;
└───────────────────────────────────────────────────────────────┘&#60;br /&#62;
'&#60;br /&#62;
Now my script is simulating time-series images, so it runs k-wave multiple times. For the first run (&#34;cycle: 1, wavelength_index: 1, pulse: 1&#34;), it works fine! The output also seems completely sensible. But as soon as it reaches pulse number two it encounters the error. It's most probably related to the HPC since I haven't encountered this on my workstation, just wondering if anybody has seen anything similar or might have any idea as to what's causing this? The time reversal reconstructions are also set to run after the forward simulations and these are completely fine - although they are 2D and thus only require a fraction of the resources.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
