Newsgroups: comp.parallel.pvm
From: edward@nsrc.nus.sg (Edward Walker)
Subject: [PATCH] pg_pvm-0.9.1
Keywords: tracing performance tuning visualization
Organization: National University of Singapore
Date: 26 Jun 1996 02:13:38 GMT
Message-ID: <4qq6ci$a84@nuscc.nus.sg>

Hi,

I hate bugs!  But apparantly pg_pvm-0.9 has a few subtle 
and not-so-subtle ones.   

To apply the patch, first create an empty file "patchlevel.h" in
your original source distribution.  Type 
	
	patch < 09to091.patch 

Re-make.  

The new distribution "pg_pvm-0.9.1.tar.gz" can also be obtained 
at 

	http://www.nsrc.nus.sg/STAFF/edward/pg_pvm.html

Some people have also complained about the difficulty in getting 
to our web site.  If you have any problems in obtaining 
PG_PVM, I could email a uuencode version on request.

Enjoy!

- ed

P.S.  Check out our poster and demo for mixed PVM and 
MPI program development at MPIDC'96 in July!

-------------------------------------------------------------
Dr Edward Walker
National Supercomputing Reseach Centre
81, Science Park Drive
Singapore 0511

Email: edward@nsrc.nus.sg
tel: (65)-770-9234
Web: http://www.nsrc.nus.sg/STAFF/edward

##################Cut Here (09to091.patch)######################
--- patchlevel.h
0a1,3
> 
> #define PATCHLEVEL	091
> 
--- pg_serv.c
39a40
> static char logname2[MAXFLTH] ;
823d823
< 
828d827
< char trf_file[MAXFLTH];
852c851,855
< sprintf(logname,"/tmp/pg.trf" );
---
> cleanup();
> 
> sprintf(logname,"/tmp/pg.trf.%d", getpid() );
> sprintf(logname2,"/tmp/pg2.trf.%d", getpid() );
> 
980,983c983
<       pg_Sort2Time( "/tmp/pg.trf", "/tmp/pg2.trf" );
<       /*
<       pg_Sort2Time( "/tmp/pg.trf", "trace.trf" );
<       */
---
>       pg_Sort2Time( logname, logname2 );
987c987
<       pg_RemoveTacyons( "/tmp/pg2.trf" , "trace.trf" );
---
>       pg_RemoveTacyons( logname2 , "trace.trf" );
--- pg_cl.c
365c365
<    tmp->label = (char *)calloc(strlen(label),sizeof(char));
---
>    tmp->label = (char *)calloc(strlen(label)+1,sizeof(char));
737c737
< 	printf("mcast --> ");
---
> 	/* printf("mcast --> "); */
740c740
<        printf(" %d ", who );
---
>        /* printf(" %d ", who ); */
748c748
< 	printf("\n");
---
> 	/* printf("\n"); */

