|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Dec 2023
Posts: 14
Rep Power: 2 ![]() |
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 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) 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 Thanks for your help ![]() |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 585
Rep Power: 17 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Join Date: Dec 2023
Posts: 14
Rep Power: 2 ![]() |
Quote:
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! |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |