<?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: Possible bug when compiling C++ simulation code using Intel compiler</title>
		<link>http://www.k-wave.org/forum/topic/possible-bug-when-compiling-c-simulation-code-using-intel-compiler</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:27:47 +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/possible-bug-when-compiling-c-simulation-code-using-intel-compiler" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "Possible bug when compiling C++ simulation code using Intel compiler"</title>
			<link>http://www.k-wave.org/forum/topic/possible-bug-when-compiling-c-simulation-code-using-intel-compiler#post-5122</link>
			<pubDate>Wed, 08 Jul 2015 09:54:04 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">5122@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Tom,&#60;/p&#62;
&#60;p&#62;Good spot - we'll fix this in the next release.&#60;/p&#62;
&#60;p&#62;Kind regards,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tmatthews on "Possible bug when compiling C++ simulation code using Intel compiler"</title>
			<link>http://www.k-wave.org/forum/topic/possible-bug-when-compiling-c-simulation-code-using-intel-compiler#post-5074</link>
			<pubDate>Wed, 06 May 2015 23:01:24 +0000</pubDate>
			<dc:creator>tmatthews</dc:creator>
			<guid isPermaLink="false">5074@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Jiri,&#60;/p&#62;
&#60;p&#62;I actually meant to go in the other direction - replace MKLROOT with MKL_DIR within the Makefile. You seem to have forgotten to replace one instance of MKLROOT within the Makefile. The above error arose because for whatever reason MKLROOT is not defined on our cluster. Thus, I had already updated line 77 in the Makefile to reflect the correct path for MKL, but an error still occurs because MKLROOT is not defined but appears on line 182 of the Makefile. &#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Tom
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jiri Jaros on "Possible bug when compiling C++ simulation code using Intel compiler"</title>
			<link>http://www.k-wave.org/forum/topic/possible-bug-when-compiling-c-simulation-code-using-intel-compiler#post-5072</link>
			<pubDate>Wed, 06 May 2015 14:27:48 +0000</pubDate>
			<dc:creator>Jiri Jaros</dc:creator>
			<guid isPermaLink="false">5072@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi tmatthews,&#60;br /&#62;
You are right, if you have a standard installation of the Intel C++ Composer, then you can simply replace MKL_DIR by MKLROOT. MKLROOT is the standard environmental variable for Intel C++ Composer.&#60;/p&#62;
&#60;p&#62;The second solution is to change line 77&#60;br /&#62;
&#60;code&#62;MKL_DIR=/opt/intel/composer_xe_2013/mkl&#60;/code&#62;&#60;br /&#62;
and write the correct path for MKL.&#60;/p&#62;
&#60;p&#62;The reason why I did not use MKLROOT is that I have multiple installations of Intel C++ just to test the code by different compilers.&#60;/p&#62;
&#60;p&#62;Jiri
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tmatthews on "Possible bug when compiling C++ simulation code using Intel compiler"</title>
			<link>http://www.k-wave.org/forum/topic/possible-bug-when-compiling-c-simulation-code-using-intel-compiler#post-5060</link>
			<pubDate>Wed, 29 Apr 2015 22:16:08 +0000</pubDate>
			<dc:creator>tmatthews</dc:creator>
			<guid isPermaLink="false">5060@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;I encountered the following error when trying to compile the C++ simulation code version 1.1 on a 64-bit Linux system (RHEL 5.9) using Intel C++ Composer XE 2013.&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
icpc -O3 -ipo -openmp  -m64 -march=native -Wall -I/export/hdf5-1.8.13/include -I/export/intel/composer_xe_2013/mkl/include -I/export/intel/composer_xe_2013/mkl/include/fftw -I. -D__KWAVE_GIT_HASH__=\&#34;aebfef5be3ae0f663cb8c8629281733374a22d09\&#34;   -c -o Parameters/Parameters.o Parameters/Parameters.cpp&#60;br /&#62;
icpc -m64 -march=native -O3 -ipo -openmp  -static -L/export/intel/composer_xe_2013/mkl/lib/intel64 -L/export/hdf5-1.8.13/lib main.o 			\&#60;br /&#62;
		HDF5/HDF5_File.o			\&#60;br /&#62;
		KSpaceSolver/KSpaceFirstOrder3DSolver.o	\&#60;br /&#62;
		MatrixClasses/BaseFloatMatrix.o		\&#60;br /&#62;
		MatrixClasses/BaseIndexMatrix.o		\&#60;br /&#62;
		MatrixClasses/ComplexMatrix.o		\&#60;br /&#62;
		MatrixClasses/FFTWComplexMatrix.o	\&#60;br /&#62;
		MatrixClasses/IndexMatrix.o		\&#60;br /&#62;
		MatrixClasses/MatrixContainer.o		\&#60;br /&#62;
		MatrixClasses/OutputHDF5Stream.o	\&#60;br /&#62;
		MatrixClasses/RealMatrix.o		\&#60;br /&#62;
		MatrixClasses/UXYZ_SGXYZMatrix.o	\&#60;br /&#62;
		Parameters/CommandLineParameters.o	\&#60;br /&#62;
		Parameters/Parameters.o			\&#60;br /&#62;
		/export/hdf5-1.8.13/lib/libhdf5_hl.a /export/hdf5-1.8.13/lib/libhdf5.a -Wl,--start-group /lib/intel64/libmkl_intel_ilp64.a /export/intel/composer_xe_2013/mkl/lib/intel64/libmkl_core.a /export/intel/composer_xe_2013/mkl/lib/intel64/libmkl_intel_thread.a -Wl,--end-group -lpthread -lm -lz					      	\&#60;br /&#62;
		-o kspaceFirstOrder3D-OMP&#60;br /&#62;
icpc: error #10236: File not found:  '/lib/intel64/libmkl_intel_ilp64.a'&#60;br /&#62;
make: *** [kspaceFirstOrder3D-OMP] Error 1
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;It seems that this error can be eliminated by replacing $(MKLROOT) with $(MKL_DIR) on Line 182 of the Makefile. As far as I can tell, this is the only place that $(MKLROOT) appears and it is not defined elsewhere in the Makefile.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
