<?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 You probably did not in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-call-DSS-from-an-application-written-in-C/m-p/1186435#M29615</link>
    <description>&lt;P&gt;You probably did not specify the linker options needed to pull in the necessary routines from&amp;nbsp;the MKL libraries. If you compile from the command line, the /Qmkl option may suffice. There are corresponding options in the project properties if you are using Visual Studio.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2020 14:32:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2020-06-16T14:32:00Z</dc:date>
    <item>
      <title>How to call DSS from an application written in C?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-call-DSS-from-an-application-written-in-C/m-p/1186434#M29614</link>
      <description>&lt;P&gt;I am trying to call DSS routines from a C code by doing following (a short example using only dss_create):&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;#include "mkl_dss.h"
#include "mkl_types.h"
#include "mkl.h"

_MKL_DSS_HANDLE_t handle;
int opt = MKL_DSS_DEFAULTS;
int err;

err = dss_create(handle, opt);&lt;/PRE&gt;

&lt;P&gt;In Project Properties, C/C++ - General - Additional Include Directories, I have specified C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\mkl\include.&lt;/P&gt;
&lt;P&gt;Building the project produces the linker error "Error LNK2001 unresolved external symbol _dss_create_".&lt;/P&gt;
&lt;P&gt;I assume this might have something to do with calling conventions, but I was not able to find out what I am missing and doing wrong. Can anybody point me in the right direction, please?&lt;/P&gt;
&lt;P&gt;I am using Visual Studio 2019 Professional 2019, Intel Parallel Studio XE 2020 Update 1, with corresponding MKL, on Windows 10 Pro 10.0.18363.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:56:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-call-DSS-from-an-application-written-in-C/m-p/1186434#M29614</guid>
      <dc:creator>jirina</dc:creator>
      <dc:date>2020-06-16T13:56:24Z</dc:date>
    </item>
    <item>
      <title>You probably did not</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-call-DSS-from-an-application-written-in-C/m-p/1186435#M29615</link>
      <description>&lt;P&gt;You probably did not specify the linker options needed to pull in the necessary routines from&amp;nbsp;the MKL libraries. If you compile from the command line, the /Qmkl option may suffice. There are corresponding options in the project properties if you are using Visual Studio.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 14:32:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-call-DSS-from-an-application-written-in-C/m-p/1186435#M29615</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2020-06-16T14:32:00Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-call-DSS-from-an-application-written-in-C/m-p/1186436#M29616</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It looks like you didn't specify the MKL libraries to link against and the path to the libraries. Please have a look at the "manual" part at&amp;nbsp;https://software.intel.com/content/www/us/en/develop/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc.html (not exactly VS 2019 but it should work).&lt;/P&gt;&lt;P&gt;Also, please, consider using PARDISO&amp;nbsp;(see &lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/mkl-developer-reference-fortran/top/sparse-solver-routines/intel-mkl-pardiso-parallel-direct-sparse-solver-interface.html)" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/mkl-developer-reference-fortran/top/sparse-solver-routines/intel-mkl-pardiso-parallel-direct-sparse-solver-interface.html)&lt;/A&gt; instead of DSS. DSS API is just a wrapper around PARDISO and was meant to provide easier interface for the functionality but actually it doesn't in my opinion and can lead to confusion and sub-optimal options being used.&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Kirill&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 16:45:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-call-DSS-from-an-application-written-in-C/m-p/1186436#M29616</guid>
      <dc:creator>Kirill_V_Intel</dc:creator>
      <dc:date>2020-06-16T16:45:09Z</dc:date>
    </item>
    <item>
      <title>Thank you, guys, for your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-call-DSS-from-an-application-written-in-C/m-p/1186437#M29617</link>
      <description>&lt;P&gt;Thank you, guys, for your suggestions.&lt;/P&gt;&lt;P&gt;I forgot to say my application is not Intel C, but MS C, and I thus do not have Intel Performance Libraries item in the Project Properties.&lt;/P&gt;&lt;P&gt;However, the first link in Kyrill's post contains instructions how to use Intel MKL in MS Visual Studio manually, and following them made things work as expected. I used the MKL Link Line Advisor mentioned in instructions, which was also very helpful.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 18:33:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-call-DSS-from-an-application-written-in-C/m-p/1186437#M29617</guid>
      <dc:creator>jirina</dc:creator>
      <dc:date>2020-06-16T18:33:10Z</dc:date>
    </item>
  </channel>
</rss>

