<?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 BLAS LAPACK Intel Compilers in Visual Studio 2005 IDE in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/BLAS-LAPACK-Intel-Compilers-in-Visual-Studio-2005-IDE/m-p/898047#M11084</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;As a start, I'm just trying to run Example 7.2 from the Intel Math Kernal Library User Guide. It is an example of calling a complex BLAS Level 1 from C++. I am attempting to run the example in Visual Studio 2005. The example is listed at the very end of this entry for completeness.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Here is the problem - &amp;gt; For some reason I keep getting an error regarding duplication of the zdotc function. The exact error follows. Can anyone help?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;------ Build started: Project: BLAS_EXAMPLE, Configuration: Debug Win32 ------&lt;BR /&gt;Compiling with Intel C++ 10.1.011 [IA-32]... (Intel C++ Environment)&lt;BR /&gt;BLAS_LEVEL_1.cpp&lt;BR /&gt;.\BLAS_LEVEL_1.cpp(3): error: more than one instance of overloaded function "zdotc" has "C" linkage&lt;BR /&gt; extern "C" void zdotc(complex16*, int *, complex16 *, int *, complex16*, int *);&lt;BR /&gt; ^&lt;BR /&gt;&lt;BR /&gt;compilation aborted for .\BLAS_LEVEL_1.cpp (code 2)&lt;BR /&gt;Build log was saved at "file://C:\CARL\DEVELOPMENT\RESEARCH\200811WORK\LEARN_INTEL_MTL\BLAS_EXAMPLE\BLAS_EXAMPLE\Debug\BuildLog.htm"&lt;BR /&gt;BLAS_EXAMPLE - 1 error(s), 0 warning(s)&lt;BR /&gt;========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;code listing follows ------------------------------------&lt;/P&gt;
&lt;P&gt;#include "mkl_blas.h"&lt;BR /&gt;typedef struct{ double re; double im; } complex16;&lt;BR /&gt;extern "C" void zdotc(complex16*, int *, complex16 *, int *, complex16*, int *);&lt;BR /&gt;#define N 5&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;int n, inca = 1, incb = 1, i;&lt;BR /&gt;complex16 a&lt;N&gt;, b&lt;N&gt;, c;&lt;BR /&gt;n = N;&lt;BR /&gt;for( i = 0; i &amp;lt; n; i++ ){&lt;BR /&gt;a&lt;I&gt;.re = (double)i; a&lt;I&gt;.im = (double)i * 2.0;&lt;BR /&gt;b&lt;I&gt;.re = (double)(n - i); b&lt;I&gt;.im = (double)i * 2.0;&lt;BR /&gt;}&lt;BR /&gt;zdotc(&amp;amp;c, &amp;amp;n, a, &amp;amp;inca, b, &amp;amp;incb );&lt;BR /&gt;//printf( "The complex dot product is: ( %6.2f, %6.2f)\n", c.re, c.im );&lt;BR /&gt;}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/N&gt;&lt;/N&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Nov 2008 21:08:35 GMT</pubDate>
    <dc:creator>wolfee</dc:creator>
    <dc:date>2008-11-23T21:08:35Z</dc:date>
    <item>
      <title>BLAS LAPACK Intel Compilers in Visual Studio 2005 IDE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/BLAS-LAPACK-Intel-Compilers-in-Visual-Studio-2005-IDE/m-p/898047#M11084</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;As a start, I'm just trying to run Example 7.2 from the Intel Math Kernal Library User Guide. It is an example of calling a complex BLAS Level 1 from C++. I am attempting to run the example in Visual Studio 2005. The example is listed at the very end of this entry for completeness.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Here is the problem - &amp;gt; For some reason I keep getting an error regarding duplication of the zdotc function. The exact error follows. Can anyone help?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;------ Build started: Project: BLAS_EXAMPLE, Configuration: Debug Win32 ------&lt;BR /&gt;Compiling with Intel C++ 10.1.011 [IA-32]... (Intel C++ Environment)&lt;BR /&gt;BLAS_LEVEL_1.cpp&lt;BR /&gt;.\BLAS_LEVEL_1.cpp(3): error: more than one instance of overloaded function "zdotc" has "C" linkage&lt;BR /&gt; extern "C" void zdotc(complex16*, int *, complex16 *, int *, complex16*, int *);&lt;BR /&gt; ^&lt;BR /&gt;&lt;BR /&gt;compilation aborted for .\BLAS_LEVEL_1.cpp (code 2)&lt;BR /&gt;Build log was saved at "file://C:\CARL\DEVELOPMENT\RESEARCH\200811WORK\LEARN_INTEL_MTL\BLAS_EXAMPLE\BLAS_EXAMPLE\Debug\BuildLog.htm"&lt;BR /&gt;BLAS_EXAMPLE - 1 error(s), 0 warning(s)&lt;BR /&gt;========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;code listing follows ------------------------------------&lt;/P&gt;
&lt;P&gt;#include "mkl_blas.h"&lt;BR /&gt;typedef struct{ double re; double im; } complex16;&lt;BR /&gt;extern "C" void zdotc(complex16*, int *, complex16 *, int *, complex16*, int *);&lt;BR /&gt;#define N 5&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;int n, inca = 1, incb = 1, i;&lt;BR /&gt;complex16 a&lt;N&gt;, b&lt;N&gt;, c;&lt;BR /&gt;n = N;&lt;BR /&gt;for( i = 0; i &amp;lt; n; i++ ){&lt;BR /&gt;a&lt;I&gt;.re = (double)i; a&lt;I&gt;.im = (double)i * 2.0;&lt;BR /&gt;b&lt;I&gt;.re = (double)(n - i); b&lt;I&gt;.im = (double)i * 2.0;&lt;BR /&gt;}&lt;BR /&gt;zdotc(&amp;amp;c, &amp;amp;n, a, &amp;amp;inca, b, &amp;amp;incb );&lt;BR /&gt;//printf( "The complex dot product is: ( %6.2f, %6.2f)\n", c.re, c.im );&lt;BR /&gt;}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/N&gt;&lt;/N&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2008 21:08:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/BLAS-LAPACK-Intel-Compilers-in-Visual-Studio-2005-IDE/m-p/898047#M11084</guid>
      <dc:creator>wolfee</dc:creator>
      <dc:date>2008-11-23T21:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: BLAS LAPACK Intel Compilers in Visual Studio 2005 IDE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/BLAS-LAPACK-Intel-Compilers-in-Visual-Studio-2005-IDE/m-p/898048#M11085</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Your declaration of zdotc (void zdotc(complex16*, int *, complex16 *, int *, complex16*, int *);) conflicts with declaration in mkl_blas.h (void zdotc(MKL_Complex16 *pres, const MKL_INT *n, const MKL_Complex16 *x, const MKL_INT *incx, const MKL_Complex16 *y, const MKL_INT *incy);)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2008 15:19:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/BLAS-LAPACK-Intel-Compilers-in-Visual-Studio-2005-IDE/m-p/898048#M11085</guid>
      <dc:creator>Andrey_Bespalov</dc:creator>
      <dc:date>2008-11-24T15:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: BLAS LAPACK Intel Compilers in Visual Studio 2005 IDE</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/BLAS-LAPACK-Intel-Compilers-in-Visual-Studio-2005-IDE/m-p/898049#M11086</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-ansi-language: EN-GB;" lang="EN-GB"&gt;As an additional info, please pay attention the Note into mkl manual:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: Verdana-Bold; mso-bidi-font-family: Verdana-Bold;"&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;NOTE. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: Verdana; mso-bidi-font-family: Verdana;"&gt;Instead of calling BLAS directly from C programs, you might wish to use the&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: Verdana; mso-bidi-font-family: Verdana;"&gt;CBLAS interface; this is the supported way of calling BLAS from C. For more information&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: Verdana; mso-bidi-font-family: Verdana;"&gt;about CBLAS, see &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #0860a9; font-family: Verdana; mso-bidi-font-family: Verdana;"&gt;Appendix D &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: Verdana; mso-bidi-font-family: Verdana;"&gt;, which presents CBLAS, the C interface to the Basic Linear&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: Verdana; mso-bidi-font-family: Verdana;"&gt;Algebra Subprograms (BLAS) implemented in Intel&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: CourierNewPSMT; mso-bidi-font-family: CourierNewPSMT;"&gt;&lt;SPAN style="font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: Verdana; mso-bidi-font-family: Verdana;"&gt;MKL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: Verdana; mso-bidi-font-family: Verdana;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: Arial;"&gt;And you can find the appropriate examples of using &lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;CBLAS Interface to the BLAS into &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-bidi-font-style: italic;"&gt;${MKLROOT}examplescblassource&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-bidi-font-style: italic;"&gt;--Gennady&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2008 16:12:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/BLAS-LAPACK-Intel-Compilers-in-Visual-Studio-2005-IDE/m-p/898049#M11086</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2008-11-24T16:12:47Z</dc:date>
    </item>
  </channel>
</rss>

