<?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: CPU Binaries - Sampled Data Post Processing Fails?</title>
		<link>http://www.k-wave.org/forum/topic/cpu-binaries-sampled-data-post-processing-fails</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 22:24: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/cpu-binaries-sampled-data-post-processing-fails" rel="self" type="application/rss+xml" />

		<item>
			<title>Jiri Jaros on "CPU Binaries - Sampled Data Post Processing Fails?"</title>
			<link>http://www.k-wave.org/forum/topic/cpu-binaries-sampled-data-post-processing-fails#post-8311</link>
			<pubDate>Tue, 21 Sep 2021 16:32:59 +0000</pubDate>
			<dc:creator>Jiri Jaros</dc:creator>
			<guid isPermaLink="false">8311@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi doguzaif,&#60;br /&#62;
honestly, I have no idea what can be wrong. I would have to inspect the output file. But looking at the error message, this might be a problem of writing HDF5 attributes. That has no impact on the simulation but attributes such as file description, CPU name, etc. may be missing. &#60;/p&#62;
&#60;p&#62;Best&#60;br /&#62;
Jiri
&#60;/p&#62;</description>
		</item>
		<item>
			<title>doguzaif on "CPU Binaries - Sampled Data Post Processing Fails?"</title>
			<link>http://www.k-wave.org/forum/topic/cpu-binaries-sampled-data-post-processing-fails#post-8079</link>
			<pubDate>Mon, 08 Mar 2021 12:47:13 +0000</pubDate>
			<dc:creator>doguzaif</dc:creator>
			<guid isPermaLink="false">8079@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Jiri, &#60;/p&#62;
&#60;p&#62;Thank you for your response. I'm attaching 1) My bash script, where you can see the modules I'm uploading, and 2) the output log.&#60;/p&#62;
&#60;p&#62;1) My script file&#60;/p&#62;
&#60;p&#62;'&#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.h5 --checkpoint_file check_pos1_sky --checkpoint_interval 20000&#60;br /&#62;
'&#60;/p&#62;
&#60;p&#62;2) Log&#60;/p&#62;
&#60;p&#62;This first one is the error report.&#60;br /&#62;
'&#60;br /&#62;
┌───────────────────────────────────────────────────────────────┐&#60;br /&#62;
│            !!! K-Wave experienced a fatal error !!!           │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│ basic_string::erase: __pos (which is 18446744073709551615) &#38;gt;  │&#60;br /&#62;
│        this-&#38;gt;size() (which is 14)                             │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│                      Execution terminated                     │&#60;br /&#62;
└───────────────────────────────────────────────────────────────┘&#60;br /&#62;
'&#60;br /&#62;
And this is the output report. I used the university's HPC system, called &#34;Balena&#34;. Also, this is the second leg of the computation, and the checkpoint file has been deleted since the task was completed.&#60;/p&#62;
&#60;p&#62;'[dz322@balena-01 execute2.1]$ cat StdOut.o.4015071&#60;br /&#62;
┌───────────────────────────────────────────────────────────────┐&#60;br /&#62;
│                   kspaceFirstOrder-OMP v1.3                   │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│ Reading simulation configuration:                        Done │&#60;br /&#62;
│ Number of CPU threads:                                     24 │&#60;br /&#62;
│ Processor name:      Intel(R) Xeon(R) Gold 6126 CPU @ 2.60GHz │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│                      Simulation details                       │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│ Domain dimensions:                                7500 x 7500 │&#60;br /&#62;
│ Medium type:                                               2D │&#60;br /&#62;
│ Simulation time steps:                                 136000 │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│                        Initialization                         │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│ Memory allocation:                                       Done │&#60;br /&#62;
│ Data loading:                                            Done │&#60;br /&#62;
│ Elapsed time:                                          62.30s │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│ Recovered from time step:                               98504 │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│ FFT plans creation:                                      Done │&#60;br /&#62;
│ Pre-processing phase:                                    Done │&#60;br /&#62;
│ Elapsed time:                                           0.11s │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│                    Computational resources                    │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│ Current host memory in use:                            4181MB │&#60;br /&#62;
│ Expected output file size:                              389MB │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│                          Simulation                           │&#60;br /&#62;
├──────────┬────────────────┬──────────────┬────────────────────┤&#60;br /&#62;
│ Progress │  Elapsed time  │  Time to go  │  Est. finish time  │&#60;br /&#62;
├──────────┼────────────────┼──────────────┼────────────────────┤&#60;br /&#62;
│    72%   │        0.331s  │   7609.713s  │  07/03/21 18:16:37 │&#60;br /&#62;
│    77%   │     1270.113s  │   6350.353s  │  07/03/21 18:16:48 │&#60;br /&#62;
│    82%   │     2656.418s  │   4971.005s  │  07/03/21 18:16:55 │&#60;br /&#62;
│    87%   │     4038.188s  │   3590.181s  │  07/03/21 18:16:56 │&#60;br /&#62;
│    92%   │     5421.730s  │   2209.407s  │  07/03/21 18:16:59 │&#60;br /&#62;
│    97%   │     6805.662s  │    828.360s  │  07/03/21 18:17:02 │&#60;br /&#62;
├──────────┴────────────────┴──────────────┴────────────────────┤&#60;br /&#62;
│ Elapsed time:                                        7642.89s │&#60;br /&#62;
├───────────────────────────────────────────────────────────────┤&#60;br /&#62;
│ Sampled data post-processing:                          Failed │&#60;br /&#62;
└───────────────────────────────────────────────────────────────┘&#60;/p&#62;
&#60;p&#62;########################################################################&#60;br /&#62;
----------------------! Balena Job Details !----------------------------&#60;/p&#62;
&#60;p&#62;JobID          : 4015071&#60;br /&#62;
No. of nodes   : 1&#60;br /&#62;
No. of CPUs    : 24&#60;br /&#62;
Timelimit      : 06:00:00&#60;br /&#62;
Elapsed time   : 02:08:30&#60;br /&#62;
Nodelist       : node-sky-001&#60;br /&#62;
Energy Used    : 2665375.56 Joules&#60;/p&#62;
&#60;p&#62;########################################################################&#60;br /&#62;
'&#60;br /&#62;
It still does give a final output file, and the results look fine. I'm just not sure what the &#34;sampled data post-processing&#34; step does to the results at the end? &#60;/p&#62;
&#60;p&#62;Many thanks,&#60;br /&#62;
Dogu
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jiri Jaros on "CPU Binaries - Sampled Data Post Processing Fails?"</title>
			<link>http://www.k-wave.org/forum/topic/cpu-binaries-sampled-data-post-processing-fails#post-8076</link>
			<pubDate>Wed, 03 Mar 2021 18:28:55 +0000</pubDate>
			<dc:creator>Jiri Jaros</dc:creator>
			<guid isPermaLink="false">8076@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Dogu,&#60;/p&#62;
&#60;p&#62;I've never seen this error before. Could you be more specific?&#60;br /&#62;
1. Did you compile the binary by yourself? If so, what compiler and library versions did you use&#60;br /&#62;
2. Could you share the whole log with me?&#60;/p&#62;
&#60;p&#62;Best wishes&#60;br /&#62;
Jiri
&#60;/p&#62;</description>
		</item>
		<item>
			<title>doguzaif on "CPU Binaries - Sampled Data Post Processing Fails?"</title>
			<link>http://www.k-wave.org/forum/topic/cpu-binaries-sampled-data-post-processing-fails#post-8075</link>
			<pubDate>Wed, 03 Mar 2021 13:38:02 +0000</pubDate>
			<dc:creator>doguzaif</dc:creator>
			<guid isPermaLink="false">8075@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;So when I run a k-Wave simulation using CPU binaries on my uni's HPC, I get this error at the end of the simulation. According to the error and performance reports, all the steps complete successfully, yet at the prior to &#34;sampled data post processing&#34; step, I get this error:&#60;/p&#62;
&#60;p&#62;│ basic_string::erase: __pos (which is 18446744073709551615) &#38;gt;  │&#60;br /&#62;
│        this-&#38;gt;size() (which is 14)  &#60;/p&#62;
&#60;p&#62;Could anybody offer any help to do with this? Would be much appreciated, many thanks from now.&#60;/p&#62;
&#60;p&#62;Best wishes,&#60;br /&#62;
Dogu Zaifoglu&#60;br /&#62;
PhD Researcher in Mechanical Engineering&#60;br /&#62;
MEng, University of Bath
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
