<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic If Fortran is not your forte, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177522#M29115</link>
    <description>&lt;P&gt;If Fortran is not your forte, you could consider using C-BLAS and LAPACKE, both of which are supported by MKL, provided the number of BLAS and Lapack routines that you use is small. You would then need no Fortran code at all. See, for example,&amp;nbsp;&lt;SPAN style="font-size: 11.382px;"&gt;&lt;A href="https://software.intel.com/en-us/mkl-developer-reference-c-cblas-dotu#E81FF20A-C401-4A15-A64F-CC0DAA2BD65D" target="_blank"&gt;https://software.intel.com/en-us/mkl-developer-reference-c-cblas-dotu#E81FF20A-C401-4A15-A64F-CC0DAA2BD65D&lt;/A&gt; .&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 11.382px;"&gt;I have not used Macintoshes since they switched to OSX and Intel CPUs (~ 20 years ago).&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 14:22:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2018-08-29T14:22:00Z</dc:date>
    <item>
      <title>Mac High sierra zdotu test not working</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177505#M29098</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am struggling with the recompilation of R using the Intel MKL. I have identified the problem to the following:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;gfortran -c testf.f&amp;nbsp;&lt;/CODE&gt;&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em;"&gt;gcc -c test.c&lt;/SPAN&gt;&lt;BR /&gt;
	gcc -L${MKL_LIB_PATH} -o test test.o testf.o -lmkl_intel_ilp64 -lmkl_core -lmkl_sequential&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;When running the program, I get a sigfault 11 error message.&lt;/P&gt;

&lt;P&gt;I tried debugging with gdb but couldn't really pinpoint the problem. It seems all the good libraries are being used (otool&amp;nbsp;-L) points to the MKL libraries...&lt;/P&gt;

&lt;P&gt;I am running out of options...&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;thanks,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 13:23:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177505#M29098</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-28T13:23:31Z</dc:date>
    </item>
    <item>
      <title>The problems are caused by</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177506#M29099</link>
      <description>&lt;P&gt;The problems are caused by the fact that your chosen name for the executable, i.e., "test", is the same as the name of a standard Linux/Unix utility, see&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;&lt;A href="http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html" target="_blank"&gt;http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html&lt;/A&gt; .&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Use a different name for your executable file, or set PATH so that your "test" occurs before the system "test".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 21:07:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177506#M29099</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-08-28T21:07:04Z</dc:date>
    </item>
    <item>
      <title>Thanks for the reply but I am</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177507#M29100</link>
      <description>&lt;P&gt;Thanks for the reply but I am calling the program like this:&lt;/P&gt;

&lt;P&gt;./test&lt;/P&gt;

&lt;P&gt;and the unix&amp;nbsp;test doesn't give a sig-fault...&lt;/P&gt;

&lt;P&gt;Any other suggestions?&lt;/P&gt;

&lt;P&gt;thanks again&lt;/P&gt;

&lt;P&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 07:04:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177507#M29100</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T07:04:47Z</dc:date>
    </item>
    <item>
      <title>Hello </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177508#M29101</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Could you please see if this command line&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;gt;source&amp;nbsp; /opt/intel/compilers_and_libraries_2018/mac/mkl/bin/mklvars.sh intel64&amp;nbsp; (important as environment variable settting)&amp;nbsp;&lt;BR /&gt;
	&amp;gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,&amp;quot;宋体&amp;quot;,&amp;quot;Tahoma&amp;quot;,&amp;quot;Helvetica&amp;quot;,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;gcc -L${MKL_LIB_PATH} -o test test.o testf.o &lt;STRONG&gt;-lmkl_rt&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: rgb(83, 87, 94); font-family: &amp;quot;Arial&amp;quot;,&amp;quot;宋体&amp;quot;,&amp;quot;Tahoma&amp;quot;,&amp;quot;Helvetica&amp;quot;,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;&lt;STRONG&gt;work?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;and here is some articles for your reference :&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/quick-linking-intel-mkl-blas-lapack-to-r​&amp;nbsp;" target="_blank"&gt;https://software.intel.com/en-us/articles/quick-linking-intel-mkl-blas-lapack-to-r​&amp;nbsp;&lt;/A&gt;; (quick)&lt;BR /&gt;
	&lt;BR /&gt;
	​and others:&amp;nbsp;&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;A style="color: rgb(96, 0, 144); text-decoration: none; touch-action: manipulation;" href="https://software.intel.com/en-us/articles/using-intel-mkl-with-r" target="_blank" h="ID=SERP,5113.1"&gt;&lt;STRONG style="font-weight: normal; touch-action: manipulation;"&gt;&lt;I style="font-style: normal; touch-action: manipulation;"&gt;&lt;I style="font-style: normal; touch-action: manipulation;"&gt;Using&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I style="font-style: normal; touch-action: manipulation;"&gt;Intel&lt;/I&gt;®&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I style="font-style: normal; touch-action: manipulation;"&gt;MKL&lt;/I&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;I style="font-style: normal; touch-action: manipulation;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I style="font-style: normal; touch-action: manipulation;"&gt;with&lt;/I&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;STRONG style="font-weight: normal; touch-action: manipulation;"&gt;&lt;I style="font-style: normal; touch-action: manipulation;"&gt;&lt;I style="font-style: normal; touch-action: manipulation;"&gt;R&lt;/I&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;I style="font-style: normal; touch-action: manipulation;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;|&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I style="font-style: normal; touch-action: manipulation;"&gt;Intel&lt;/I&gt;®&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I class="01" style="font-style: normal; touch-action: manipulation;"&gt;Software&lt;/I&gt;&lt;/I&gt;&lt;/A&gt;&lt;/P&gt;

&lt;DIV class="b_caption" style="color: inherit; padding-bottom: 10px; line-height: 1.4;"&gt;
	&lt;DIV class="b_attribution" style="color: rgb(118, 118, 118); padding-bottom: 0px; line-height: 1.4;" u="0|5050|4615575528603843|IO0tRK-NzWoy64QNvau62Eti6OK46Uys"&gt;&lt;CITE style="color: rgb(0, 109, 33); font-style: normal; word-wrap: break-word; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;A href="https://software.intel.com/en-us/articles/using-intel-" target="_blank"&gt;https://software.intel.com/en-us/articles/using-intel-&lt;/A&gt;&lt;STRONG style="font-weight: 700;"&gt;mkl&lt;/STRONG&gt;-with-&lt;STRONG style="font-weight: 700;"&gt;r&lt;/STRONG&gt;&lt;/CITE&gt;&lt;/DIV&gt;

	&lt;DIV class="b_attribution" style="color: rgb(118, 118, 118); padding-bottom: 0px; line-height: 1.4;" u="0|5050|4615575528603843|IO0tRK-NzWoy64QNvau62Eti6OK46Uys"&gt;&lt;CITE style="color: rgb(0, 109, 33); font-style: normal; word-wrap: break-word; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;STRONG style="font-weight: 700;"&gt;and&amp;nbsp;&lt;/STRONG&gt;&lt;/CITE&gt;&lt;/DIV&gt;

	&lt;DIV class="b_attribution" style="color: rgb(118, 118, 118); padding-bottom: 0px; line-height: 1.4;" u="0|5050|4615575528603843|IO0tRK-NzWoy64QNvau62Eti6OK46Uys"&gt;&lt;A href="https://software.intel.com/en-us/articles/build-r-301-with-intel-c-compiler-and-intel-mkl-on-linux" target="_blank"&gt;https://software.intel.com/en-us/articles/build-r-301-with-intel-c-compiler-and-intel-mkl-on-linux&lt;/A&gt;&lt;BR /&gt;
		&lt;BR /&gt;
		Best Regards,&lt;BR /&gt;
		​Ying&amp;nbsp;&lt;/DIV&gt;

	&lt;DIV class="b_attribution" style="color: rgb(118, 118, 118); padding-bottom: 0px; line-height: 1.4;" u="0|5050|4615575528603843|IO0tRK-NzWoy64QNvau62Eti6OK46Uys"&gt;&amp;nbsp;&lt;/DIV&gt;

	&lt;DIV class="b_attribution" style="color: rgb(118, 118, 118); padding-bottom: 0px; line-height: 1.4;" u="0|5050|4615575528603843|IO0tRK-NzWoy64QNvau62Eti6OK46Uys"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 08:15:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177508#M29101</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2018-08-29T08:15:51Z</dc:date>
    </item>
    <item>
      <title>I looked at the two files</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177509#M29102</link>
      <description>&lt;P&gt;I looked at the two files that you attached. Unless you did something behind the scenes (with compiler options, environment variables, etc.), the integer arguments being passed to the MKL routine are default integers, i.e, 4-byte integers. If this guess is correct, the MKL library you used is not a proper match. You should probably try -l&lt;SPAN style="font-size: 13.008px;"&gt;mkl_intel_lp64 instead of&amp;nbsp;&lt;/SPAN&gt;-&lt;SPAN style="font-size: 13.008px;"&gt;lmkl_intel_ilp64. The "ilp64" library is for 64-bit &lt;STRONG&gt;I&lt;/STRONG&gt;nteger, &lt;STRONG&gt;L&lt;/STRONG&gt;ong, &lt;STRONG&gt;P&lt;/STRONG&gt;ointer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 08:17:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177509#M29102</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-08-29T08:17:00Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177510#M29103</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;Thanks for your help. Here is what I did:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;MD18-1021:R-patched2 bernd$ source  /opt/intel/compilers_and_libraries_2018/mac/mkl/bin/mklvars.sh intel64  verbose
DYLD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/tbb/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/compiler/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/tbb/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/compiler/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib
LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/tbb/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/compiler/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/tbb/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/compiler/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib
NLSPATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/locale/%l_%t/%N:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/locale/%l_%t/%N
CPATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/include:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/include
PKG_CONFIG_PATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/bin/pkgconfig:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/bin/pkgconfig
MD18-1021:R-patched2 bernd$ echo $MKL_LIB_PATH 
/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/
MD18-1021:R-patched2 bernd$ gcc -L${MKL_LIB_PATH} -o test test.o testf.o -lmkl_rt
MD18-1021:R-patched2 bernd$ otool -L test
test:
	@rpath/libmkl_rt.dylib (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
MD18-1021:R-patched2 bernd$ ./test
Segmentation fault: 11
MD18-1021:R-patched2 bernd$ 
&lt;/PRE&gt;

&lt;P&gt;I have started from a clean (new High Sierra) installed system with the following additional installations:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;MD18-1021:R-patched2 bernd$ brew list
boost		cmake		eigen		freetype	gdb		glib		gsl		jpeg		libgit2		libmpc		libssh2		libunistring	openssl		pixman		texinfo		xz
cairo		curl		fontconfig	gcc		gettext		gmp		isl		libffi		libidn2		libpng		libtiff		mpfr		pcre		pkg-config	wget
&lt;/PRE&gt;

&lt;P&gt;and java jdk&lt;/P&gt;

&lt;P&gt;and the other variables (from set):&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;BASH=/bin/bash
CPATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/include:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/include
CPRO_PATH=/opt/intel/compilers_and_libraries_2018.3.185/mac
DISPLAY=/private/tmp/com.apple.launchd.pWYIDgzn7y/org.macosforge.xquartz:0
DYLD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/tbb/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/compiler/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/tbb/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/compiler/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib
HOSTTYPE=x86_64
LC_CTYPE=UTF-8
LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/
LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/tbb/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/compiler/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/tbb/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/compiler/lib:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib
MACHTYPE=x86_64-apple-darwin17
MKLROOT=/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl
MKL_LIB_PATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/
NLSPATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/locale/%l_%t/%N:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/locale/%l_%t/%N
OMP_NUM_THREADS=2
OPTERR=1
OPTIND=1
OSTYPE=darwin17
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin
PKG_CONFIG_PATH=/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/bin/pkgconfig:/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/bin/pkgconfig
SHELL=/bin/bash
&lt;/PRE&gt;

&lt;P&gt;Please let me know if you need additional information.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 08:31:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177510#M29103</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T08:31:34Z</dc:date>
    </item>
    <item>
      <title>another sanity check: I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177511#M29104</link>
      <description>&lt;P&gt;another sanity check: I removed all the env variables that gcc&amp;nbsp;used such that compilation and then execution failed and added the info specifically later... same result....&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;# with nothing compilation fails
MD18-1021:R-patched2 bernd$ gcc  -o test test.o testf.o -lmkl_rt 
ld: library not found for -lmkl_rt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
MD18-1021:R-patched2 bernd$ gcc -L$MKL_LIB_PATH -o test test.o testf.o -lmkl_rt 
# execution fails because LDLIBRARY_PATH is not set
MD18-1021:R-patched2 bernd$ ./test
dyld: Library not loaded: @rpath/libmkl_rt.dylib
  Referenced from: /Users/bernd/Downloads/R-patched2/./test
  Reason: image not found
Abort trap: 6
MD18-1021:R-patched2 bernd$ echo $MKLROOT
/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl
# specifially write library location in executable
MD18-1021:R-patched2 bernd$ gcc -L$MKL_LIB_PATH -Wl,-rpath,${MKLROOT}/lib -o test test.o testf.o -lmkl_rt 
# execution problem...
MD18-1021:R-patched2 bernd$ ./test
Segmentation fault: 11
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 08:43:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177511#M29104</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T08:43:22Z</dc:date>
    </item>
    <item>
      <title>and with different library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177512#M29105</link>
      <description>&lt;P&gt;and with different library options:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;MD18-1021:R-patched2 bernd$ gcc -L$MKL_LIB_PATH -Wl,-rpath,${MKLROOT}/lib -o test test.o testf.o -lmkl_rt 
MD18-1021:R-patched2 bernd$ ./test
Segmentation fault: 11
MD18-1021:R-patched2 bernd$ gcc -L$MKL_LIB_PATH -Wl,-rpath,${MKLROOT}/lib -o test test.o testf.o -lmkl_intel_ilp64 -lmkl_core -lmkl_sequential 
MD18-1021:R-patched2 bernd$ ./test
Segmentation fault: 11
MD18-1021:R-patched2 bernd$ gcc -L$MKL_LIB_PATH -Wl,-rpath,${MKLROOT}/lib -o test test.o testf.o -lmkl_intel_lp64 -lmkl_core -lmkl_sequential 
MD18-1021:R-patched2 bernd$ ./test
Segmentation fault: 11
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 08:45:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177512#M29105</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T08:45:47Z</dc:date>
    </item>
    <item>
      <title>The test program runs fine on</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177513#M29106</link>
      <description>&lt;P&gt;The test program runs fine on Linux, and I cannot test on a Mac. You could try compiling with traceback enabled and localize the place where the segfault occurs.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 11:43:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177513#M29106</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-08-29T11:43:23Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177514#M29107</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;thanks for the effort and time. Here is the gdb output. Please let me know what you want me to do as explicit as possible to avoid misunderstandings ;)&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;MD18-1021:R-patched2 bernd$ gcc -c test.c -g
MD18-1021:R-patched2 bernd$ gfortran -c testf.f -g
MD18-1021:R-patched2 bernd$ gcc -L$MKL_LIB_PATH -Wl,-rpath,${MKLROOT}/lib -o test test.o testf.o -lmkl_rt -g
MD18-1021:R-patched2 bernd$ gdb ./test
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin17.0.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
&amp;lt;http://www.gnu.org/software/gdb/bugs/&amp;gt;.
Find the GDB manual and other documentation resources online at:
&amp;lt;http://www.gnu.org/software/gdb/documentation/&amp;gt;.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./test...done.
(gdb) r
Starting program: /Users/bernd/Downloads/R-patched2/test 
[New Thread 0x2703 of process 80741]
warning: unhandled dyld version (15)

Thread 2 received signal SIGSEGV, Segmentation fault.
0x00000001083e14dc in ?? ()
(gdb) bt
#0  0x00000001083e14dc in ?? ()
#1  0x0000000000000000 in ?? ()
(gdb) &lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 12:01:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177514#M29107</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T12:01:13Z</dc:date>
    </item>
    <item>
      <title>Can it be that the order of</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177515#M29108</link>
      <description>&lt;P&gt;Can it be that the order of architectures is important? (since there is this unhandled dyld&amp;nbsp;version problem)...&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I get for the two libraries that are used:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;MD18-1021:R-patched2 bernd$ file /usr/lib/libSystem.B.dylib
/usr/lib/libSystem.B.dylib: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [i386:Mach-O dynamically linked shared library i386]
/usr/lib/libSystem.B.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64
/usr/lib/libSystem.B.dylib (for architecture i386):	Mach-O dynamically linked shared library i386


MD18-1021:R-patched2 bernd$ file /opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/libmkl_rt.dylib 
/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/libmkl_rt.dylib: Mach-O universal binary with 2 architectures: [i386:Mach-O dynamically linked shared library i386] [x86_64]
/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/libmkl_rt.dylib (for architecture i386):	Mach-O dynamically linked shared library i386
/opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/libmkl_rt.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 12:06:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177515#M29108</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T12:06:51Z</dc:date>
    </item>
    <item>
      <title>For reference the system</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177516#M29109</link>
      <description>&lt;P&gt;For reference the system variables are set like this:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;HOSTTYPE=x86_64
MACHTYPE=x86_64-apple-darwin17
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 12:22:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177516#M29109</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T12:22:29Z</dc:date>
    </item>
    <item>
      <title>the warning is not important</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177517#M29110</link>
      <description>&lt;P&gt;the warning is not important and some gdb/high sierra problem. Hello world works:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;Starting program: /Users/bernd/Downloads/R-patched2/test2 
[New Thread 0x2603 of process 1635]
warning: unhandled dyld version (15)
Hello, World![Inferior 1 (process 1635) exited normally]
(gdb) 
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 12:59:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177517#M29110</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Ok, I understood gdb a bit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177518#M29111</link>
      <description>&lt;P&gt;Ok, I understood gdb a bit better... zdotu is causing the problem...&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;Thread 2 hit Breakpoint 1, main () at test.c:12
12	  F77_SYMBOL(test1)(&amp;amp;iflag);
(gdb) s
test1 (iflag=16850) at testf.f:10
10	      zx(1) = (3.1d0,1.7d0)
(gdb) s
11	      zx(2) = (1.6d0,-0.6d0)
(gdb) s
12	      zres = zdotu(2, zx, 1, zx, 1)
(gdb) s

Thread 2 received signal SIGSEGV, Segmentation fault.
0x00000001082534dc in ?? ()
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:19:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177518#M29111</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T13:19:59Z</dc:date>
    </item>
    <item>
      <title>Using a Fortran main instead</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177519#M29112</link>
      <description>&lt;P&gt;Using a Fortran main instead of the C main, and setting the compiler options &lt;STRONG&gt;-g&lt;/STRONG&gt; and &lt;STRONG&gt;-fbacktrace,&lt;/STRONG&gt; would provide useful information regarding the location of the fault.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:28:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177519#M29112</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-08-29T13:28:54Z</dc:date>
    </item>
    <item>
      <title>Currently, I am trying to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177520#M29113</link>
      <description>&lt;P&gt;Currently, I am trying to understand gdb better to see if I can locate the zdotu function, which I cannot at the moment. My Fortran experience is already a few decades old and I it is even less evident to me how to transform the function into a real Fortran&amp;nbsp;program.&lt;/P&gt;

&lt;P&gt;Do you know how to list the functions from linked libraries in gdb? I get the following, which leads me to try to verify that the libraries are correctly bound:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;MD18-1021:R-patched2 bernd$ nm -add-dyldinfo -no-sort -print-file-name  test
test: 0000000100000000 T __mh_execute_header
test: 0000000100000ca0 T _main
test: 0000000100000cd3 T _test1_
test: 0000000100000cc0 T _xerbla_
test:                  U _cabs
test:                  U _exit
test:                  U _zdotu_
test:                  U dyld_stub_binder
&lt;/PRE&gt;

&lt;P&gt;But maybe it is just because the libraries are not compiled with -g...&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:45:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177520#M29113</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T13:45:30Z</dc:date>
    </item>
    <item>
      <title>I have now statically linked</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177521#M29114</link>
      <description>&lt;P&gt;I have now statically linked the mkl&amp;nbsp;libraries and get the same error at the same line (zdotu). Since there is no debugging information available I don't think that compiling a new Fortran&amp;nbsp;function would work.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;On the internet, I saw comments about the stack not being sufficient, but when I looked at the offending assembler it was a mov&amp;nbsp;command that caused the problem...&lt;/P&gt;

&lt;P&gt;Is there a way to get hold of a mkl&amp;nbsp;library that allows further debugging?&lt;/P&gt;

&lt;P&gt;Maybe this has something to do with this problem: when compiling R I can link to the Acceleration library from Apple (MKL is causing the problem above), but I don't think BLAS is working in the performance tests: I can only see one CPU active in the task manager and I don't see any effect greater than a factor of 1.3 when using the Accelerate packages or not. (using disable-blas) If you have any idea on how to verify this side of my problem of getting more performance&amp;nbsp;I would appreciate it a lot as well.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:02:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177521#M29114</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T14:02:34Z</dc:date>
    </item>
    <item>
      <title>If Fortran is not your forte,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177522#M29115</link>
      <description>&lt;P&gt;If Fortran is not your forte, you could consider using C-BLAS and LAPACKE, both of which are supported by MKL, provided the number of BLAS and Lapack routines that you use is small. You would then need no Fortran code at all. See, for example,&amp;nbsp;&lt;SPAN style="font-size: 11.382px;"&gt;&lt;A href="https://software.intel.com/en-us/mkl-developer-reference-c-cblas-dotu#E81FF20A-C401-4A15-A64F-CC0DAA2BD65D" target="_blank"&gt;https://software.intel.com/en-us/mkl-developer-reference-c-cblas-dotu#E81FF20A-C401-4A15-A64F-CC0DAA2BD65D&lt;/A&gt; .&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 11.382px;"&gt;I have not used Macintoshes since they switched to OSX and Intel CPUs (~ 20 years ago).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:22:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177522#M29115</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-08-29T14:22:00Z</dc:date>
    </item>
    <item>
      <title>Just to clarify, I ran into</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177523#M29116</link>
      <description>&lt;P&gt;Just to clarify, I ran into this problem on a very fresh Mac high sierra when trying to recompile R with the MKL support as it was highly recommended to me by several sources. Specifically, the configure process didn't work and I was able to narrow down the problem to the compilation of this example, which I could reproduce.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I don't see which additional information one could gain by only using Fortran, as I have shown that the zdotu&amp;nbsp;function is causing the problem. If you could further explain this, it would clearly motivate me to go further in this direction.&lt;/P&gt;

&lt;P&gt;Thanks a lot for your support,&lt;/P&gt;

&lt;P&gt;Kind regards,&lt;/P&gt;

&lt;P&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:49:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177523#M29116</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T14:49:44Z</dc:date>
    </item>
    <item>
      <title>I just saw this in the R</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177524#M29117</link>
      <description>&lt;P&gt;I just saw this in the R documentation:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;"&gt;On some systems it has been necessary that an external&amp;nbsp;&lt;/SPAN&gt;&lt;ACRONYM style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;"&gt;BLAS&lt;/ACRONYM&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;"&gt;/LAPACK was built with the same FORTRAN compiler used to build R.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 15:01:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Mac-High-sierra-zdotu-test-not-working/m-p/1177524#M29117</guid>
      <dc:creator>jagla__bernd</dc:creator>
      <dc:date>2018-08-29T15:01:45Z</dc:date>
    </item>
  </channel>
</rss>

