Benjamin,

unfortunatly, the compiler wrappers (mpicc and friends) will be riscv64 binaries.

fwiw, they will (try to) use the cross compilers on the riscv64 machines (!)


but you can configure with the '--enable-script-wrapper-compilers' option in order to generate scripts

that can be invoked on the x86_64 build host


Cheers,


Gilles


On 12/18/2017 7:10 AM, Benjamin Brock wrote:
Yeah, I just noticed that Open MPI was giving me all x86_64 binaries with the configuration flags

./configure --host=riscv64-unknown-linux --enable-static --disable-shared --disable-dlopen --enable-mca-no-build=patcher-overwrite --prefix=/home/ubuntu/src/ben-build/openmpi

and was very confused.

I thought that the expected behavior for configure scripts was that setting --host=[myarch]-linux-gnu will tell the compiler to use the [myarch]-linux-gnu-[gcc,g++,etc.] compiler when building software that will run on the host arch.  This is what other software I've encountered (e.g. MPICH) does.

Basically, I want the `orterun` binaries to be compiled with riscv64-unknown-linux-[gcc,g++] compilers and the `mpi[cc,c++]` binaries to be compiled with x86_64-linux-gnu-[gcc,g++] and configured to *use* riscv64-unknown-linux-[gcc,g++] when compiling programs (because, like `orterun`, programs compiled with `mpi[cc,c++]` will run on the host arch).

Can I get this by just setting [CC,CXX]=riscv64-unknown-linux-[gcc,g++], etc.?

Ben

_______________________________________________
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users

Reply via email to