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

Error when compiling SU2 on Raspberry Pi Cluster

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2022, 11:13
Default Error when compiling SU2 on Raspberry Pi Cluster
  #1
New Member
 
George Johnson
Join Date: Jun 2022
Posts: 3
Rep Power: 4
George5610 is on a distinguished road
I am attempting to install SU2 on a raspberry pi cluster with openmpi.
I have the SU2 source in a file share and ran meson.py with using
Code:
./meson.py -Dcustom-mpi=true -Dextra-deps=ompi build
meson had an output of this
I added the export lines to bashrc then ran ninja with
Code:
./ninja -C build install
However it fails as it cant find mpi.h.


Ninja output link



Can anyone shed some light on this error?


Let me know if i can include any more files or logs.


Thanks
George5610 is offline   Reply With Quote

Old   June 16, 2022, 18:54
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
The first thing to check is if mpi.h is actually installed somewhere. It is part of a specific package, if you use a package manager, the package that provides it is probably called something like libopenmpi-dev. Usually, the ***-dev packages in linux are the packages that provide the header files.


When you have installed mpi.h, you can first check with a simple hello-world kind of test to see if you can compile and run an openmpi program.

For instance: https://mpitutorial.com/tutorials/mpi-hello-world/
bigfootedrockmidget is offline   Reply With Quote

Old   June 17, 2022, 09:35
Default
  #3
New Member
 
George Johnson
Join Date: Jun 2022
Posts: 3
Rep Power: 4
George5610 is on a distinguished road
I have already run C and python in parallel on the cluster using the mpi header file and it works, i have run hello world and a Pi approximation script.



Because it's a raspberry pi they are installed in a non ordinary location.


Code:
mpicc -show
returns this results
Code:
gcc -I/usr/lib/aarch64-linux-gnu/openmpi/include/openmpi -I/usr/lib/aarch64-linux-gnu/openmpi/include -pthread -L/usr/lib/aarch64-linux-gnu/openmpi/lib -lmpi
The mpi header file is located in
Code:
/usr/lib/aarch64-linux-gnu/openmpi/include
Is ninja looking in a different location for the file?
George5610 is offline   Reply With Quote

Old   June 19, 2022, 14:40
Default
  #4
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
Try doing
export CC=mpicc
export CXX=mpicxx
Before calling ./meson.py (delete the build folder first)
pcg is offline   Reply With Quote

Old   June 21, 2022, 09:53
Default
  #5
New Member
 
George Johnson
Join Date: Jun 2022
Posts: 3
Rep Power: 4
George5610 is on a distinguished road
Thanks
This solved the problem.
George5610 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
Raspberry pi cluster jasim jamil Hardware 1 December 28, 2020 07:45
How to run SU2 on cluster of computers (How to specify nodes ?) aero_amit SU2 29 February 24, 2020 14:44
Introducing SU2 International Developers Society (IDS) fpalacios SU2 News & Announcements 1 June 17, 2019 23:38
How to run SU2 on HPC cluster in parallel on HPC cluster? Samirs Main CFD Forum 0 July 13, 2018 01:44
Trouble running SU2 in parallel on cluster devinmgibson Hardware 4 January 4, 2017 15:58


All times are GMT -4. The time now is 14:43.