<?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 Hi, in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998959#M3699</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I just have Intel Compiler and Intel MPI library installed on my system. When I executed "cmake ../", I got the following error. It seems like cmake cannot find Intel MPI path. I also tried to set these&amp;nbsp;MPI paths manually (MPI_C_LIBRARIES,...), but it still failed when running cmake:&lt;/P&gt;

&lt;P&gt;C:\Users\Administrator\Desktop\DrugDesign\drugdesign-master\drugdesign-master\vi&lt;BR /&gt;
	rtualscreening\build&amp;gt;cmake ../&lt;BR /&gt;
	-- Building for: Visual Studio 11 2012&lt;BR /&gt;
	-- The C compiler identification is MSVC 17.0.50727.1&lt;BR /&gt;
	-- The CXX compiler identification is MSVC 17.0.50727.1&lt;BR /&gt;
	-- Check for working C compiler using: Visual Studio 11 2012&lt;BR /&gt;
	-- Check for working C compiler using: Visual Studio 11 2012 -- works&lt;BR /&gt;
	-- Detecting C compiler ABI info&lt;BR /&gt;
	-- Detecting C compiler ABI info - done&lt;BR /&gt;
	-- Check for working CXX compiler using: Visual Studio 11 2012&lt;BR /&gt;
	-- Check for working CXX compiler using: Visual Studio 11 2012 -- works&lt;BR /&gt;
	-- Detecting CXX compiler ABI info&lt;BR /&gt;
	-- Detecting CXX compiler ABI info - done&lt;BR /&gt;
	-- Detecting CXX compile features&lt;BR /&gt;
	-- Detecting CXX compile features - done&lt;BR /&gt;
	CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageH&lt;BR /&gt;
	andleStandardArgs.cmake:138 (message):&lt;BR /&gt;
	&amp;nbsp; Could NOT find MPI_C (missing: MPI_C_LIBRARIES)&lt;BR /&gt;
	Call Stack (most recent call first):&lt;BR /&gt;
	&amp;nbsp; C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandard&lt;BR /&gt;
	Args.cmake:374 (_FPHSA_FAILURE_MESSAGE)&lt;BR /&gt;
	&amp;nbsp; C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindMPI.cmake:616 (find_p&lt;BR /&gt;
	ackage_handle_standard_args)&lt;BR /&gt;
	&amp;nbsp; CMakeLists.txt:11 (find_package)&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	-- Configuring incomplete, errors occurred!&lt;BR /&gt;
	See also "C:/Users/Administrator/Desktop/DrugDesign/drugdesign-master/drugdesign&lt;BR /&gt;
	-master/virtualscreening/build/CMakeFiles/CMakeOutput.log".&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2015 17:49:12 GMT</pubDate>
    <dc:creator>Loc_N_Intel</dc:creator>
    <dc:date>2015-04-13T17:49:12Z</dc:date>
    <item>
      <title>Problem: Sending more than two process</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998954#M3694</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have faced with a problem when my program try to send structure data more than two process. I created data structure mpi_docking_t as below&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;typedef struct s_docking{
	char receptor[MAX_FILE_NAME];
	char compound[MAX_FILE_NAME];
}docking_t;

/*************  mpi_docking_t ***************************/  
  const int nitems_dock=2;
  int blocklengths_dock[nitems_dock] = {MAX_PATH, MAX_PATH};
  MPI_Datatype types_dock[nitems_dock] = {MPI_CHAR, MPI_CHAR};  
  MPI_Aint offsets_dock[nitems_dock];

  offsets_dock[0] = offsetof(docking_t, receptor);
  offsets_dock[1] = offsetof(docking_t, compound);

  MPI_Type_create_struct(nitems_dock, blocklengths_dock, offsets_dock, types_dock, &amp;amp;mpi_docking_t);
  MPI_Type_commit(&amp;amp;mpi_docking_t); 
/*************  mpi_docking_t end ***************************/&lt;/PRE&gt;

&lt;P&gt;i tried to send data based on this code:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;  //Preparing buffer to be sent
  docking_t  *buff = NULL;
  int buffer_dock;
  buffer_dock = sizeof(docking_t)*number_dock*MPI_BSEND_OVERHEAD;
  buff = (docking_t *) malloc(buffer_dock);

    f_dock = open_file(argv[2], fREAD);
    //Ignoring first line of file
    fgets(line, MAX_LINE_FILE, f_dock);
    //Obtaining docking that will be executed in root
    for (num_line_ref = 0; num_line_ref &amp;lt; number_dock_root; num_line_ref++){
      fgets(line, MAX_LINE_FILE, f_dock);
      set_receptor_compound(docking_root[num_line_ref].receptor, docking_root[num_line_ref].compound, line);      
    }    
    MPI_Buffer_attach(buff, buffer_dock);
    num_line_ref = -1;    
    dest = 1;
    while (fgets(line, MAX_LINE_FILE, f_dock) != NULL){
      if (num_line_ref &amp;lt; number_dock){
        num_line_ref = num_line_ref + 1;
      }else{                
        MPI_Isend(v_docking, number_dock, mpi_docking_t, dest, tag_docking, MPI_COMM_WORLD, &amp;amp;request_dock);
        dest = dest + 1;
        num_line_ref = 0;
      }
      set_receptor_compound(v_docking[num_line_ref].receptor, v_docking[num_line_ref].compound, line);
    }
    //Sending to last rank because MPI_Send inside while command is not executed for the last rank 
    MPI_Isend(v_docking, number_dock, mpi_docking_t, dest, tag_docking, MPI_COMM_WORLD, &amp;amp;request_dock);    
    fclose(f_dock);
&lt;/PRE&gt;

&lt;P&gt;My receid code is:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;    MPI_Irecv(v_docking, number_dock, mpi_docking_t, root,tag_docking, MPI_COMM_WORLD, &amp;amp;request_dock);
    MPI_Wait(&amp;amp;request_dock, &amp;amp;status);      
&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;When I execute my program using line below, it works fine.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;faccioli@faccioli:~/Execute/MPI$ mpirun -np 2 /home/faccioli/workspace/drugdesign/virtualscreening/build/./vs_main config.conf overall_docking_list.txt
faccioli@faccioli:~/Execute/MPI$ &lt;/PRE&gt;

&lt;P&gt;However, when I increase the process number (-np &amp;gt; 2) I receive a memory error. I looked at internet and the book Using MPI by William Gropp, but no success to indentify a solution. I understood that I have to create a MPI derived data type. I couldn't understand how I do it.&lt;/P&gt;

&lt;P&gt;My project is [1]. My main file is virtual_screening/src/vs_main.c.&lt;/P&gt;

&lt;P&gt;I appreciate any help.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;[1]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;A href="https://github.com/rodrigofaccioli/drugdesign" target="_blank"&gt;https://github.com/rodrigofaccioli/drugdesign&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 18:10:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998954#M3694</guid>
      <dc:creator>Rodrigo_Antonio_F_</dc:creator>
      <dc:date>2015-03-28T18:10:09Z</dc:date>
    </item>
    <item>
      <title>Hi Antonio,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998955#M3695</link>
      <description>&lt;P&gt;Hi Antonio,&lt;/P&gt;

&lt;P&gt;I try to reproduce the problem you have. I can compile the problem but cannot run it since I don't know what parameters I should pass in the program. Would you like to post what parameters you are pass in, and what they look like? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2015 21:22:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998955#M3695</guid>
      <dc:creator>Loc_N_Intel</dc:creator>
      <dc:date>2015-04-06T21:22:28Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998956#M3696</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thank you your attention.&lt;/P&gt;

&lt;P&gt;I prepared a branch that contains test directory to run my project. This branch is [1].&lt;/P&gt;

&lt;P&gt;The steps below are used to compile my project&amp;nbsp;&lt;/P&gt;

&lt;P&gt;cd drugdesign/virtualscreening&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;mkdir build&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;cd build&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;cmake ../&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;make&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;You can run my project using the test directory (drugdesign/virtualscreening/teste_send_receive/) since you update your config.conf file. It contains the paths to run this project. Please, change it for your file system. Important. If you don't have installed Vina Auto dock program, please, you can comment call_vina function in vs_main.c file.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	Finally, you can run my program through&amp;nbsp;mpirun -np 2 /home/faccioli/workspace/drugdesign/virtualscreening/build/./vs_main config.conf overall_docking_list.txt&lt;/P&gt;

&lt;P&gt;[1]&amp;nbsp;https://github.com/rodrigofaccioli/drugdesign/tree/send_receive_data&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 00:33:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998956#M3696</guid>
      <dc:creator>Rodrigo_Antonio_F_</dc:creator>
      <dc:date>2015-04-07T00:33:22Z</dc:date>
    </item>
    <item>
      <title>Hi Antonio,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998957#M3697</link>
      <description>&lt;P&gt;Hi Antonio,&lt;/P&gt;

&lt;P&gt;Where do I get the two file config.conf and overall_docking_list.txt? Those files are necessary to pass in as arguments for the program vs_main, right?&lt;/P&gt;

&lt;P&gt;What version of Intel MPI are you using? What Intel compiler are you using? Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 17:06:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998957#M3697</guid>
      <dc:creator>Loc_N_Intel</dc:creator>
      <dc:date>2015-04-07T17:06:13Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998958#M3698</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks all your attention.&lt;/P&gt;

&lt;P&gt;These files are at drugdesign/virtualscreening/teste_send_receive .&lt;BR /&gt;
	It contains all files to pass in vs_main program. Please, you need to set your file system in config.conf file.&lt;BR /&gt;
	&lt;BR /&gt;
	Nowadays, I'm not using intel neither mpi or compiler, because I have to develop a version using free compiler. After, I will use intel compiler.&lt;/P&gt;

&lt;P&gt;My compiler is below:&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;$ mpicxx --version&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;c++ (Debian 4.7.2-5) 4.7.2&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Copyright (C) 2012 Free Software Foundation, Inc.&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;This is free software; see the source for copying conditions. &amp;nbsp;There is NO&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 21:49:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998958#M3698</guid>
      <dc:creator>Rodrigo_Antonio_F_</dc:creator>
      <dc:date>2015-04-08T21:49:00Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998959#M3699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I just have Intel Compiler and Intel MPI library installed on my system. When I executed "cmake ../", I got the following error. It seems like cmake cannot find Intel MPI path. I also tried to set these&amp;nbsp;MPI paths manually (MPI_C_LIBRARIES,...), but it still failed when running cmake:&lt;/P&gt;

&lt;P&gt;C:\Users\Administrator\Desktop\DrugDesign\drugdesign-master\drugdesign-master\vi&lt;BR /&gt;
	rtualscreening\build&amp;gt;cmake ../&lt;BR /&gt;
	-- Building for: Visual Studio 11 2012&lt;BR /&gt;
	-- The C compiler identification is MSVC 17.0.50727.1&lt;BR /&gt;
	-- The CXX compiler identification is MSVC 17.0.50727.1&lt;BR /&gt;
	-- Check for working C compiler using: Visual Studio 11 2012&lt;BR /&gt;
	-- Check for working C compiler using: Visual Studio 11 2012 -- works&lt;BR /&gt;
	-- Detecting C compiler ABI info&lt;BR /&gt;
	-- Detecting C compiler ABI info - done&lt;BR /&gt;
	-- Check for working CXX compiler using: Visual Studio 11 2012&lt;BR /&gt;
	-- Check for working CXX compiler using: Visual Studio 11 2012 -- works&lt;BR /&gt;
	-- Detecting CXX compiler ABI info&lt;BR /&gt;
	-- Detecting CXX compiler ABI info - done&lt;BR /&gt;
	-- Detecting CXX compile features&lt;BR /&gt;
	-- Detecting CXX compile features - done&lt;BR /&gt;
	CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageH&lt;BR /&gt;
	andleStandardArgs.cmake:138 (message):&lt;BR /&gt;
	&amp;nbsp; Could NOT find MPI_C (missing: MPI_C_LIBRARIES)&lt;BR /&gt;
	Call Stack (most recent call first):&lt;BR /&gt;
	&amp;nbsp; C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandard&lt;BR /&gt;
	Args.cmake:374 (_FPHSA_FAILURE_MESSAGE)&lt;BR /&gt;
	&amp;nbsp; C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindMPI.cmake:616 (find_p&lt;BR /&gt;
	ackage_handle_standard_args)&lt;BR /&gt;
	&amp;nbsp; CMakeLists.txt:11 (find_package)&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	-- Configuring incomplete, errors occurred!&lt;BR /&gt;
	See also "C:/Users/Administrator/Desktop/DrugDesign/drugdesign-master/drugdesign&lt;BR /&gt;
	-master/virtualscreening/build/CMakeFiles/CMakeOutput.log".&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:49:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Problem-Sending-more-than-two-process/m-p/998959#M3699</guid>
      <dc:creator>Loc_N_Intel</dc:creator>
      <dc:date>2015-04-13T17:49:12Z</dc:date>
    </item>
  </channel>
</rss>

