<?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 If your mpiCC doesn't in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033906#M20288</link>
    <description>&lt;P&gt;If your mpiCC doesn't recognize -mkl i would guess it's configured to use g++&lt;/P&gt;

&lt;P&gt;You would check mpich docs on how to fix that with mpich.&lt;/P&gt;

&lt;P&gt;it doesn't make sense to continue with this thread if you don't intend to clear up this confusion .&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2015 11:07:59 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2015-06-12T11:07:59Z</dc:date>
    <item>
      <title>catastrophic error: cannot open source file "iostream"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033900#M20282</link>
      <description>&lt;P&gt;I am compiling a correct example (taken from &lt;A href="https://software.intel.com/en-us/forums/topic/536962"&gt;here&lt;/A&gt;), but I am getting:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gsamaras@pythagoras:~/intel/code$ ../bin/icc -mkl nine_by_nine.c -o n
nine_by_nine.c(2): catastrophic error: cannot open source file "iostream"
  #include &amp;lt;iostream&amp;gt;
&lt;/PRE&gt;

&lt;P&gt;If I compile with mpicc nine_by_nine.c -l../../mpich-install ${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a -Wl,--end-group ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -liomp5 -ldl -lpthread -lm, as suggested &lt;A href="https://software.intel.com/en-us/forums/topic/558359"&gt;here&lt;/A&gt;, I am getting the very same error message.&lt;/P&gt;

&lt;P&gt;What should I do?&lt;/P&gt;

&lt;P&gt;Notice that &lt;A href="https://software.intel.com/en-us/forums/topic/299886"&gt;this&lt;/A&gt; does not seem to help me.&lt;/P&gt;

&lt;P&gt;---&lt;/P&gt;

&lt;P&gt;EDIT:&lt;/P&gt;

&lt;P&gt;An example that includes these headers works just fine:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include "mkl.h"&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 12:39:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033900#M20282</guid>
      <dc:creator>Georgios_S_</dc:creator>
      <dc:date>2015-06-10T12:39:12Z</dc:date>
    </item>
    <item>
      <title>You should be using a C++ MPI</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033901#M20283</link>
      <description>&lt;P&gt;You should be using a C++ MPI wrapper and a C++ source file suffix (mpiicpc in the case of Intel MPI) to compile C++ MPI code. &amp;nbsp;gcc will make the switch automatically when it sees source files with a C++ suffix or when -x c++ is specified, but that switchover will still not take care of the link step.&lt;/P&gt;

&lt;P&gt;Part of this was covered in the parts of the URL you gave which you ignored.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 16:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033901#M20283</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-06-10T16:51:00Z</dc:date>
    </item>
    <item>
      <title>Tim, sorry but I missed it, I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033902#M20284</link>
      <description>&lt;P&gt;Tim, sorry but I missed it, I didn't i&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;gnore anything. :) However, I am still unable to compile it:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gsamaras@pythagoras:~/intel/code$ ../bin/mpiicpc -mkl nine_by_nine.c -o n
-bash: ../bin/mpiicpc: No such file or directory
gsamaras@pythagoras:~/intel/code$ ../../mpich-install/bin/mpiicpc -mkl nine_by_nine.c -o nnine_by_nine.c
-bash: ../../mpich-install/mpiicpc: No such file or directory
gsamaras@pythagoras:~/intel/code$ ../bin/icpc -mkl nine_by_nine.c -o nnine_by_nine.c
/tmp/icpc3iCx8w.o: In function `main':
nine_by_nine.c:(.text+0x47): undefined reference to `MPI_Init'
// similar errors about MPIT&lt;/PRE&gt;

&lt;P&gt;Note that `&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;../../mpich-install` is the path where I have installed MPICH2, since it wasn't provided with MKL.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Also note that `mpiicpc` alone is not found. What am I missing?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 22:34:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033902#M20284</guid>
      <dc:creator>Georgios_S_</dc:creator>
      <dc:date>2015-06-10T22:34:00Z</dc:date>
    </item>
    <item>
      <title>If you are using mpich I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033903#M20285</link>
      <description>&lt;P&gt;If you are using mpich I guess the c++ wrapper may be mpiCC but you may still need a cpp or equivalent suffix for c++ source files.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2015 03:46:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033903#M20285</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-06-11T03:46:59Z</dc:date>
    </item>
    <item>
      <title>Could you try again after</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033904#M20286</link>
      <description>&lt;P&gt;Could you try again after setting the environment for Intel Tools by sourcing the scripts located in these locations, in case you have not done so?&lt;/P&gt;

&lt;P&gt;&amp;lt;your installation folder&amp;gt;/bin/compilervars.sh intel64&amp;nbsp; (assuming you are building for Intel64.&lt;/P&gt;

&lt;P&gt;&amp;lt;your installation folder&amp;gt;/mkl/bin/mklvars.sh intel64&lt;/P&gt;

&lt;P&gt;&amp;lt;your installation folder&amp;gt;/impi/x.x.x.xxx/bin64/mpivars.sh&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2015 03:53:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033904#M20286</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2015-06-11T03:53:49Z</dc:date>
    </item>
    <item>
      <title>Tim no, I had tried what</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033905#M20287</link>
      <description>&lt;P&gt;Tim no, I had tried what seemed to be needed for C++ and MPI, but it didn't recognize -mkl. Should have included this information in my previous post.&lt;/P&gt;

&lt;P&gt;Vipin Kumar E, the first two worked, but the later failed, because their so no such directory as impi. Here is what I have:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gsamaras@pythagoras:~/intel/bin$ ls
codecov           gdb-mic      icpc           map_opts   tselect
compilervars.csh  icc          inspxe-inject  profdcg    xiar
compilervars.sh   iccvars.csh  inspxe-runsc   profmerge  xild
gdb-ia            iccvars.sh   inspxe-wrap    proforder
gsamaras@pythagoras:~/intel/bin$ ls ../
advisor_xe                    intel_sdp_products.db
advisor_xe_2015               ipp
advisor_xe_2015.1.10.380555   ism
bin                           lib
code // I created this        licenses
composerxe                    man
composer_xe_2015              mkl
composer_xe_2015.3.187        parallel_studio_xe_2015
include                       tbb
inspector_xe                  vtune_amplifier_xe
inspector_xe_2015             vtune_amplifier_xe_2015
inspector_xe_2015.1.2.379161  vtune_amplifier_xe_2015.3.0.403110
gsamaras@pythagoras:~/intel/bin$ ls ../../mpich-install/bin
hydra_nameserver  mpic++        mpicxx         mpif77   mpirun
hydra_persist     mpicc         mpiexec        mpif90   mpivars
hydra_pmi_proxy   mpichversion  mpiexec.hydra  mpifort  parkill
&lt;/PRE&gt;

&lt;P&gt;PS - My product is: Intel® Parallel Studio XE Professional Edition for C++ Linux* for student-use only.&lt;/P&gt;

&lt;P&gt;EDIT:&lt;/P&gt;

&lt;P&gt;As expected, by using the MPI compilers, MKL is not "visible", thus an error:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gsamaras@pythagoras:~/intel/code$ ../../mpich-install/bin/mpic++ -mkl nine_by_nine.c -o n
g++: error: unrecognized command line option ‘-mkl’
gsamaras@pythagoras:~/intel/code$ ../../mpich-install/bin/mpic++ nine_by_nine.c -o n
nine_by_nine.c:7:17: fatal error: mkl.h: No such file or directory
 #include &amp;lt;mkl.h&amp;gt;
                 ^
compilation terminated.
gsamaras@pythagoras:~/intel/code$ ../../mpich-install/bin/mpicxx -mkl nine_by_nine.c -o n
g++: error: unrecognized command line option ‘-mkl’
gsamaras@pythagoras:~/intel/code$ ../../mpich-install/bin/mpicc -mkl nine_by_nine.c -o n
gcc: error: unrecognized command line option ‘-mkl’
&lt;/PRE&gt;

&lt;P&gt;EDIT_2:&lt;/P&gt;

&lt;P&gt;I created a new file, with a .cpp extension, instead of .c. However, the errors are still alive:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gsamaras@pythagoras:~/intel/code$ ../../mpich-install/bin/mpicxx nine_by_nine.cpp -o n -I/../../intel/include
nine_by_nine.cpp:7:17: fatal error: mkl.h: No such file or directory
 #include &amp;lt;mkl.h&amp;gt;
                 ^
compilation terminated.

mpicxx nine_by_nine.cpp -l../../mpich-install ${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a -Wl,--end-group ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -liomp5 -ldl -lpthread -lm
g++: error: /lib/intel64/libmkl_scalapack_lp64.a: No such file or directory
g++: error: /lib/intel64/libmkl_intel_lp64.a: No such file or directory
g++: error: /lib/intel64/libmkl_core.a: No such file or directory
g++: error: /lib/intel64/libmkl_intel_thread.a: No such file or directory
g++: error: /lib/intel64/libmkl_blacs_intelmpi_lp64.a: No such file or directory&lt;/PRE&gt;

&lt;P&gt;Same errors with mpic++ and mpicc. I also checked manually for '/lib/intel64/libmkl_scalapack_lp64.a' for example, but it's not there! I am really stuck, what I should do?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:03:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033905#M20287</guid>
      <dc:creator>Georgios_S_</dc:creator>
      <dc:date>2015-06-11T13:03:00Z</dc:date>
    </item>
    <item>
      <title>If your mpiCC doesn't</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033906#M20288</link>
      <description>&lt;P&gt;If your mpiCC doesn't recognize -mkl i would guess it's configured to use g++&lt;/P&gt;

&lt;P&gt;You would check mpich docs on how to fix that with mpich.&lt;/P&gt;

&lt;P&gt;it doesn't make sense to continue with this thread if you don't intend to clear up this confusion .&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 11:07:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033906#M20288</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-06-12T11:07:59Z</dc:date>
    </item>
    <item>
      <title>Hi Tim,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033907#M20289</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;

&lt;P&gt;&amp;nbsp; I really want to clear up the confusion, but I didn't have what you have in mind. Not sure if I have it now too, to be accurate. First of all,, there is no such thing as mpiCC in my MPICH2 installation. See first code block of post #6, which lists what it has. So you mean how am I compiling a C++ with MPI program? If this is the case (if not, *please* let me know and I will report back ASAP), then I would do this (for compiling &lt;A href="http://people.sc.fsu.edu/~jburkardt/cpp_src/ring_mpi/ring_mpi.cpp"&gt;this&lt;/A&gt; .cpp example):&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gsamaras@pythagoras:~/mpich-3.1.4/code$ ../../mpich-install/bin/mpic++ ring.cpp -o r
gsamaras@pythagoras:~/mpich-3.1.4/code$ mpiexec -n 2 ./r&lt;/PRE&gt;

&lt;P&gt;This won't compile with g++, because of MPI errors.&lt;/P&gt;

&lt;P&gt;Notice that I also tried to compile what I have in post #6 with g++, but it didn't recognize -mkl again.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;George&lt;/P&gt;

&lt;P&gt;EDIT:&lt;/P&gt;

&lt;P&gt;It compiled with:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt; ../mpich-install/bin/mpic++ -o test n.cpp -I../intel/mkl/include  ../intel/mkl/lib/intel64/libmkl_scalapack_ilp64.a -Wl,--start-group ../intel/mkl/lib/intel64/libmkl_intel_ilp64.a ../intel/mkl/lib/intel64/libmkl_core.a ../intel/mkl/lib/intel64/libmkl_sequential.a -Wl,--end-group ../intel/mkl/lib/intel64/libmkl_blacs_intelmpi_ilp64.a -lpthread -lm -ldl&lt;/PRE&gt;

&lt;P&gt;from a new directory I created. Not sure why this worked, but it compiled by just giving a warning:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt; warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
     Cblacs_gridinit(&amp;amp;ictxt, "Row", nprow, npcol);
                                                ^
&lt;/PRE&gt;

&lt;P&gt;EDIT_2:&lt;/P&gt;

&lt;P&gt;Just for the future users:&lt;/P&gt;

&lt;P&gt;However, it will produce a floating point exception (which is weird, since I took it from a guy that knows what he is doing):&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gsamaras@pythagoras:~/konstantis$ mpiexec -n 1 ./test
Returned:  Hello World! I am 0 of 1


===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 4738 RUNNING AT pythagoras
=   EXIT CODE: 8
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Floating point exception (signal 8)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions
&lt;/PRE&gt;

&lt;P&gt;and I am pretty sure that this happens in this line:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;locR = numroc_(&amp;amp;matrix_size, &amp;amp;block, &amp;amp;myrow, &amp;amp;izero, &amp;amp;nprow);&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 16:36:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033907#M20289</guid>
      <dc:creator>Georgios_S_</dc:creator>
      <dc:date>2015-06-12T16:36:00Z</dc:date>
    </item>
    <item>
      <title>If your mpich wrapper is</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033908#M20290</link>
      <description>&lt;P&gt;If your mpich wrapper is spelled mpic++, that's a new one to me, but you could do e.g.&lt;/P&gt;

&lt;P&gt;mpic++ -v&lt;/P&gt;

&lt;P&gt;or mpic++ -V&lt;/P&gt;

&lt;P&gt;to see whether it is attached to g++ or icpc.&lt;/P&gt;

&lt;P&gt;-mkl option is peculiar to Intel compilers.&amp;nbsp; The link advisor app on the Intel site documents how to link with g++ linux and mac (or with Intel compilers, if you want something different from what is included in -mkl options).&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 18:56:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033908#M20290</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-06-12T18:56:11Z</dc:date>
    </item>
    <item>
      <title>Hi Tim,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033909#M20291</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;I guess mpiCC would be the older version. Well, why would it be attached to icpc? I mean I installed MPICH2 and it's standalone. Here is also the output of -v:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gsamaras@pythagoras:$ mpic++ -v
mpicxx for MPICH version 3.1.4
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10)
&lt;/PRE&gt;

&lt;P&gt;By the way, if somebody finds the bug in the example I compiled, it would be nice to let us know.&lt;/P&gt;

&lt;P&gt;Thanks guys.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2015 15:29:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033909#M20291</guid>
      <dc:creator>Georgios_S_</dc:creator>
      <dc:date>2015-06-13T15:29:54Z</dc:date>
    </item>
    <item>
      <title>You are running mpich built</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033910#M20292</link>
      <description>&lt;P&gt;You are running mpich built to use g++, so it is expected to behave as g++ rather than icc or icpc.&amp;nbsp; When g++ compiles a .c source file, without the option -x c++, it might be expected not to handle C++ include files, even though it accepts it as input to gcc.&amp;nbsp; Nor will it understand the -mkl option, so you must refer to the link advisor &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt; for advice on options for compiling and linking with g++ against MKL.&lt;/P&gt;

&lt;P&gt;Any up to date mpich site should document how to make mpich C++ wrapper invoke icpc.&amp;nbsp; There is sufficient compatibility between g++ and icpc (including ability to share libstc++) that it may not require a completely separate build of mpich, although that is the usual way in my experience. If you want separate g++ and icpc builds of mpich to coexistm a likely method would be to build and install in separate directories.&amp;nbsp; You have done the right thing by having that mpich-install directory for your g++ mpich build, rather than putting it on one of the default system paths; you would need another such directory for a separate icpc build.&lt;/P&gt;

&lt;P&gt;You could quite likely build files which don't include any mpi headers with icpc and include them in a build using mpich g++, but that is a higher level of complication.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2015 17:38:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-iostream-quot/m-p/1033910#M20292</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-06-13T17:38:49Z</dc:date>
    </item>
  </channel>
</rss>

