George, Yes, this is an option, create my own type library, but i need do a cover of MPI_Send, MPI_Receive, ... and other things . So was searching for an OpenMPI way, instead of doing it myself.
I'll try the option that mention Gilles Gouaillardet: i will build OpenMPI 4.0.1 with --enable-heterogeneous. Thank you very much for your help. Regards, Sergio. On 3/14/2019, George Reeke wrote: > What I do is make a header file I call 'sysdef.h' with #ifdefs for > all the systems I use that define types like (for signed 32-bit integer) > #ifdef Intel64 > typedef int si32 > #endif > #ifdef ARMv8 > typedef long si32 > endif > ...etc... > [And I have a whole bunch of other useful definitions like MAX_SI32, > LONG_SIZE and stuff like that--above is not an actual code excerpt] > > and then in the makefile put '-DIntel64' or '-DARMv8' or whatever > I called it in the sysdef. Then the code should use the typedef names. > In the MPI_Send, MPI_Recv calls I usually call the type MPI_BYTE and > give the actual lengths in bytes which I compute once at the time > of the malloc and store in a global common block. > George Reeke
_______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users