Error when compiling SU2 on Raspberry Pi Cluster
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 |
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/ |
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 |
Try doing
export CC=mpicc export CXX=mpicxx Before calling ./meson.py (delete the build folder first) |
Thanks
This solved the problem. |
All times are GMT -4. The time now is 04:03. |