<?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   in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182572#M29404</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hi Sen Gupta,&lt;/P&gt;

&lt;P&gt;Get it.&amp;nbsp; Then what c and fortran compiler are you using?&amp;nbsp; If no intel compiler (icc and ifort), then i may suppose you are use GNU gcc and gfortran,&amp;nbsp; please refer to the article for build&amp;nbsp;R :&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/using-intel-mkl-with-r" target="_blank"&gt;https://software.intel.com/en-us/articles/using-intel-mkl-with-r&lt;/A&gt;&lt;BR /&gt;
	​&lt;/P&gt;

&lt;P&gt;and you may check your config.log file for attach it so we can see the.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	​Ying&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 03:20:51 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2018-01-16T03:20:51Z</dc:date>
    <item>
      <title>Error compiling R with MKL - C compiler cannot create executables</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182568#M29400</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to compile R from source using MKL.&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;I am doing this in an AWS EC2 instance and&lt;/SPAN&gt;&amp;nbsp;am following the instructions given as per this page:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/build-r-301-with-intel-c-compiler-and-intel-mkl-on-linux"&gt;https://software.intel.com/en-us/articles/build-r-301-with-intel-c-compiler-and-intel-mkl-on-linux&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However, when I try to run the "make" command, I get the following:&lt;/P&gt;

&lt;P&gt;checking for gcc...&amp;nbsp; icc&lt;BR /&gt;
	checking whether the C compiler works... no&lt;BR /&gt;
	configure: error: in `/home/ec2-user/R-3.4.3':&lt;BR /&gt;
	configure: error: C compiler cannot create executables&lt;BR /&gt;
	See `config.log' for more details&lt;/P&gt;

&lt;P&gt;------------------------&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 09:25:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182568#M29400</guid>
      <dc:creator>Sen_Gupta__Indrajit</dc:creator>
      <dc:date>2018-01-12T09:25:58Z</dc:date>
    </item>
    <item>
      <title>Hi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182569#M29401</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;We update that article recently.&amp;nbsp; Do you&amp;nbsp;installed intel composer XE , which include both Intel C/Compiler (icc)&amp;nbsp;&amp;nbsp; and Intel MKL?&amp;nbsp; Could you attach your config.log file so we can see what is exact problem?&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 02:14:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182569#M29401</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2018-01-15T02:14:10Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182570#M29402</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;I have not used Intel Composer XE. I used just the Intel Math Kernel Library from this link:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/mkl" target="_blank"&gt;https://software.intel.com/en-us/mkl&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:25:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182570#M29402</guid>
      <dc:creator>Sen_Gupta__Indrajit</dc:creator>
      <dc:date>2018-01-15T12:25:51Z</dc:date>
    </item>
    <item>
      <title>Make sure that you can</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182571#M29403</link>
      <description>&lt;P&gt;Make sure that you can compile, link and run standard C programs on the AWS system before attempting to use the MKL libraries. That is, does the "provisioning" include a C compiler package?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 16:27:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182571#M29403</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-01-15T16:27:59Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182572#M29404</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hi Sen Gupta,&lt;/P&gt;

&lt;P&gt;Get it.&amp;nbsp; Then what c and fortran compiler are you using?&amp;nbsp; If no intel compiler (icc and ifort), then i may suppose you are use GNU gcc and gfortran,&amp;nbsp; please refer to the article for build&amp;nbsp;R :&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/using-intel-mkl-with-r" target="_blank"&gt;https://software.intel.com/en-us/articles/using-intel-mkl-with-r&lt;/A&gt;&lt;BR /&gt;
	​&lt;/P&gt;

&lt;P&gt;and you may check your config.log file for attach it so we can see the.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	​Ying&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 03:20:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182572#M29404</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2018-01-16T03:20:51Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182573#M29405</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I got the trial version of Parallel Studio XE 2018 Update 1. Was able to compile R from source. Now when I am running some generalized linear models and timing them, I don't see improvement. The reduction in time is only by 0.4 seconds. This is how I kickstarted the process:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;source /opt/intel/bin/compilervars.sh intel64
export MKL_INTERFACE_LAYER=GNU,LP64
export MKL_THREADING_LAYER=SEQUENTIAL
nohup ~/R-3.4.3/bin/R CMD BATCH filename.R &amp;amp;
&lt;/PRE&gt;

&lt;P&gt;I had to use MKL_THREADING_LAYER=SEQUENTIAL instead of INTEL since my code has Genetic Algorithms running in a parallel mode, and causes a conflict.&lt;/P&gt;

&lt;P&gt;Before I had run my program, I had done linking the BLAS and LAPACK libraries in this manner:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;cd R-3.4.3/lib
mv libRblas.so libRblas.so.keep
ln -s /opt/intel/compilers_and_libraries/linux/mkl/lib/intel64/libmkl_rt.so libRblas.so

mv libRlapack.so libRlapack.so.keep
ln -s /opt/intel/compilers_and_libraries/linux/mkl/lib/intel64/libmkl_rt.so libRlapack.so&lt;/PRE&gt;

&lt;P&gt;Just to check if the MKL was properly used, I did benchmarking as described in this page:&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/quick-linking-intel-mkl-blas-lapack-to-r"&gt;https://software.intel.com/en-us/articles/quick-linking-intel-mkl-blas-lapack-to-r&lt;/A&gt;. The total time taken for all the 15 tests were around 5.6 seconds.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Looking forward to any suggestions on what I can do to see any improvement in the GLM.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	Indrajit&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 10:32:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182573#M29405</guid>
      <dc:creator>Sen_Gupta__Indrajit</dc:creator>
      <dc:date>2018-01-26T10:32:00Z</dc:date>
    </item>
    <item>
      <title>Hi Indrajit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182574#M29406</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="font-size: 12px;"&gt;Indrajit&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Nice to know you make the R worked.&amp;nbsp; You mentioned The total time taken for all the 15 tests were around 5.6 seconds,&amp;nbsp; how about with MKL&amp;nbsp; and without MKL?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Not sure how much your GLM depend on MKL functions in R. Could you please submit your question and sample code to&amp;nbsp; Intel Online Service:&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;&lt;A href="https://supporttickets.intel.com/" target="_blank"&gt;https://supporttickets.intel.com/&lt;/A&gt; so we may investigate in details.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 06:43:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182574#M29406</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2018-02-02T06:43:36Z</dc:date>
    </item>
    <item>
      <title>Hi.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182575#M29407</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;I am also trying to compile R (3.4.3) with Intel (Composer XE 2016) and MKL (11.3), by following the procedure described in "&lt;A href="https://software.intel.com/en-us/articles/build-r-301-with-intel-c-compiler-and-intel-mkl-on-linux"&gt;Build R-3.4.2 with Intel® C++ and Fortran Compilers and Intel® MKL on Linux&lt;/A&gt;",&amp;nbsp; but without success. During the configure stage I get&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;checking whether mixed C/Fortran code can be run... configure: WARNING: cannot run mixed C/Fortran code&lt;BR /&gt;
		configure: error: Maybe check LDFLAGS for paths to Fortran libraries?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;This happens even if do not try to use MKL, and let all the R configure options in their default values:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;../R-3.4.3/configure --prefix=/usr/global/Scientific/R/3.4.3-with_Intel_2016.3.210&lt;/PRE&gt;

&lt;P&gt;I am using the Intel Composer XE 2016 along with GCC 4.8.5, which was installed from source code. I have tried to set the LDFLAGS variable to point to the path containing the libgfortran.so.3 library (although it is in the LD_LIBRARY_PATH and in the LIBRARY_PATH), but without success. However, if I compile R with GCC 4.8.5, I get no errors.&lt;/P&gt;

&lt;P&gt;Can someone please help me with this? I have attached the files with the config.log and the output of the configure stage.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Miguel&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 02:32:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1182575#M29407</guid>
      <dc:creator>Couceiro__Miguel</dc:creator>
      <dc:date>2018-02-26T02:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hi.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1214589#M30134</link>
      <description>&lt;P&gt;Hi Miguel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I encountered the same issue before, and I found a way to get around, you can also check this out:&lt;/P&gt;
&lt;P&gt;First, you need to install intel-mkl library from the package manager, here we use Intel APT source because our operating system is Ubuntu, you can check it out &lt;A href="https://software.intel.com/content/www/us/en/develop/articles/installing-intel-free-libs-and-python-apt-repo.html" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Then, remember to source the environment variable shell, like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;source /opt/intel/mkl/bin/mklvars.sh intel64&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From &lt;A href="https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=r-mkl" target="_self"&gt;Arch Linux User Repository&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;export _intel_arch=intel64
export _intel_lib=mkl_intel_lp64
export MKL="-L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_rt -lpthread -lm -ldl"
export _intel_cc_opt="-O3 -fPIC -m64 -march=native -fp-model precise -fp-model source -I${MKLROOT}/include"
export LDFLAGS="-qopenmp"
export CFLAGS="${_intel_cc_opt}"
export CXXFLAGS="${_intel_cc_opt}"
export FFLAGS="${_intel_cc_opt}"
export FCFLAGS="${_intel_cc_opt}"
export CC="icc"
export CXX="icpc"
export F77="ifort"
export FC="ifort"
export AR="xiar"
export LD="xild"
export LD_LIBRARY_PATH={intel parallel studio install folder}/compilers_and_libraries_.{version}/linux/compiler/lib/intel64_lin/
source {intel parallel studio install folder}/bin/compilervars.sh ${_intel_arch}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Miyamizu&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 01:52:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-compiling-R-with-MKL-C-compiler-cannot-create-executables/m-p/1214589#M30134</guid>
      <dc:creator>Mitsuha</dc:creator>
      <dc:date>2020-10-04T01:52:57Z</dc:date>
    </item>
  </channel>
</rss>

