CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

MPI installation error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2024, 14:45
Default MPI installation error
  #1
New Member
 
Join Date: Dec 2023
Posts: 14
Rep Power: 2
cfd-jg is on a distinguished road
Hi,

I am trying to compile SU2-8.0.0 on an hpc cluster. For this I am using intel-suite mpi. I am first running the meson.py script with the following configuration:


Code:
./meson.py build --reconfigure -Denable-autodiff=true  -Denable-directdiff=true -Dwith-mpi=enabled -Dcustom-mpi=true  -Dprefix=~/Compiled-SU2-8.0.0-mpi
which runs ok without any errors. However, when running ./ninja -C build install I am getting the following error:

Code:
Found ninja-1.10.0.git at /rds/general/user/jg2219/home/Source/SU2-8.0.0/ninja
ninja: Entering directory `build'
[1/1368] Compiling C object externals/cgns/hdf5/libsu2hdf5.a.p/H5Dtest.c.o
FAILED: externals/cgns/hdf5/libsu2hdf5.a.p/H5Dtest.c.o 
icc -Iexternals/cgns/hdf5/libsu2hdf5.a.p -Iexternals/cgns/hdf5  -I../externals/cgns/hdf5 -std=c99 -O3 -fPIC -D_FILE_OFFSET_BITS=64  -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200809L  -D_GNU_SOURCE -MD -MQ externals/cgns/hdf5/libsu2hdf5.a.p/H5Dtest.c.o -MF  externals/cgns/hdf5/libsu2hdf5.a.p/H5Dtest.c.o.d -o  externals/cgns/hdf5/libsu2hdf5.a.p/H5Dtest.c.o -c  ../externals/cgns/hdf5/H5Dtest.c
In file included from ../externals/cgns/hdf5/H5private.h(27),
                 from ../externals/cgns/hdf5/H5Dtest.c(30):
../externals/cgns/hdf5/H5public.h(63): catastrophic error: cannot open source file "mpi.h"
  #include <mpi.h>
                  ^

 compilation aborted for ../externals/cgns/hdf5/H5Dtest.c (code 4)
Any idea on how to fix this?

I have read on the forum that setting the following environment variables could help:


Code:
export MPICXX="/apps/mpi/intel/2019.6.166/bin/mpicxx"
export MPICC="/apps/mpi/intel/2019.6.166/bin/mpicc"
export CXX=$MPICXX 
 export CC=$MPICC
However, it doesn't make any difference and still getting the same error. Any ideas on how to solve this are more than welcomed.

Thanks for your help
cfd-jg is offline   Reply With Quote

Old   January 28, 2024, 17:46
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 585
Rep Power: 17
bigfootedrockmidget is on a distinguished road
The compiler cannot find mpi.h. Does compiling with mpi work at all for you?
When this is an institute hpc, it might be that you have to manually load an mpi library first. You can test if mpi works by compiling a simple program for instance:

https://www.codingame.com/playground...ps-hello-world
bigfootedrockmidget is offline   Reply With Quote

Old   January 29, 2024, 13:13
Default
  #3
New Member
 
Join Date: Dec 2023
Posts: 14
Rep Power: 2
cfd-jg is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
The compiler cannot find mpi.h. Does compiling with mpi work at all for you?
When this is an institute hpc, it might be that you have to manually load an mpi library first. You can test if mpi works by compiling a simple program for instance:

https://www.codingame.com/playground...ps-hello-world
Thanks for your reply.


I have verified I was loading the mpi library, in this case the one available in the hpc cluster is: intel-suit mpi. However, the compiler still encounters difficulties locating mpi.h.


I attempted to compile a simple MPI "hello-world" program, and it compiled successfully. This suggests that the issue might be specific to my current project or configuration.


I would appreciate any suggestions or insights on what might be causing this issue.


Many thanks!
cfd-jg is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 20:30
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32


All times are GMT -4. The time now is 21:22.