Newsgroups: comp.parallel.pvm
From: edwardm@cs.kun.nl (Edward Mahieu)
Subject: LAM PVM lib vs PVM lib
Organization: University of Nijmegen, The Netherlands
Date: 4 Jul 1995 08:10:05 GMT
Message-ID: <3tat0t$4ck@wn1.sci.kun.nl>


Hi, 

i have the following problem:
i compiled a c program using the pvm library routines. There are no problems.
Now i want to link the pvm library of lam instead. During execution it seems that buffers 
get overloaded, using pvm_pkbyte.. This doesn't happen using the PVM-lib.

Part of the program where it happens:

  ...........
  for(i=0;i<channels;i++)
  {
        printf("Prov: still packing..... channel %d.\n",i);
        info = pvm_pkbyte(cellptr3[i],lines*elements,1);
        printf("Prov: info = %d.\n",info);
  }
  ........

Output of the program:
Prov: read and pack next polygon.
Prov: still packing..... channel 0.
Prov: info = 0.
Prov: still packing..... channel 1.
Prov: info = -10.
Prov: still packing..... channel 2.


/*
 * PVM error codes we return
 */
#define PvmNoMem        -10                     /* could not malloc */


Questions:
- What is the  solution for this error.
- Why does this happen using the LAM-pvm library.

thanks in advance.
Edward.
--
+------------------------------------+
      E.M.P.A. Mahieu
      email: edwardm@cs.kun.nl
+------------------------------------+

