<?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: Optimised Codes - Using Checkpoints</title>
		<link>http://www.k-wave.org/forum/topic/optimised-codes-using-checkpoints</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:24:52 +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/optimised-codes-using-checkpoints" rel="self" type="application/rss+xml" />

		<item>
			<title>doguzaif on "Optimised Codes - Using Checkpoints"</title>
			<link>http://www.k-wave.org/forum/topic/optimised-codes-using-checkpoints#post-8078</link>
			<pubDate>Mon, 08 Mar 2021 12:40:05 +0000</pubDate>
			<dc:creator>doguzaif</dc:creator>
			<guid isPermaLink="false">8078@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Jiri,&#60;/p&#62;
&#60;p&#62;Thank you for your response - it was indeed as simple as running the code again! &#60;/p&#62;
&#60;p&#62;And thank you for your tips regarding the script; I'll look into automating the process.&#60;/p&#62;
&#60;p&#62;Kind regards,&#60;br /&#62;
Dogu
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jiri Jaros on "Optimised Codes - Using Checkpoints"</title>
			<link>http://www.k-wave.org/forum/topic/optimised-codes-using-checkpoints#post-8077</link>
			<pubDate>Wed, 03 Mar 2021 18:36:29 +0000</pubDate>
			<dc:creator>Jiri Jaros</dc:creator>
			<guid isPermaLink="false">8077@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Dogu,&#60;br /&#62;
it's really simple, just start it again with the same parameters. If the binary finds the checkpoint file, it will continue from the point where it was interrupted. If not, it will start from the beginning!&#60;/p&#62;
&#60;p&#62;In order to automate the whole process, I check the output file and compare datasets t_index and Nt. If they are equal, the simulation has finished. If not, I resubmit the same job (you can do it as the last command in your bash script). You can use, e.g., h5dump to read the data, or use pyh5 (&#60;a href=&#34;https://docs.h5py.org/en/stable/high/dataset.html&#34; rel=&#34;nofollow&#34;&#62;https://docs.h5py.org/en/stable/high/dataset.html&#60;/a&#62;)&#60;/p&#62;
&#60;p&#62;Best wishes&#60;br /&#62;
Jiri
&#60;/p&#62;</description>
		</item>
		<item>
			<title>doguzaif on "Optimised Codes - Using Checkpoints"</title>
			<link>http://www.k-wave.org/forum/topic/optimised-codes-using-checkpoints#post-8073</link>
			<pubDate>Mon, 01 Mar 2021 22:39:01 +0000</pubDate>
			<dc:creator>doguzaif</dc:creator>
			<guid isPermaLink="false">8073@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;I have a simulation at hand that looks like it will take ~8 hours on the cluster machine I have access to, yet I can run simulations for only 6 hours in one job submission. Using a bash script, I have managed to create a checkpoint file for the first leg of the simulation. However, at the moment I am not sure how to make the second leg start from where the checkpoint file was created. Does this just happen automatically when I run the same simulation script? Here is my code:&#60;/p&#62;
&#60;p&#62;#!/bin/bash&#60;/p&#62;
&#60;p&#62;#SBATCH --nodes=1&#60;br /&#62;
#SBATCH --ntasks-per-node=24&#60;/p&#62;
&#60;p&#62;#SBATCH --mem=60000&#60;/p&#62;
&#60;p&#62;#SBATCH --time=6:00:00&#60;/p&#62;
&#60;p&#62;#SBATCH --job-name=position1&#60;br /&#62;
#SBATCH --account=free&#60;br /&#62;
#SBATCH --partition=batch-sky&#60;/p&#62;
&#60;p&#62;#SBATCH --mail-user=dz322@bath.ac.uk&#60;/p&#62;
&#60;p&#62;#SBATCH --output=StdOut.o.%j&#60;br /&#62;
#SBATCH --error=StdErr.e.%j&#60;/p&#62;
&#60;p&#62;module purge&#60;br /&#62;
module load slurm&#60;br /&#62;
module load matlab&#60;br /&#62;
module load hdf5/intel&#60;br /&#62;
module load intel/compiler/64/18.5.274&#60;br /&#62;
module load intel/mkl/64/18.5.274&#60;br /&#62;
module load fftw3/intel/avx/3.3.4&#60;br /&#62;
module load gcc/9.2.0&#60;/p&#62;
&#60;p&#62;export OMP_NUM_THREADS=24&#60;br /&#62;
export OMP_PLACES=cores&#60;br /&#62;
export OMP_PROC_BIND=true&#60;/p&#62;
&#60;p&#62;../kwave/kspaceFirstOrder-OMP/skylake/kspaceFirstOrder-OMP -i position1.h5 -o pos1_out_sky_2.h5 --checkpoint_file check_pos5_sky --checkpoint_interval 20000&#60;/p&#62;
&#60;p&#62;The manual is talking about putting a loop in the bash script, yet I am unsure as to how I can implement this. Any help to do with this would be greatly appreciated. Many thanks!&#60;/p&#62;
&#60;p&#62;Best wishes,&#60;br /&#62;
Dogu Zaifoglu&#60;br /&#62;
PhD candidate in Mechanical Engineering&#60;br /&#62;
MEng, University of Bath
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
