<?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 Setting MKL to use with Intel ParallelAccelerator in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145530#M26664</link>
    <description>&lt;P&gt;I am programming in Julia and for Parallel computing i am using &lt;A href="https://github.com/IntelLabs/ParallelAccelerator.jl"&gt;ParallelAccelerator.jl &lt;/A&gt;package.&amp;nbsp;I was able to setup OpenBLAS with g++. Kindly help me out to set up &lt;A href="https://software.intel.com/en-us/mkl"&gt;Intel MKL&lt;/A&gt; with g++. I have installed Julia using macOS dmg package hence I am unable find Make.inc file. This is article from Intel which explains setting up &lt;A href="https://software.intel.com/en-us/articles/julia-with-intel-mkl-for-improved-performance"&gt;Julia with Intel MKL&amp;nbsp;&lt;/A&gt;I am unable to setup Julia to use MKL instead its currently using OpenBLAS as you can see from the below output.&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;julia&amp;gt; versioninfo()
Julia Version 0.5.2
Commit f4c6c9d4bb (2017-05-06 16:34 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin13.4.0)
  CPU: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)&lt;/PRE&gt;

&lt;PRE class="brush:python;"&gt;julia&amp;gt; Pkg.build("ParallelAccelerator")
INFO: Building ParallelAccelerator
ParallelAccelerator: build.jl begin.
ParallelAccelerator: Building j2c-array shared library
System installed BLAS found
Checking for OpenMP support...
OpenMP support found in g++-7
Max OpenMP threads: 8
Using g++-7 to build ParallelAccelerator array runtime.
ParallelAccelerator: build.jl done.
&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;This is how i setup openblas&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/opt/openblas/include/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/opt/openblas/lib/&lt;/PRE&gt;

&lt;P&gt;Kindly let me know if there any other way to Setup MKL.&lt;/P&gt;

&lt;P&gt;Thank You&lt;BR /&gt;
	Regards&lt;BR /&gt;
	Saran&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 09:26:37 GMT</pubDate>
    <dc:creator>Saran</dc:creator>
    <dc:date>2017-07-12T09:26:37Z</dc:date>
    <item>
      <title>Setting MKL to use with Intel ParallelAccelerator</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145530#M26664</link>
      <description>&lt;P&gt;I am programming in Julia and for Parallel computing i am using &lt;A href="https://github.com/IntelLabs/ParallelAccelerator.jl"&gt;ParallelAccelerator.jl &lt;/A&gt;package.&amp;nbsp;I was able to setup OpenBLAS with g++. Kindly help me out to set up &lt;A href="https://software.intel.com/en-us/mkl"&gt;Intel MKL&lt;/A&gt; with g++. I have installed Julia using macOS dmg package hence I am unable find Make.inc file. This is article from Intel which explains setting up &lt;A href="https://software.intel.com/en-us/articles/julia-with-intel-mkl-for-improved-performance"&gt;Julia with Intel MKL&amp;nbsp;&lt;/A&gt;I am unable to setup Julia to use MKL instead its currently using OpenBLAS as you can see from the below output.&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;julia&amp;gt; versioninfo()
Julia Version 0.5.2
Commit f4c6c9d4bb (2017-05-06 16:34 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin13.4.0)
  CPU: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)&lt;/PRE&gt;

&lt;PRE class="brush:python;"&gt;julia&amp;gt; Pkg.build("ParallelAccelerator")
INFO: Building ParallelAccelerator
ParallelAccelerator: build.jl begin.
ParallelAccelerator: Building j2c-array shared library
System installed BLAS found
Checking for OpenMP support...
OpenMP support found in g++-7
Max OpenMP threads: 8
Using g++-7 to build ParallelAccelerator array runtime.
ParallelAccelerator: build.jl done.
&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;This is how i setup openblas&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/opt/openblas/include/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/opt/openblas/lib/&lt;/PRE&gt;

&lt;P&gt;Kindly let me know if there any other way to Setup MKL.&lt;/P&gt;

&lt;P&gt;Thank You&lt;BR /&gt;
	Regards&lt;BR /&gt;
	Saran&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 09:26:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145530#M26664</guid>
      <dc:creator>Saran</dc:creator>
      <dc:date>2017-07-12T09:26:37Z</dc:date>
    </item>
    <item>
      <title>Please check https://github</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145531#M26665</link>
      <description>&lt;P&gt;Please check&amp;nbsp;https://github.com/JuliaLang/julia. You can download the make.inc file there, as well.&lt;/P&gt;

&lt;P&gt;Also, please try&lt;/P&gt;

&lt;DIV&gt;
	&lt;P&gt;export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$MKLROOT/include/&lt;BR /&gt;
		export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MKLROOT/lib/intel64/&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jul 2017 08:06:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145531#M26665</guid>
      <dc:creator>Jing_Xu</dc:creator>
      <dc:date>2017-07-13T08:06:28Z</dc:date>
    </item>
    <item>
      <title>Quote:Jing X. (Intel) wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145532#M26666</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Jing X. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$MKLROOT/include/&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em;"&gt;export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MKLROOT/lib/intel64/&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thank you for your response. I have added the path&amp;nbsp;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;~/.bash_profile rebuilt &lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/738117" style="color: rgb(102, 102, 102); font-family: Verdana, Arial, Tahoma, Helvetica, sans-serif; font-size: 12px;"&gt;ParallelAccelerator&lt;/A&gt;.jl but now Julia is unable to detect there is no BLAS found .Hence I had to go back to OpenBLAS&lt;BR /&gt;
	export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/opt/openblas/include/&lt;BR /&gt;
	export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/opt/openblas/lib/&lt;/P&gt;

&lt;P&gt;And you have mentioned Make.inc file. In which folder do I place the file once I download it?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 10:59:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145532#M26666</guid>
      <dc:creator>Saran</dc:creator>
      <dc:date>2017-07-13T10:59:12Z</dc:date>
    </item>
    <item>
      <title>How did you set your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145533#M26667</link>
      <description>&lt;P&gt;How did you set your environment variables? Did you set MKLROOT?&lt;/P&gt;

&lt;P&gt;Make.inc is supposed to put into the root folder. Please take the folder structure on Github as a reference.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 23:11:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145533#M26667</guid>
      <dc:creator>Jing_Xu</dc:creator>
      <dc:date>2017-07-13T23:11:22Z</dc:date>
    </item>
    <item>
      <title>Quote:Jing X. (Intel) wrote</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145534#M26668</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Jing X. (Intel) wrote:&lt;BR /&gt;&lt;SPAN style="font-size: 1em;"&gt;How did you set your environment variables? Did you set MKLROOT?&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;source /opt/intel/mkl/bin/mklvars.sh intel64&lt;/SPAN&gt;&lt;BR /&gt;
		echo $MKLROOT&amp;nbsp;&lt;BR /&gt;
		/opt/intel/compilers_and_libraries_2017.4.181/mac/mkl&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;And in .bash_profile the following has been added&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em;"&gt;export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$MKLROOT/include/&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em;"&gt;export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MKLROOT/lib/intel64/&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;As soon I do this the following is the result&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;julia&amp;gt; Pkg.build("ParallelAccelerator")
INFO: Building ParallelAccelerator
ParallelAccelerator: build.jl begin.
ParallelAccelerator: Building j2c-array shared library
&lt;STRONG&gt;No BLAS installation detected (optional)&lt;/STRONG&gt;
Using g++ to build ParallelAccelerator array runtime.
ParallelAccelerator: build.jl done.

julia&amp;gt; versioninfo()
Julia Version 0.5.2
Commit f4c6c9d4bb (2017-05-06 16:34 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin13.4.0)
  CPU: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
  WORD_SIZE: 64
  &lt;STRONG&gt;BLAS: libopenblas&lt;/STRONG&gt; (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 01:38:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MKL-to-use-with-Intel-ParallelAccelerator/m-p/1145534#M26668</guid>
      <dc:creator>Saran</dc:creator>
      <dc:date>2017-07-14T01:38:18Z</dc:date>
    </item>
  </channel>
</rss>

