<?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: libmvec</title>
		<link>http://www.k-wave.org/forum/topic/libmvec</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:27:53 +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/libmvec" rel="self" type="application/rss+xml" />

		<item>
			<title>Jiri Jaros on "libmvec"</title>
			<link>http://www.k-wave.org/forum/topic/libmvec#post-6386</link>
			<pubDate>Fri, 06 Apr 2018 08:54:51 +0000</pubDate>
			<dc:creator>Jiri Jaros</dc:creator>
			<guid isPermaLink="false">6386@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi&#60;br /&#62;
I did see this problem on a couple of systems. libmvec is a C++ Math library with SSE/AVX vectorization, however, I'm not sure why the code cannot find it, it may have been replaced by Matlab. It also might be causes by the fact the code was compiled with GCC 5.4 and CUDA 8.0&#60;/p&#62;
&#60;p&#62;To solve it, I'd try one one of these possibilities:&#60;br /&#62;
1. Try to run ./kspaceFirstOrder3D-CUDA to see what happens if the CUDA code is launched as a standalone application.&#60;br /&#62;
1. Try to load proper modules.&#60;br /&#62;
2. Find the libm.so file, typically it can be found in /lib/x86_64-linux-gnu and change the LD_LIBRARY_PATH in the system command.&#60;br /&#62;
3. Try to download the libs from here: &#60;a href=&#34;http://www.fit.vutbr.cz/~jarosjir/download/libm.tgz&#34; rel=&#34;nofollow&#34;&#62;http://www.fit.vutbr.cz/~jarosjir/download/libm.tgz&#60;/a&#62;&#60;br /&#62;
4. Recompile the code from sources. It should be easy, once you find the HDF5 module and set the paths to CUDA and HDF5 in the makefile.&#60;/p&#62;
&#60;p&#62;Best,&#60;br /&#62;
Jiri
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcdannold on "libmvec"</title>
			<link>http://www.k-wave.org/forum/topic/libmvec#post-6384</link>
			<pubDate>Thu, 05 Apr 2018 18:30:03 +0000</pubDate>
			<dc:creator>mcdannold</dc:creator>
			<guid isPermaLink="false">6384@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I tried running the gpu compiled code and am getting the following error:&#60;/p&#62;
&#60;p&#62;“./kspaceFirstOrder3D-CUDA: error while loading shared libraries: libmvec.so.1: cannot open shared object file: No such file or directory”&#60;/p&#62;
&#60;p&#62;I can't find this library, and my google searches are coming up empty. Does anyone have an idea where I might find it?&#60;/p&#62;
&#60;p&#62;I am also not sure I am doing this properly.&#60;/p&#62;
&#60;p&#62;Here is how I log into a node with a gpu:&#60;/p&#62;
&#60;p&#62;[njm7@login02 ~]$ srun -n 1 --pty -t 1:00:00 -p gpu --gres=gpu:1 bash&#60;br /&#62;
srun: job 11701595 queued and waiting for resources&#60;br /&#62;
srun: job 11701595 has been allocated resources&#60;br /&#62;
[njm7@compute-g-16-175 ~]$ module load gcc/6.2.0&#60;br /&#62;
[njm7@compute-g-16-175 ~]$ module load cuda/9.0&#60;br /&#62;
[njm7@compute-g-16-175 ~]$ module load matlab/2017a&#60;br /&#62;
[njm7@compute-g-16-175 ~]$ LD_PRELOAD='/n/app/gcc/6.2.0/lib64/libstdc++.so.6.0.22' matlab -nodesktop&#60;/p&#62;
&#60;p&#62;Here is what I get when I try to run the simulation using the compiled gpu binary:&#60;/p&#62;
&#60;p&#62;Running k-Wave simulation...&#60;br /&#62;
  start time: 05-Apr-2018 10:59:25&#60;br /&#62;
  reference sound speed: 3274.9813m/s&#60;br /&#62;
  dt: 7.6889ns, t_end: 119.708us, time steps: 15570&#60;br /&#62;
  input grid size: 44 by 44 by 492 grid points (14.5055 by 14.5055 by 162.1978mm)&#60;br /&#62;
  maximum supported frequency: 2.275MHz&#60;br /&#62;
  expanding computational grid...&#60;br /&#62;
  computational grid size: 64 by 64 by 512 grid points&#60;br /&#62;
  precomputation completed in 1.14s&#60;br /&#62;
  saving input files to disk...&#60;br /&#62;
  completed in 2.1249s&#60;br /&#62;
system('export LD_LIBRARY_PATH=; cd /home/njm7/MFILES/k-Wave/binaries/; ./kspaceFirstOrder3D-CUDA -i /home/njm7/DATA/TMPat1Element0054a_105925.mat_input.h5 -o /home/njm7/DATA/TMPat1Element0054a_105925.mat_output.h5 --p_raw -s 14542' ,'-echo');&#60;br /&#62;
./kspaceFirstOrder3D-CUDA: error while loading shared libraries: libmvec.so.1: cannot open shared object file: No such file or directory&#60;/p&#62;
&#60;p&#62;Is this the right way to do this?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
