Newsgroups: comp.parallel.pvm
From: d91emf@benbane (MISS EM Fitzgerald)
Subject: mcast problem please help
Organization: Interactive Systems Centre, University of Ulster
Date: 29 Apr 1995 15:54:50 GMT
Message-ID: <3ntnga$g22@niaomi.iscm.ulst.ac.uk>

I am trying to run a SPMD program and I just cannot seem to solve this problem.
I am trying to send data to all my processors using mcast like so:

	 /* start other nodes */
                tids = (int *) malloc(P * sizeof(int));
                tids[0] = mytid;
                me = 0;
                pvm_spawn(PROGNAME,(char**)0, 0, 0, P-1, &tids[1]);
                if (P > 1) {    /* send info to everyone */
                        pvm_initsend(PvmDataDefault);
                        pvm_pkint(&N,1,1);
                        pvm_pkint(&P,1,1);
                        pvm_pkint(tids,P,1);               
                        for (i=0;i<N;i++) pvm_pkfloat(A[i],N,1);
                        pvm_pkfloat(x,N,1);
                        pvm_pkfloat(y,N,1);
                        pvm_mcast(&tids[1],P-1,BCAST);
   		
                }


A is a matrix and X and Y are vectors, I have BCAST defined as 99.I am getting
the error:

libpvm [t40007]: pvm_mcast() : Bad parameter

I know this means pvm_mcast is giving a msgtag of < 0 but can someone 
please explain this to me. I am using SUN4 and LINUX machines.

All suggestions are welcomed.

Thanks a million 

Evanna Fitzgerald

d91emf@benbane.infc.ulst.ac.uk
or
d91emf@causeway.infc.ulst.ac.uk





























