Newsgroups: comp.parallel.pvm
From: mizo@hip.atr.co.jp (Mizoguchi Jun'ichi)
Subject: pvm with CM5's CMMD
Organization: ATR Human Information Processing Research Labs., Kyoto, JAPAN
Date: Mon, 25 Jul 1994 06:47:32 GMT
Message-ID: <MIZO.94Jul25154732@holly.hip.atr.co.jp>


I have a problem in using PVM with CM5's CMMD.
CM5's CMMD program is the host-nodes mode.
Master program of PVM runs on my Workstation(HP).
Slave program of PVM is the host-nodes program on CM5.

Master program is like this.

    pvm_spawn("host_nodes",(char **)0,PvmTaskHost,"name",1,&tid);
    pvm_initsend(PvmDataRaw);
    pvm_pkstr(basename);
    pvm_pkint(&size,1,1);
    pvm_pkint(&pos,1,1);
    pvm_pkint(&gen,1,1);
    pvm_pkint((int*)iptr,size,1);
    info = pvm_send(tid,0);

Slave program is like this.

    CMMD_enable();
    num_nodes=CMMD_partition_size();
    CMMD_sync_host_with_nodes();

    pvm_recv(-1,0);
    pvm_upkstr(Workdir);
    pvm_upkint(&size,1,1);
    pvm_upkint(&id,1,1);
    pvm_upkint(&tag,1,1);
    iptr = (int *)malloc(size * sizeof(int));
    if (iptr == NULL) {
      printf("malloc error\n");
      pvm_exit();
    }
    pvm_upkint(iptr,size,1);


Slave program is invoked on host machine of CM5. However, the following 
errors occur maybe in CMMD_enable().
    CMOST: Bad CM5 executable file - file is short or wrong magic number.
    CMMD_enable:  Init with tsd failed.  Exiting.
If there are no CMMD codes in slave, every thing goes well.

Do you have any comments or suggestions?

Junichi Mizoguchi
mizo@hip.atr.co.jp

--

$@9B8}(J $@=a0l(J  Jun-ichi Mizoguchi    | $@!J3t!K(JATR $@?M4V>pJsDL(J$@?.8&5f=j(J
email: mizo@hip.atr.co.jp        |       $@BhO;8&5f<<(J
Tel:   07749-5-1035(direct in)   |  
FAX: 07749-5-1008(F)             |619-02 $@5~ETI\Aj3Z74@:2ZD.8wBf#2CzL\#2HVCO(J

