<?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 Visual Studio C# and Intel(R) Xeon(R) CPU E3110 @ 3.00Ghz, 4.00 GB of RAM in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Visual-Studio-C-and-Intel-R-Xeon-R-CPU-E3110-3-00Ghz-4-00-GB-of/m-p/800749#M3015</link>
    <description>&lt;P&gt;What would be the best configuration to get advantage of this Intel preprocessor using MKLI want to use C# .NET?&lt;BR /&gt;&lt;B&gt;Intel Xeon CPU E3110 @ 3.00Ghz, 4.00 GB of RAM&lt;/B&gt;&lt;BR /&gt;I use this page to get an idea&lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;And got&lt;B&gt;mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib /Qopenmp&lt;/B&gt;there it says to set the PATH, LIB and INCLUDE environment variables in the command shell using one of mklvars script files in the 'bin' subdirectory of the Intel MKL installation directory.Is this correct?I was using LAPACKE_dgesvd in C#, butI want to use multicore and threaded functions what would be theThreaded Function for LAPACKE_dgesvd?[DllImport("mkl_rt.dll", ExactSpelling = true, SetLastError = false, CallingConvention = CallingConvention.Cdecl)]&lt;BR /&gt; internal static extern void LAPACKE_dgesvd(&lt;BR /&gt; int matrix_order,&lt;BR /&gt; char a1,&lt;BR /&gt; char a2,&lt;BR /&gt; int m,&lt;BR /&gt; int n,&lt;BR /&gt; [In, Out] double[] input_matrix,&lt;BR /&gt; int lda,&lt;BR /&gt; [In, Out] double[] s,&lt;BR /&gt; [In, Out] double[] u,&lt;BR /&gt; int ldu,&lt;BR /&gt; [In, Out] double[] vt,&lt;BR /&gt; int ldvt,&lt;BR /&gt; double[] superb&lt;BR /&gt; );I was thinking that a possibilitie would be to put somewhere in the C# code the&lt;B&gt;OMP_NUM_THREADS...&lt;/B&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2012 21:47:11 GMT</pubDate>
    <dc:creator>darkcminor</dc:creator>
    <dc:date>2012-02-27T21:47:11Z</dc:date>
    <item>
      <title>Visual Studio C# and Intel(R) Xeon(R) CPU E3110 @ 3.00Ghz, 4.00 GB of RAM</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Visual-Studio-C-and-Intel-R-Xeon-R-CPU-E3110-3-00Ghz-4-00-GB-of/m-p/800749#M3015</link>
      <description>&lt;P&gt;What would be the best configuration to get advantage of this Intel preprocessor using MKLI want to use C# .NET?&lt;BR /&gt;&lt;B&gt;Intel Xeon CPU E3110 @ 3.00Ghz, 4.00 GB of RAM&lt;/B&gt;&lt;BR /&gt;I use this page to get an idea&lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;And got&lt;B&gt;mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib /Qopenmp&lt;/B&gt;there it says to set the PATH, LIB and INCLUDE environment variables in the command shell using one of mklvars script files in the 'bin' subdirectory of the Intel MKL installation directory.Is this correct?I was using LAPACKE_dgesvd in C#, butI want to use multicore and threaded functions what would be theThreaded Function for LAPACKE_dgesvd?[DllImport("mkl_rt.dll", ExactSpelling = true, SetLastError = false, CallingConvention = CallingConvention.Cdecl)]&lt;BR /&gt; internal static extern void LAPACKE_dgesvd(&lt;BR /&gt; int matrix_order,&lt;BR /&gt; char a1,&lt;BR /&gt; char a2,&lt;BR /&gt; int m,&lt;BR /&gt; int n,&lt;BR /&gt; [In, Out] double[] input_matrix,&lt;BR /&gt; int lda,&lt;BR /&gt; [In, Out] double[] s,&lt;BR /&gt; [In, Out] double[] u,&lt;BR /&gt; int ldu,&lt;BR /&gt; [In, Out] double[] vt,&lt;BR /&gt; int ldvt,&lt;BR /&gt; double[] superb&lt;BR /&gt; );I was thinking that a possibilitie would be to put somewhere in the C# code the&lt;B&gt;OMP_NUM_THREADS...&lt;/B&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2012 21:47:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Visual-Studio-C-and-Intel-R-Xeon-R-CPU-E3110-3-00Ghz-4-00-GB-of/m-p/800749#M3015</guid>
      <dc:creator>darkcminor</dc:creator>
      <dc:date>2012-02-27T21:47:11Z</dc:date>
    </item>
    <item>
      <title>Visual Studio C# and Intel(R) Xeon(R) CPU E3110 @ 3.00Ghz, 4.00</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Visual-Studio-C-and-Intel-R-Xeon-R-CPU-E3110-3-00Ghz-4-00-GB-of/m-p/800750#M3016</link>
      <description>Hi darkcminor, &lt;BR /&gt;&lt;BR /&gt;It is good topic. In general,there is two ways touseMKL in C#&lt;BR /&gt;1) import custom dll &lt;BR /&gt;If you want to use threaded function in C#, then when build the custom dll, use command like&lt;BR /&gt;nmake libia32 export=my_function_list name=my_dll threading=parallel&lt;BR /&gt;the custom dll tool is under C:\Program Files (x86)\Intel\Composer XE 2011 SP1\mkl\tools\builder&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;by default is paralle is on. &lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;2) import mkl_rt.dll&lt;BR /&gt;You are right, if forall kind ofconfigurations, you may try set sytem environment MKL_THREADING_LAYER or import the function of mkl_set_interface_layer(), then call it before callLAPACKE_dgesvd in C#. &lt;BR /&gt;&lt;BR /&gt;Here is some help documentation: &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103/"&gt;http://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/using-the-intel-mkl-dynamic-interface-for-windows?wapkw=(mkl_rt)"&gt;Using the Intel MKL Dynamic Interface for Windows OS&lt;/A&gt;&lt;BR /&gt;and mkl user guide: &lt;A href="http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/mklxe/mkl_userguide_win/MKL_UG_linking_your_application/Using_dynamic_interface.htm?wapkw=(mkl_rt)"&gt;Using the Single Dynamic Library Interface&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Butby default, Inte threading ison too. So you don't need to do special setting for multi-core /parallel in C#. &lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Just in case, please make sure the related dlls are in system environment as the artice show&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/some-more-additional-tips-how-to-call-mkl-from-your-c-code/"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;A href="http://software.intel.com/en-us/articles/some-more-additional-tips-how-to-call-mkl-from-your-c-code/" target="_blank"&gt;http://software.intel.com/en-us/articles/some-more-additional-tips-how-to-call-mkl-from-your-c-code/&lt;/A&gt;&lt;BR /&gt;or right click my computer-&amp;gt; properies&amp;gt; advanced system setting&amp;gt; advanced tab &amp;gt;Environment variable&amp;gt; System variable&amp;gt;path. &lt;BR /&gt;(By default, the installer will configure the MKL path, so no work need to do also)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying</description>
      <pubDate>Tue, 28 Feb 2012 02:57:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Visual-Studio-C-and-Intel-R-Xeon-R-CPU-E3110-3-00Ghz-4-00-GB-of/m-p/800750#M3016</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2012-02-28T02:57:45Z</dc:date>
    </item>
    <item>
      <title>Visual Studio C# and Intel(R) Xeon(R) CPU E3110 @ 3.00Ghz, 4.00</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Visual-Studio-C-and-Intel-R-Xeon-R-CPU-E3110-3-00Ghz-4-00-GB-of/m-p/800751#M3017</link>
      <description>&amp;gt;&amp;gt;...would be to put somewhere in the C# code the&lt;STRONG&gt;OMP_NUM_THREADS&lt;/STRONG&gt;...&lt;BR /&gt;&lt;BR /&gt;Even if you can set the &lt;STRONG&gt;OMP_NUM_THREADS&lt;/STRONG&gt; environment variable with some value from your application &lt;SPAN style="text-decoration: underline;"&gt;it won't work&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;The reason is simple: &lt;STRONG&gt;OMP_NUM_THREADS&lt;/STRONG&gt; has to be set before an application loads &lt;STRONG&gt;OpenMP&lt;/STRONG&gt; DLL. In case of&lt;BR /&gt;a &lt;STRONG&gt;Visual Studio&lt;/STRONG&gt; these are '&lt;STRONG&gt;vcomp.dll&lt;/STRONG&gt;' ( Release ) or '&lt;STRONG&gt;vcompd.dll&lt;/STRONG&gt;' ( Debug ) DLLs.&lt;BR /&gt;&lt;BR /&gt;In a C/C++ application youcould use an'&lt;STRONG&gt;omp_set_num_threads&lt;/STRONG&gt;' &lt;STRONG&gt;OpenMP&lt;/STRONG&gt; function.&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Feb 2012 03:08:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Visual-Studio-C-and-Intel-R-Xeon-R-CPU-E3110-3-00Ghz-4-00-GB-of/m-p/800751#M3017</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-02-29T03:08:50Z</dc:date>
    </item>
  </channel>
</rss>

