Newsgroups: comp.parallel.mpi
From: yanx@ifi.uio.no (Yan Xu)
Subject: Two question abort MPI
Organization: Dept. of Informatics, University of Oslo, Norway
Date: 23 Apr 1996 14:59:36 +0200
Message-ID: <4lik7o$6s9@skrymir.ifi.uio.no>


I have two question abort MPI:

1) I want to know if it is possible to send a signal to a processor to
indicate that a message is arrived and have to be recieved?

My project - Parallell Recursive Procedure - is based on a
client-server model. Presently I solve the problem of the client
checking the messagebuffer by frequently calls to the MPI_Iprobe
function. It will be more effective if a signal can be send to remind
the client that a server has send a message. Could someone tell me how
can I do this in MPI?

2) I have tried to build a struct MPI_DATATYPE with function MPI_TYPE_STRCT. 
My old struct type is like this:
	typedef struct {
	int a;
	int *b
	int c} datatype; 
  
The variable b is an int array which will be allocated later. My
problem is that when I send this struct to a destination processor,
the destinator doesn't get the information in the array. It works only
if I declare the array as int b[10]. Is it possible to send an array
as a pointer at all?

Yan Xu
-- 
		Yan Xu
---      O      Trondheimsvn.107
   --   <^-     0565 OSLO               e-mail: yanx@ifi.uio.no
  --  -\/\      Tlf. 22 68 96 58        URL: http://www.ifi.uio.no/~yanx/
  ---     \
 

