Re: [Mpi-forum] Question about MPI_Alloc_mem

2020-10-15 Thread Jeff Hammond via mpi-forum
> Tony > > > Anthony Skjellum, PhD > Professor of Computer Science and Chair of Excellence > Director, SimCenter > University of Tennessee at Chattanooga (UTC) > tony-skjel...@utc.edu [or skjel...@gmail.com] > cell: 205-807-4968 > > ---

Re: [Mpi-forum] Question about MPI_Alloc_mem

2020-10-14 Thread William Gropp via mpi-forum
> Do these lines resolve your question? > > Best regards > Rolf > > - Original Message - > > From: "Main MPI Forum mailing list" > <mailto:mpi-forum@lists.mpi-forum.org>> > > To: "Main MPI Forum mailing list" > <mailto:mpi-forum

Re: [Mpi-forum] Question about MPI_Alloc_mem

2020-10-14 Thread William Gropp via mpi-forum
To be more specific as to the reason, this is the C idiom - it you pass it as a pointer to a pointer, you have to cast it as a void pointer to a pointer. If it is just a void *, C views this as an anonymous pointer, and you can use the address - as in int *intp; MPI_Alloc_mem(1000,