charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Nikhil Jain <nikhil.jain AT acm.org>
- To: Laércio Lima Pilla <laercio.pilla AT ufsc.br>, "charm AT cs.illinois.edu" <charm AT cs.illinois.edu>
- Subject: Re: [charm] swapglobals on Linux environments
- Date: Sun, 31 Jan 2016 10:08:22 -0600
Doctoral Candidate @ CS, UIUC
On January 29, 2016 at 12:09:45, Laércio Lima Pilla (laercio.pilla AT ufsc.br) wrote:
Dear all,
I have been trying to use -swapglobals for some simple tests in different Linux machines (both virtual and physical ones) to no avail.
For instance, compiling and linking with -swapglobals with the code below still results in the same address for myRank for all VPs, even thought I get the message "Charm++> -swapglobals enabled".
Any known bug/limitation or idea of what is going wrong?
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include "charm.h"
#include "tcharmc.h"int myRank;
int main(int argc,char **argv)
{
MPI_Init(&argc,&argv);
double inval,outval;
int rank,size;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
myRank=rank;
printf("[%d] before MyRank=%d (at %p)\n",rank,myRank,&myRank);
for (int i=0;i<4;i++) {
MPI_Barrier(MPI_COMM_WORLD);
printf("[%d] after MyRank=%d (at %p) pe=%d\n",rank,myRank,&myRank,CmiMyPe());
if (myRank!=rank) {
printf("[%d] Global variable not preserved! (%d)\n",rank,myRank);
abort();
}
}
MPI_Finalize();
return 0;
}Example of execution with problems:
./charmrun +p3 ++nodelist nodelist global +vp4
Charmrun> scalable start enabled.
Charmrun> started all node programs in 1.171 seconds.
Charm++> Running in non-SMP mode: numPes 3
Converse/Charm++ Commit ID: v6.7.0-35-g52cc1e9
Warning> Randomization of stack pointer is turned on in kernel, thread migration may not work! Run 'echo 0 > /proc/sys/kernel/randomize_va_space' as root to disable it, or try run with '+isomalloc_sync'.
Charm++> scheduler running in netpoll mode.
CharmLB> Load balancer assumes all CPUs are same.
WARNING: Running swapglobals without blacklist, globals from libraries might be getting un-necessarily swapped
Charm++> -swapglobals enabled
Charm++> Running on 1 unique compute nodes (3-way SMP).
Charm++> cpu topology info is gathered in 0.012 seconds.
[0] before MyRank=0 (at 0x92ed94)
[3] before MyRank=3 (at 0x92ed94)
[2] before MyRank=2 (at 0x92ed94)
[1] before MyRank=1 (at 0x92ed94)
[3] after MyRank=3 (at 0x92ed94) pe=2
[2] after MyRank=2 (at 0x92ed94) pe=1
[0] after MyRank=1 (at 0x92ed94) pe=0
[0] Global variable not preserved! (1)
Best regards,
--
Laércio Lima Pilla, PhD. Associate Professor (Professor Adjunto) UFSC - CTC - INE, Brazil Email: laercio.pilla AT ufsc.br or laercio.lima.pilla AT gmail.com Tel: +55 (48) 9152 8120, +55 (48) 3721 7564 Website: www.inf.ufsc.br/~pilla/
- [charm] swapglobals on Linux environments, Laércio Lima Pilla, 01/29/2016
- <Possible follow-up(s)>
- Re: [charm] swapglobals on Linux environments, Nikhil Jain, 01/31/2016
Archive powered by MHonArc 2.6.16.