|
[Sponsors] |
Error when compiling SU2 on Raspberry Pi Cluster |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 15, 2022, 11:13 |
Error when compiling SU2 on Raspberry Pi Cluster
|
#1 |
New Member
George Johnson
Join Date: Jun 2022
Posts: 3
Rep Power: 4 |
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 I added the export lines to bashrc then ran ninja with Code:
./ninja -C build install Ninja output link Can anyone shed some light on this error? Let me know if i can include any more files or logs. Thanks |
|
June 16, 2022, 18:54 |
|
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21 |
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/ |
|
June 17, 2022, 09:35 |
|
#3 |
New Member
George Johnson
Join Date: Jun 2022
Posts: 3
Rep Power: 4 |
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 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 Code:
/usr/lib/aarch64-linux-gnu/openmpi/include |
|
June 19, 2022, 14:40 |
|
#4 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14 |
Try doing
export CC=mpicc export CXX=mpicxx Before calling ./meson.py (delete the build folder first) |
|
June 21, 2022, 09:53 |
|
#5 |
New Member
George Johnson
Join Date: Jun 2022
Posts: 3
Rep Power: 4 |
Thanks
This solved the problem. |
|
|
|
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 |