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