Build Nektar++ with MPI parallelisation
******************* This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Dear all, I want to run a solver in parallel. I compile using MPI and enable the NEKTAR_USE_MPI option in the CMake configuration. unfortunately, I got this error when running make install: collect2: error: ld returned 1 exit status library/UnitTests/CMakeFiles/UnitTests.dir/build.make:558: recipe for target 'library/UnitTests/UnitTests-3.2.0' failed make[2]: *** [library/UnitTests/UnitTests-3.2.0] Error 1 CMakeFiles/Makefile2:639: recipe for target 'library/UnitTests/CMakeFiles/UnitTests.dir/all' failed make[1]: *** [library/UnitTests/CMakeFiles/UnitTests.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 Do you know what the problem is and how I should fix it? Best Regards, MohammadReza
Dear Mohammad, On 22/10/2022 07:47, m.r.rouhanian@ut.ac.ir wrote:
collect2: error: ld returned 1 exit status library/UnitTests/CMakeFiles/UnitTests.dir/build.make:558: recipe for target 'library/UnitTests/UnitTests-3.2.0' failed make[2]: *** [library/UnitTests/UnitTests-3.2.0] Error 1 CMakeFiles/Makefile2:639: recipe for target 'library/UnitTests/CMakeFiles/UnitTests.dir/all' failed make[1]: *** [library/UnitTests/CMakeFiles/UnitTests.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 Do you know what the problem is and how I should fix it?
These error messages are a consequence of previous errors. You would need to look at those earlier messages to identify the source of the problem (e.g. undefined references). I also note you look to be using Nektar++ 3.2.0? If so, it would be better to try and use a more recent version as there have been a lot of changes since then. Kind regards, Chris -- Chris Cantwell Senior Lecturer in Aeronautics Department of Aeronautics Imperial College London South Kensington Campus London SW7 2AZ Tel: +44 (0)20 759 45050 Email: c.cantwell@imperial.ac.uk www.imperial.ac.uk/people/c.cantwell
******************* This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Dear Chris, The previous errors are like these: [ 46%] Building CXX object library/UnitTests/CMakeFiles/UnitTests.dir/util.cpp.o [ 46%] Linking CXX executable UnitTests ../LibUtilities/libLibUtilities.so.3.2.0: undefined reference to `ompi_mpi_cxx_op_intercept' ../LibUtilities/libLibUtilities.so.3.2.0: undefined reference to `ompi_mpi_op_sum' ../LibUtilities/libLibUtilities.so.3.2.0: undefined reference to `MPI_Win_unlock' ../LibUtilities/libLibUtilities.so.3.2.0: undefined reference to `MPI_Group_excl' I can not fix these errors. Please help me about the source of these errors. Best regards, Mohammad 30 Mehr 1401 2:43 PM, "Chris Cantwell" <c.cantwell@imperial.ac.uk> wrote:
Dear Mohammad,
On 22/10/2022 07:47, m.r.rouhanian@ut.ac.ir wrote:
collect2: error: ld returned 1 exit status library/UnitTests/CMakeFiles/UnitTests.dir/build.make:558: recipe for > target 'library/UnitTests/UnitTests-3.2.0' failed make[2]: *** [library/UnitTests/UnitTests-3.2.0] Error 1 CMakeFiles/Makefile2:639: recipe for target > 'library/UnitTests/CMakeFiles/UnitTests.dir/all' failed make[1]: *** [library/UnitTests/CMakeFiles/UnitTests.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 Do you know what the problem is and how I should fix it?
These error messages are a consequence of previous errors. You would need to look at those earlier messages to identify the source of the problem (e.g. undefined references).
I also note you look to be using Nektar++ 3.2.0? If so, it would be better to try and use a more recent version as there have been a lot of changes since then.
Kind regards, Chris
-- Chris Cantwell Senior Lecturer in Aeronautics Department of Aeronautics Imperial College London South Kensington Campus London SW7 2AZ Tel: +44 (0)20 759 45050 Email: c.cantwell@imperial.ac.uk www.imperial.ac.uk/people/c.cantwell
Dear Mohammad, These errors suggest the linker is unable to find some MPI routines needed by Nektar++. Could you run "make VERBOSE=1" to get make to print out the exact commands run during the build. If you could send me the command run when "Linking CXX executable UnitTests", we can see if it is correctly trying to use the MPI libraries. Kind regards, Chris On 24/10/2022 08:52, m.r.rouhanian@ut.ac.ir wrote:
Dear Chris,
The previous errors are like these:
[ 46%] Building CXX object library/UnitTests/CMakeFiles/UnitTests.dir/util.cpp.o [ 46%] Linking CXX executable UnitTests ../LibUtilities/libLibUtilities.so.3.2.0: undefined reference to `ompi_mpi_cxx_op_intercept' ../LibUtilities/libLibUtilities.so.3.2.0: undefined reference to `ompi_mpi_op_sum' ../LibUtilities/libLibUtilities.so.3.2.0: undefined reference to `MPI_Win_unlock' ../LibUtilities/libLibUtilities.so.3.2.0: undefined reference to `MPI_Group_excl'
I can not fix these errors. Please help me about the source of these errors.
Best regards, Mohammad
30 Mehr 1401 2:43 PM, "Chris Cantwell" <c.cantwell@imperial.ac.uk> wrote:
Dear Mohammad,
On 22/10/2022 07:47, m.r.rouhanian@ut.ac.ir wrote:
collect2: error: ld returned 1 exit status library/UnitTests/CMakeFiles/UnitTests.dir/build.make:558: recipe for > target 'library/UnitTests/UnitTests-3.2.0' failed make[2]: *** [library/UnitTests/UnitTests-3.2.0] Error 1 CMakeFiles/Makefile2:639: recipe for target > 'library/UnitTests/CMakeFiles/UnitTests.dir/all' failed make[1]: *** [library/UnitTests/CMakeFiles/UnitTests.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 Do you know what the problem is and how I should fix it?
These error messages are a consequence of previous errors. You would need to look at those earlier messages to identify the source of the problem (e.g. undefined references).
I also note you look to be using Nektar++ 3.2.0? If so, it would be better to try and use a more recent version as there have been a lot of changes since then.
Kind regards, Chris
-- Chris Cantwell Senior Lecturer in Aeronautics Department of Aeronautics Imperial College London South Kensington Campus London SW7 2AZ Tel: +44 (0)20 759 45050 Email: c.cantwell@imperial.ac.uk www.imperial.ac.uk/people/c.cantwell
-- Chris Cantwell Senior Lecturer in Aeronautics Department of Aeronautics Imperial College London South Kensington Campus London SW7 2AZ Tel: +44 (0)20 759 45050 Email: c.cantwell@imperial.ac.uk www.imperial.ac.uk/people/c.cantwell
participants (3)
- 
                
                Chris Cantwell
- 
                
                m.r.rouhanian@ut.ac.ir
- 
                
                Stanisław Gepner