<?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 With Intel MPI, unless you in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919934#M12899</link>
    <description>&lt;P&gt;With Intel MPI, unless you over-rule the way it installs, mpif77 and mpif90 are wrappers for gfortran, which will be incompatible with ifort.&amp;nbsp; The mkl_blacs libraries come in versions for several different MPIs.&amp;nbsp; You must not mix libraries for different MPI or between gfortran and ifort.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2013 13:54:49 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2013-11-28T13:54:49Z</dc:date>
    <item>
      <title>Facing The Problem To Linking With Static Library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919928#M12893</link>
      <description>&lt;P&gt;I am facing the problem to linking with static library.&lt;/P&gt;

&lt;P&gt;I am getting the below error message.&lt;BR /&gt;
	exchange_data.c:(.text+0x374): undefined reference to `ompi_mpi_byte'&lt;BR /&gt;
	exchange_data.c:(.text+0x3e2): undefined reference to `ompi_mpi_byte'&lt;BR /&gt;
	exchange_data.c:(.text+0x4d3): undefined reference to `ompi_mpi_int'&lt;BR /&gt;
	exchange_data.c:(.text+0x5b7): undefined reference to `ompi_mpi_byte'&lt;BR /&gt;
	exchange_data.c:(.text+0x673): undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	exchange_data.c:(.text+0x680): undefined reference to `ompi_mpi_byte'&lt;BR /&gt;
	exchange_data.c:(.text+0x6cc): undefined reference to `ompi_mpi_byte'&lt;BR /&gt;
	exchange_data.c:(.text+0x718): undefined reference to `ompi_mpi_byte'&lt;BR /&gt;
	exchange_data.c:(.text+0x843): undefined reference to `ompi_mpi_int'&lt;BR /&gt;
	exchange_data.c:(.text+0xa62): undefined reference to `ompi_mpi_byte'&lt;BR /&gt;
	exchange_data.c:(.text+0xb54): undefined reference to `ompi_mpi_int'&lt;BR /&gt;
	exchange_data.c:(.text+0xb7c): undefined reference to `ompi_mpi_int&lt;/P&gt;

&lt;P&gt;Above undefined symbol is matches with following STATIC library.&lt;/P&gt;

&lt;P&gt;/app/intel/composer_xe_2013.1.&lt;WBR /&gt;117/mkl/lib/intel64/libmkl_&lt;WBR /&gt;blacs_openmpi_ilp64.a.&lt;/P&gt;

&lt;P&gt;So, In the Make file I've add the flags in the following way.&lt;/P&gt;

&lt;P&gt;LIBS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = -L$(HYPRE_DIR)/lib -lHYPRE&amp;nbsp; -L/app/intel/composer_xe_2013.&lt;WBR /&gt;1.117/mkl/lib/intel64/&lt;BR /&gt;
	LFLAGS&amp;nbsp;&amp;nbsp;&amp;nbsp; = $(LINKOPTS) $(LIBS) -lstdc++&amp;nbsp; -lmkl_blacs_openmpi_ilp6&lt;/P&gt;

&lt;P&gt;After that also while make. I get the same error message.&lt;/P&gt;

&lt;P&gt;Could you help&amp;nbsp;me to resolve the problem to link with static library?&lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;
	Vijay Kumar TP&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 13:12:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919928#M12893</guid>
      <dc:creator>Ramagounder_t_</dc:creator>
      <dc:date>2013-11-26T13:12:25Z</dc:date>
    </item>
    <item>
      <title>Using MKL link advisor: http:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919929#M12894</link>
      <description>&lt;P&gt;Using MKL link advisor: &lt;A href="http://software.intel.com/sites/products/mkl/MKL_Link_Line_Advisor.html" target="_blank"&gt;http://software.intel.com/sites/products/mkl/MKL_Link_Line_Advisor.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;you would expect to see a requirement to quote the full path for each required static library, and to use the start-group ... end-group directives for the group of 3 basic Intel MPI libraries including mkl_ilp64.&lt;/P&gt;

&lt;P&gt;If you have continued difficulty after reading the docs, the MKL forum would be the place to ask.&lt;/P&gt;

&lt;P&gt;Needless to say, in case you don't wish to deal with the complexity of static linking, there is a default of dynamic linking, and dynamic linking would be a useful first step to assure that you have specified the necessary libraries.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 17:29:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919929#M12894</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-11-26T17:29:31Z</dc:date>
    </item>
    <item>
      <title>Thanks for your update Tim.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919930#M12895</link>
      <description>&lt;P&gt;Thanks for your update Tim.&lt;/P&gt;

&lt;P&gt;That symbol matches only with&lt;STRONG&gt; STATIC library&lt;/STRONG&gt; that symbol does not matches with any DYNAMIC library.&lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;
	Vijay Kumar TP&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 08:42:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919930#M12895</guid>
      <dc:creator>Ramagounder_t_</dc:creator>
      <dc:date>2013-11-27T08:42:48Z</dc:date>
    </item>
    <item>
      <title>Hi Vijay,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919931#M12896</link>
      <description>&lt;P&gt;Hi Vijay,&lt;/P&gt;

&lt;P&gt;Have you installed OpenMPI in your compile environment? The symbols of ompi_mpi_int are used in the libmkl_blacs_opempi_lp64 or ilp64.a. but not defined in MKL library.&amp;nbsp; They should be from OpenMPI.&amp;nbsp; So you may need to build your application with OpenMPI&amp;nbsp;CC&amp;nbsp;or link OpenMPI library manually.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;If you&amp;nbsp;also need MKL library, then as Tim mentioned, you need to add the MKL libraries&amp;nbsp;group in your link line. &lt;/P&gt;

&lt;P&gt;for example, I build a small program recently with the Intel MPI. The command line as below.&lt;/P&gt;

&lt;P&gt;/opt/intel/impi/4.1.0/intel64/bin/mpiicc -o test.out myTest.c -I/opt/intel/composer_xe_2013.3.163/mkl/include&lt;/P&gt;

&lt;P&gt;/opt/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group&amp;nbsp; /opt/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_intel_lp64.a /opt/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_intel_thread.a /opt/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_core.a /opt/intel/composer_xe_2013.3.163/mkl/lib/intel64/libmkl_blacs_intelmpi_lp64.a -Wl,--end-group -lpthread -lm -openmp&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;

&lt;P&gt;$ nm&amp;nbsp; libmkl_blacs_openmpi_lp64.a |grep ompi_mpi_byte&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; U ompi_mpi_byte&lt;/P&gt;

&lt;P&gt;$nm&amp;nbsp; libmkl_blacs_openmpi_ilp64.a |grep ompi_mpi_byte&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; U ompi_mpi_byte&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 01:30:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919931#M12896</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2013-11-28T01:30:02Z</dc:date>
    </item>
    <item>
      <title>As Ying mentioned, you would</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919932#M12897</link>
      <description>&lt;P&gt;As Ying mentioned, you would specify the ompi library only when you are building and running with OpenMPI.&amp;nbsp; It won't work with other MPI implementations.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 05:22:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919932#M12897</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-11-28T05:22:55Z</dc:date>
    </item>
    <item>
      <title>CASE 1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919933#M12898</link>
      <description>&lt;P&gt;&lt;STRONG&gt;CASE 1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Make file parameter.&lt;BR /&gt;
	CC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = mpicc&lt;BR /&gt;
	F77&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = mpif77&lt;BR /&gt;
	CXX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = mpic++&lt;BR /&gt;
	F90&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = mpif90&lt;BR /&gt;
	HYPRE_DIR = /app/hypre280 &lt;STRONG&gt;(Compile with GCC LIBRARY)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;compiled successfully only with openmpi compiler.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;CASE 2&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In that same case if I replace&lt;/P&gt;

&lt;P&gt;CC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = mpicc&lt;BR /&gt;
	F77&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = mpif77&lt;BR /&gt;
	CXX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = mpic++&lt;BR /&gt;
	F90&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = mpif90&lt;/P&gt;

&lt;P&gt;HYPRE_DIR = /app/hypre-2.9.0b/ &lt;STRONG&gt;(Compile with INTEL LIBRARY)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;compiled successfully only with INTEL&amp;nbsp; compiler.&lt;/P&gt;

&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;When I try to cross compile with (HYPRE - compile gcc ) and intelmpi&amp;nbsp; in that case only I am getting error message Still now that problem is not yet resolved.These analysis I am doing for Application tuning for better performance.&lt;/P&gt;

&lt;P&gt;What you've shared message it is really helpful.&lt;/P&gt;

&lt;P&gt;Thanks for your support TIM &amp;amp; YING&lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;
	Vijay Kumar TP&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 07:43:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919933#M12898</guid>
      <dc:creator>Ramagounder_t_</dc:creator>
      <dc:date>2013-11-28T07:43:26Z</dc:date>
    </item>
    <item>
      <title>With Intel MPI, unless you</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919934#M12899</link>
      <description>&lt;P&gt;With Intel MPI, unless you over-rule the way it installs, mpif77 and mpif90 are wrappers for gfortran, which will be incompatible with ifort.&amp;nbsp; The mkl_blacs libraries come in versions for several different MPIs.&amp;nbsp; You must not mix libraries for different MPI or between gfortran and ifort.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 13:54:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919934#M12899</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-11-28T13:54:49Z</dc:date>
    </item>
    <item>
      <title>Hello Everyone,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919935#M12900</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am facing same error. I tried all the above solution but still got this error .&lt;/P&gt;

&lt;P&gt;main.o: In function `main':&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:62: undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:63: undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:134: undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:135: undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:135: undefined reference to `ompi_mpi_op_sum'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:135: undefined reference to `ompi_mpi_double'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:136: undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:136: undefined reference to `ompi_mpi_op_sum'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:136: undefined reference to `ompi_mpi_double'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:137: undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:137: undefined reference to `ompi_mpi_op_sum'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:137: undefined reference to `ompi_mpi_double'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:138: undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:138: undefined reference to `ompi_mpi_op_sum'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:138: undefined reference to `ompi_mpi_double'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:139: undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:139: undefined reference to `ompi_mpi_op_sum'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:139: undefined reference to `ompi_mpi_double'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:176: undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:176: undefined reference to `ompi_mpi_dblprec'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:177: undefined reference to `ompi_mpi_comm_world'&lt;BR /&gt;
	/home/ipr/source-gravity/main.c:177: undefined reference to `ompi_mpi_dblprec'&lt;BR /&gt;
	Makefile:21: recipe for target 'main' failed&lt;BR /&gt;
	make: *** [main] Error 1&lt;/P&gt;

&lt;P&gt;In the Make file I've add the flags in the following way.&lt;/P&gt;

&lt;P&gt;CC&amp;nbsp;&amp;nbsp; &amp;nbsp;= mpiicc -O3 -g -Wall&lt;BR /&gt;
	INCLUDE = -I/opt/intel/parallel_studio_xe_2018/compilers_and_libraries_2018/linux/mpi/intel64/include -I/home/ipr/softwares/include&lt;BR /&gt;
	LIBS &amp;nbsp;&amp;nbsp; &amp;nbsp;= -L/home/ipr/softwares/lib -L/opt/intel/parallel_studio_xe_2018/compilers_and_libraries_2018/linux/mpi/intel64/lib&lt;BR /&gt;
	LFLAG&amp;nbsp;&amp;nbsp; &amp;nbsp;= -lm -lgsl -lgslcblas&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;After that also while make. I get the same error message.&lt;/P&gt;

&lt;P&gt;Could you help&amp;nbsp;me to resolve the problem?&lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;

&lt;P&gt;Tejal Rathod.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 07:09:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Facing-The-Problem-To-Linking-With-Static-Library/m-p/919935#M12900</guid>
      <dc:creator>Rathod__Tejal</dc:creator>
      <dc:date>2018-09-15T07:09:05Z</dc:date>
    </item>
  </channel>
</rss>

