Hi flint-devel,
I would like to pass arblib types such as arb_t, acb_t, arb_mat_t, and acb_mat_t to other nodes in a cluster by openMPI. I am new to MPI and thus far have just learned sending and receiving the pre-defined basic data types in c++. However, I've read that MPI allows for the passing of user-defined types and so I believe I should be able to pass arblib types by knowing their struct definitions and using the MPI user-defined type commands to commit their types. Is this right? If so, where could I find the struct definitions for the arb types?
For the acb, arb_mat, and acb_mat, I expect these are structs of structs. Is it a straightforward business to deals with such nested structs and, if not, is there a way around this? I did find one example on the web, in which this one fellow converted the arb values to character arrays, but this doesn't seem very efficient memory wise since essentially and extra copy of data is created locally to do this.
Does anyone have experience with passing arb types directly with MPI and could share a simple example from which I could learn from or some helpful guiding tips?
Best,
Carlos