<?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 Hi David,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105535#M24083</link>
    <description>&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I saw your question. Please give some time, we will check and get back to you if any result.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2016 01:56:48 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2016-04-29T01:56:48Z</dc:date>
    <item>
      <title>Error compiling MKL for Xeon Phi (MIC) with Compiler assisted Offload mode in Visual Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105532#M24080</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I am new to Xeon Phi and MKL and I am trying to compile the Compiler assisted Offload for the sgemm example in C++ in Windows using Visual Studio (VS) Prof. R12.&lt;/P&gt;

&lt;P&gt;I have set the properties in VS project to include MKL libraries, parallel for ilp64 (32bit ints) and set "mandatory" in the offload mode.&lt;/P&gt;

&lt;P&gt;The tests I am running are on a 7200 KNC MIC. I have tried other simple applications all successful including reductions with compiler assisted offloading, implicit memory model and native execution. The driver is working fine and I can SSH to the MIC and mount a shared NFS directory. But calling an MKL function from VS using the compiled assisted offloading has not worked.&lt;/P&gt;

&lt;P&gt;The error I get follows:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;"error : function "sgemm" called in offload region must have been declared with compatible "target" attribute &amp;nbsp;sgemm(&amp;amp;transA, &amp;amp;transB, &amp;amp;n, &amp;amp;n, &amp;amp;n, &amp;amp;alpha, A, &amp;amp;n, B, &amp;amp;n, &amp;amp;beta, C, &amp;amp;n);"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;It would seem that the cross compilation is simply not happening because the compiler is not informed of it and there is no forward declaration instructing the compiler to do it. I would assume that this gets done in the "mkl.h" header file or some of the other ones called therein.&lt;/P&gt;

&lt;P&gt;I have also added the MKL include and lib paths in the VS paths entry in my solution's properties to no avail.&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 00:15:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105532#M24080</guid>
      <dc:creator>David_F_8</dc:creator>
      <dc:date>2016-04-26T00:15:40Z</dc:date>
    </item>
    <item>
      <title>Hi David, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105533#M24081</link>
      <description>&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Are you compiling the &amp;nbsp;sgemm.c &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Compiler assisted Offload&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;example in MKL install forder, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;examples_mic.zip, right?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;If yes, could you please try with the Command line way to compile it and see if it work first?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;for example, &amp;nbsp;go to startup menu&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5\Desktop\MKL MIC\examples_mic\mic_offload\blasc&amp;gt;nmake intel64&lt;/P&gt;

&lt;P&gt;icl /Qopenmp &amp;nbsp; /MT /Qstd=c99 /Fo_results\_lp64_parallel_intel64_lib\ /Fe&lt;BR /&gt;
	_results\_lp64_parallel_intel64_lib\ /Qoffload-attribute-target=mic &amp;nbsp;/Qoffload-o&lt;BR /&gt;
	ption,mic,compiler," -I""C:\Program Files (x86)\Intel\Composer XE 2013 SP1\mkl""&lt;BR /&gt;
	\include" /Qoffload-option,mic,link," --start-group ""C:\Program Files (x86)\Int&lt;BR /&gt;
	el\Composer XE 2013 SP1\mkl""\lib\mic\libmkl_intel_lp64.a ""C:\Program Files (x8&lt;BR /&gt;
	6)\Intel\Composer XE 2013 SP1\mkl""\lib\mic\libmkl_core.a ""C:\Program Files (x8&lt;BR /&gt;
	6)\Intel\Composer XE 2013 SP1\mkl""\lib\mic\libmkl_intel_thread.a --end-group"&lt;BR /&gt;
	source\sgemm.c mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib&lt;/P&gt;

&lt;P&gt;then let's try MSVC 2012, could you attach the Code and the MSVC &amp;nbsp;proporty setting screenshot to us?&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;#pragma offload target(mic) \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;in(transa, transb, N, alpha, beta) \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;in(A:length(matrix_elements)) \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;in(B:length(matrix_elements)) \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;in(C:length(matrix_elements)) \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;out(C:length(matrix_elements) alloc_if(0))&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sgemm(&amp;amp;transa, &amp;amp;transb, &amp;amp;N, &amp;amp;N, &amp;amp;N, &amp;amp;alpha, A, &amp;amp;N, B, &amp;amp;N,&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;amp;beta, C, &amp;amp;N);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 06:03:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105533#M24081</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-04-26T06:03:00Z</dc:date>
    </item>
    <item>
      <title>Thank you for the prompt</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105534#M24082</link>
      <description>&lt;P&gt;Thank you for the prompt response Ying!&lt;/P&gt;

&lt;P&gt;I tried your command with a few modifications to adapt it to my machine and now I am able to compile in the "Intel Compiler 16.0 Intel 64 Visual Studio 2012" &lt;STRONG&gt;command line&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Just for reference my Intel MKL library is installed at:&lt;/P&gt;

&lt;P&gt;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl&lt;/P&gt;

&lt;P&gt;and I am setting environmental variables with:&amp;nbsp;mklvars.bat intel64 ilp64&lt;/P&gt;

&lt;P&gt;The precise versions of the Intel software I have installed follows:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="" src="https://community.intel.com/file/502588/download" /&gt;&lt;/P&gt;

&lt;P&gt;And the command line I used was:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;icl /Qopenmp /MT /Qstd=c99 /Qoffload-attribute-target=mic &amp;nbsp;/Qoffload-option,mic,compiler," -I""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\include" /Qoffload-option,mic,link," --start-group ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_intel_lp64.a ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_core.a ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_intel_thread.a --end-group" source\sgemm.c mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;No I am trying with a slightly modified version of the sample code&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;A href="https://community.intel.com/legacyfs/online/drupal_files/502600"&gt;502600&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://community.intel.com/legacyfs/online/drupal_files/502600"&gt;502600&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://community.intel.com/legacyfs/online/drupal_files/502600"&gt;502600&lt;/A&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;/MT &amp;nbsp;/Qoffload-attribute-target=mic &amp;nbsp;/Qoffload-option,mic,compiler, /Qoffload-option,mic,link," --start-group ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_intel_lp64.a ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_core.a ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_intel_thread.a --end-group"&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;A href="https://community.intel.com/legacyfs/online/drupal_files/502600"&gt;502600&lt;/A&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;"mkl_intel_lp64.lib" "mkl_intel_thread.lib" "mkl_core.lib"&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;This leads to several errors:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;1&amp;gt;------ Build started: Project: Test01 (Intel C++ 16.0), Configuration: Release x64 ------&lt;BR /&gt;
		1&amp;gt;icl: : warning #10121: overriding '/MD' with '/MT'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;test_MKL.c&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(71): warning #266: *MIC* function "min" declared implicitly&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (i=0; i&amp;lt;min(N,6); i++) {&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(71): warning #2570: *MIC* function has not been declared with compatible "target" attribute&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (i=0; i&amp;lt;min(N,6); i++) {&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(73): warning #2570: *MIC* function has not been declared with compatible "target" attribute&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (j=0; j&amp;lt;min(N,6); j++) {&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(80): warning #266: *MIC* function "min" declared implicitly&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (i=0; i&amp;lt;min(N,6); i++) {&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(80): warning #2570: *MIC* function has not been declared with compatible "target" attribute&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (i=0; i&amp;lt;min(N,6); i++) {&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(82): warning #2570: *MIC* function has not been declared with compatible "target" attribute&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (j=0; j&amp;lt;min(N,6); j++) {&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(89): warning #266: *MIC* function "min" declared implicitly&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (i=0; i&amp;lt;min(N,6); i++) {&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(89): warning #2570: *MIC* function has not been declared with compatible "target" attribute&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (i=0; i&amp;lt;min(N,6); i++) {&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(91): warning #2570: *MIC* function has not been declared with compatible "target" attribute&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for (j=0; j&amp;lt;min(N,6); j++) {&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(149): warning #167: *MIC* argument of type "const long *" is incompatible with parameter of type "const long long *"&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sgemm(&amp;amp;transA, &amp;amp;transB, &amp;amp;n, &amp;amp;n, &amp;amp;n, &amp;amp;alpha, A, &amp;amp;n, B, &amp;amp;n, &amp;amp;beta, C, &amp;amp;n);&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(149): warning #167: *MIC* argument of type "const long *" is incompatible with parameter of type "const long long *"&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sgemm(&amp;amp;transA, &amp;amp;transB, &amp;amp;n, &amp;amp;n, &amp;amp;n, &amp;amp;alpha, A, &amp;amp;n, B, &amp;amp;n, &amp;amp;beta, C, &amp;amp;n);&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(149): warning #167: *MIC* argument of type "const long *" is incompatible with parameter of type "const long long *"&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sgemm(&amp;amp;transA, &amp;amp;transB, &amp;amp;n, &amp;amp;n, &amp;amp;n, &amp;amp;alpha, A, &amp;amp;n, B, &amp;amp;n, &amp;amp;beta, C, &amp;amp;n);&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(149): warning #167: *MIC* argument of type "const long *" is incompatible with parameter of type "const long long *"&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sgemm(&amp;amp;transA, &amp;amp;transB, &amp;amp;n, &amp;amp;n, &amp;amp;n, &amp;amp;alpha, A, &amp;amp;n, B, &amp;amp;n, &amp;amp;beta, C, &amp;amp;n);&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(149): warning #167: *MIC* argument of type "const long *" is incompatible with parameter of type "const long long *"&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sgemm(&amp;amp;transA, &amp;amp;transB, &amp;amp;n, &amp;amp;n, &amp;amp;n, &amp;amp;alpha, A, &amp;amp;n, B, &amp;amp;n, &amp;amp;beta, C, &amp;amp;n);&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt;src/test_MKL.c(149): warning #167: *MIC* argument of type "const long *" is incompatible with parameter of type "const long long *"&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sgemm(&amp;amp;transA, &amp;amp;transB, &amp;amp;n, &amp;amp;n, &amp;amp;n, &amp;amp;alpha, A, &amp;amp;n, B, &amp;amp;n, &amp;amp;beta, C, &amp;amp;n);&lt;BR /&gt;
		1&amp;gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;^&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `free_arrays':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:60: undefined reference to `MKL_free'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:61: undefined reference to `MKL_free'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:62: undefined reference to `MKL_free'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `print_arrays_snap_shot':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:71: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:73: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:73: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:71: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:80: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o:C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:82: more undefined references to `min' follow&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `sgemm_serial':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:103: undefined reference to `cblas_sgemm'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `__offload_entry_test_MKL_c_142sgemm_offload_MKL1492001044302':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:149: undefined reference to `sgemm'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `init_arrays':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:24: undefined reference to `MKL_malloc'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:25: undefined reference to `MKL_malloc'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:26: undefined reference to `MKL_malloc'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `sgemm_offload_MKL':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:123: undefined reference to `start_timer_T64'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `sgemm_serial':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:103: undefined reference to `cblas_sgemm'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `sgemm_offload_MKL':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:125: undefined reference to `elapsed_time_T64'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `print_arrays_snap_shot':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:71: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:73: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:73: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:71: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:80: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o:C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:82: more undefined references to `min' follow&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `sgemm_offload_MKL':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:131: undefined reference to `start_timer_T64'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:149: undefined reference to `sgemm'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:158: undefined reference to `elapsed_time_T64'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `print_arrays_snap_shot':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:71: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:73: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:73: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:71: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:80: undefined reference to `min'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o:C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:82: more undefined references to `min' follow&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\AppData\Local\Temp\2\714077MIC37.o: In function `init_arrays':&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:31: undefined reference to `MKL_free'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:32: undefined reference to `MKL_free'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:33: undefined reference to `MKL_free'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:24: undefined reference to `MKL_malloc'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:25: undefined reference to `MKL_malloc'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:26: undefined reference to `MKL_malloc'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:31: undefined reference to `MKL_free'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:32: undefined reference to `MKL_free'&lt;BR /&gt;
		1&amp;gt; &amp;nbsp;C:\Users\dfernand\Documents\IntelXeonPhi\mic_samples\Test01/src/test_MKL.c:33: undefined reference to `MKL_free'&lt;BR /&gt;
		1&amp;gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\x64\PlatformToolsets\Intel C++ Compiler 16.0\Microsoft.Cpp.x64.Intel C++ Compiler 16.0.targets(1081,5): error MSB6006: "xilink.exe" exited with code 1.&lt;BR /&gt;
		========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&lt;/P&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I hope you have some clues to what is going on.&lt;/P&gt;

&lt;P&gt;Again thank you!&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 18:45:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105534#M24082</guid>
      <dc:creator>David_F_8</dc:creator>
      <dc:date>2016-04-26T18:45:04Z</dc:date>
    </item>
    <item>
      <title>Hi David, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105535#M24083</link>
      <description>&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I saw your question. Please give some time, we will check and get back to you if any result.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 01:56:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105535#M24083</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-04-29T01:56:48Z</dc:date>
    </item>
    <item>
      <title>Hi David, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105536#M24084</link>
      <description>&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Regarding the compilation, How about comment &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;#define min(x,y) (((x) &amp;lt; (y)) ? (x) : (y))&lt;/P&gt;

&lt;P&gt;Then the command line will work, right?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;icl /Qopenmp /MT /Qstd=c99 /Qoffload-attribute-target=mic &amp;nbsp;/Qoffload-option,mic,compiler," -I""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\include" /Qoffload-option,mic,link," --start-group ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_intel_ilp64.a ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_core.a ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_intel_thread.a --end-group" test_MKL.c mkl_intel_ilp64.lib mkl_intel_thread.lib mkl_core.lib&lt;/P&gt;

&lt;P&gt;As i haven't found the Windows Host MIC environment, So just did a try in MSVS 2012 environment . &amp;nbsp;If We just put the command into&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Project Property =&amp;gt; Linker =&amp;gt; Additional Options:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;xilink: : warning #10006: ignoring unknown option '/Qoffload-option,mic,link, --start-group "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl"\lib\mic\libmkl_intel_ilp64.a "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl"\lib\mic\libmkl_core.a "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl"\lib\mic\libmkl_intel_thread.a --end-group'&lt;/P&gt;

&lt;P&gt;I can see similiar error as yours.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please try to put the link option to&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-weight: 700; font-size: 13.008px; line-height: 19.512px;"&gt;Project Property =&amp;gt; Linker=&amp;gt; General [Intel C++] =&amp;gt;Additional Options for MIC linker&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;"""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_intel_ilp64.a ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_core.a ""C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl""\lib\mic\libmkl_intel_thread.a"&lt;/P&gt;

&lt;P&gt;and add &amp;nbsp;&lt;SPAN style="font-size: 13.008px; font-weight: bold; line-height: 19.512px;"&gt;Project Property =&amp;gt; Linker=&amp;gt;Input=&amp;gt; Additional Dipendencies&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;mkl_intel_ilp64.lib;mkl_intel_thread.lib;mkl_core.lib&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; font-weight: bold; line-height: 19.512px;"&gt;Project Property =&amp;gt; Linker=&amp;gt;General=&amp;gt; Additional library Dipendencies&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\intel64_win&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;

&lt;P&gt;As i haven't correct environment, I get the below error, please see if you can make it run.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;icc: : warning #10006: ignoring unknown option '-fstart-group'&lt;BR /&gt;
	1&amp;gt;icc: : warning #10006: ignoring unknown option '-fend-group'&lt;BR /&gt;
	1&amp;gt;icc: : warning #10362: Environment configuration problem encountered. &amp;nbsp;Please check for proper MPSS installation and environment setup.&lt;BR /&gt;
	1&amp;gt; &amp;nbsp;k1om-mpss-linux-ld.exe: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\lib\mic\libmkl_core.a(mkl_memory_patched.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'&lt;BR /&gt;
	1&amp;gt; &amp;nbsp;k1om-mpss-linux-ld.exe: note: 'pthread_key_delete@@GLIBC_2.2.5' is defined in DSO C:\Program Files\Intel\MPSS\/k1om-mpss-linux/lib64/libpthread.so.0 so try adding it to the linker command line&lt;BR /&gt;
	1&amp;gt; &amp;nbsp;C:\Program Files\Intel\MPSS\/k1om-mpss-linux/lib64/libpthread.so.0: could not read symbols: Invalid operation&lt;BR /&gt;
	1&amp;gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\x64\PlatformToolsets\Intel C++ Compiler 16.0\Microsoft.Cpp.x64.Intel C++ Compiler 16.0.targets(1087,5): error MSB6006: "xilink.exe" exited with code 1.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 07:21:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105536#M24084</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-05-09T07:21:14Z</dc:date>
    </item>
    <item>
      <title>Intel C++ has an excellent</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105537#M24085</link>
      <description>&lt;P&gt;Intel C++ has an excellent implementation of std::min, so you should avoid macro redefinition, as Ying advised.&amp;nbsp; It's annoying to write code to interoperate with other compilers; the macro redefinition still seems to be a usual tactic with MSVC or Intel C, and fmin&lt;F&gt; seems best with aggressive gcc/g++ options.&amp;nbsp; It might be helpful if Intel could also optimize the code targeted for gcc/g++.&amp;nbsp; So I am using an annoying group of macros which invokes std::min for Intel C++.&amp;nbsp; Recent Intel releases are reasonably capable of optimizing the macros like the one quoted.&lt;/F&gt;&lt;/P&gt;

&lt;P&gt;Those ld directives are spelled --start-group ..... --end-group.&amp;nbsp; As MKL needs them for static linking, please refer to&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 10:17:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105537#M24085</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-05-09T10:17:01Z</dc:date>
    </item>
    <item>
      <title>I removed the macro</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105538#M24086</link>
      <description>&lt;P&gt;I removed the macro definition for "min" and I am using the one from the compiler libraries.&lt;/P&gt;

&lt;P&gt;On the other hand, I have spent now some time testing the compilation process with MSVS 2012 following the exact instructions given by Ying and I am getting this compilation error:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;1&amp;gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\x64\PlatformToolsets\Intel C++ Compiler 16.0\Microsoft.Cpp.x64.Intel C++ Compiler 16.0.targets(1081,5): error MSB6006: "xilink.exe" exited with code 1.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The command line works fine, this is what I was using before, but no luck still with MSVS.&lt;/P&gt;

&lt;P&gt;Bests,&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 21:51:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105538#M24086</guid>
      <dc:creator>David_F_8</dc:creator>
      <dc:date>2016-05-09T21:51:28Z</dc:date>
    </item>
    <item>
      <title>Hi David,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105539#M24087</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;

&lt;P&gt;Yes, it seems the integration of MSVC and MIC support has some problems. &amp;nbsp;I had escalated the problem to Intel Compiler team&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I upload one MSVC project. You may try if it can run at your sides.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 08:34:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105539#M24087</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-05-11T08:34:53Z</dc:date>
    </item>
    <item>
      <title>attach the project. It have</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105540#M24088</link>
      <description>&lt;P&gt;attach the project. It have some option in Project Property.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 08:37:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105540#M24088</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-05-11T08:37:55Z</dc:date>
    </item>
    <item>
      <title>I tried the project and I get</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105541#M24089</link>
      <description>&lt;P&gt;I tried the project and I get the following error:&lt;/P&gt;

&lt;P&gt;1&amp;gt;------ Build started: Project: Project1 (Intel C++ 16.0), Configuration: Debug x64 ------&lt;BR /&gt;
	1&amp;gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\x64\PlatformToolsets\Intel C++ Compiler 16.0\Microsoft.Cpp.x64.Intel C++ Compiler 16.0.targets(368,5): error : Element &amp;lt;OffloadOpenMP&amp;gt; has an invalid value of "MICTarget".&lt;BR /&gt;
	========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 17:20:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-MKL-for-Xeon-Phi-MIC-with-Compiler-assisted/m-p/1105541#M24089</guid>
      <dc:creator>David_F_8</dc:creator>
      <dc:date>2016-05-24T17:20:44Z</dc:date>
    </item>
  </channel>
</rss>

