Skip to Content.
Sympa Menu

charm - [charm] compile charm++ with pathscale compilers

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

[charm] compile charm++ with pathscale compilers


Chronological Thread 
  • From: Vlad Cojocaru <Vlad.Cojocaru AT eml-r.villa-bosch.de>
  • To: charm AT cs.uiuc.edu
  • Subject: [charm] compile charm++ with pathscale compilers
  • Date: Fri, 01 Aug 2008 17:36:26 +0200
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

Dear all,

I am trying to build charm++ with the pathscale compilers (3.1) on an AMD opteron machine. So I created cc-pathcc.sh, cc-pathcc.h and conv-mach-pathf90.sh in the ./src/arch/common directory (taken from the pathscale website). Files are listed below. I ran ./build charm++ net-linux-amd64 pathcc pathf90 tcp -DCMK_OPTIMIZE=1 2>&1 | tee build.log and the compilation appears successfull. However when I do the megatest in <dir>/tests/charm++/megatest, it crashes with the error:

./charmrun +p2 ++local pgm
Charm++: scheduler running in netpoll mode.
------------- Processor 1 Exiting: Caught Signal ------------
Signal: segmentation violation
Suggestion: Try running with '++debug', or linking with '-memory paranoid'.
Fatal error on PE 1> segmentation violation

If run with ++debug I get the follwoing:
Charmrun> charmrun started...
Charmrun> adding client 0: "127.0.0.1", IP:127.0.0.1
Charmrun> adding client 1: "127.0.0.1", IP:127.0.0.1
Charmrun> Charmrun = 127.0.0.1, port = 51158
Charmrun> start 0 node program on localhost.
Charmrun> start 1 node program on localhost.
Charmrun> node programs all started
Charmrun> Waiting for 0-th client to connect.
Charmrun> client 0 connected (IP=127.0.0.1 data_port=51159)
Charmrun> Waiting for 1-th client to connect.
Charmrun> client 1 connected (IP=127.0.0.1 data_port=51161)
Charmrun> All clients connected.
Charmrun> IP tables sent.
Charmrun> node programs all connected
Charm++: scheduler running in netpoll mode.
Charmrun: error on request socket--
Socket closed before recv.


On the same machine, the build was successful using the intel compilers 10.1.015
Could somebody look at my files below and tell me what I am doing wrong here.

Thanks
Best wishes
vlad

----------cc-pathcc.sh------------------------------------------
# for version 3.1
PATHCCOPTS="-O3 -m64 "
CMK_CPP_C="pathcc -E $PATHCCOPTS "
CMK_CC="pathcc -fPIC $PATHCCOPTS "
CMK_CXX="pathCC -fPIC $PATHCCOPTS "
CMK_CXXPP="pathCC -E $PATHCCOPTS "
CMK_LD="pathcc -fPIC $PATHCCOPTS "
CMK_LDXX="pathCC -fPIC $PATHCCOPTS "
CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
CMK_NATIVE_CC="$CMK_CC"
CMK_NATIVE_CXX="$CMK_CXX"
CMK_NATIVE_LD="$CMK_LD"
CMK_NATIVE_LDXX="$CMK_LDXX"
CPPFLAGS="$CPPFLAGS -fPIC $PATHCCOPTS "
LDFLAGS="$LDFLAGS $PATHCCOPTS "
# for the pathscale 3.1 fortran compiler
CMK_CF77="pathf90 -O3 -m64 -fPIC "
CMK_CF90="pathf90 -O3 -m64 -fPIC "
#CMK_CF90_FIXED="$CMK_CF90 -132 -FI "
#FOR 64 bit machine
CMK_CF90_FIXED="$CMK_CF90 "
F90DIR=`which pathf90 2> /dev/null`
if test -h "$F90DIR"
then
F90DIR=`readlink $F90DIR`
fi
if test -x "$F90DIR"
then
F90LIBDIR="`dirname $F90DIR`/../lib"
F90MAIN="$F90LIBDIR/for_main.o"
fi
# for_main.o is important for main() in f90 code
CMK_F90MAINLIBS="$F90MAIN "
CMK_F90LIBS="-L$F90LIBDIR "
CMK_F77LIBS="$CMK_F90LIBS"
# native compiler for compiling charmxi, etc
CMK_SEQ_CC="pathcc -O1 -Wno-deprecated -m64 -fPIC "
CMK_SEQ_CXX="$CMK_NATIVE_CXX"
CMK_SEQ_LD="$CMK_NATIVE_LD"
CMK_SEQ_LDXX="$CMK_NATIVE_LDXX"

CMK_MOD_NAME_ALLCAPS=1
CMK_MOD_EXT="mod"
CMK_F90_USE_MODDIR=1
CMK_F90_MODINC="-p "
CMK_QT='generic64'

----------cc-pathcc.h------------------------------------------
/*****************************************************************************
* $Source: SCCS/s.conv-mach.h $
* $Author:
jane AT bauxite.internal.keyresearch.com
$
* $Date: 05/06/02 15:47:04-07:00 $
* $Revision: 1.1 $
*****************************************************************************/

#ifndef _CONV_MACH_H
#define _CONV_MACH_H

#define CMK_CONVERSE_MPI 1

#define CMK_DEFAULT_MAIN_USES_COMMON_CODE 1

#define CMK_GETPAGESIZE_AVAILABLE 1

#define CMK_IS_HETERO 0

#define CMK_MALLOC_USE_GNU_MALLOC 1
#define CMK_MALLOC_USE_OS_BUILTIN 0

#define CMK_MEMORY_PAGESIZE 8192
#define CMK_MEMORY_PROTECTABLE 0

#define CMK_NODE_QUEUE_AVAILABLE 0

#define CMK_SHARED_VARS_EXEMPLAR 0
#define CMK_SHARED_VARS_UNAVAILABLE 1
#define CMK_SHARED_VARS_UNIPROCESSOR 0
#define CMK_SHARED_VARS_SUN_THREADS 0

#define CMK_SIGNAL_NOT_NEEDED 0
#define CMK_SIGNAL_USE_SIGACTION 0
#define CMK_SIGNAL_USE_SIGACTION_WITH_RESTART 1

#define CMK_SYNCHRONIZE_ON_TCP_CLOSE 0

#define CMK_THREADS_REQUIRE_NO_CPV 0

#define CMK_TIMER_USE_GETRUSAGE 1
#define CMK_TIMER_USE_SPECIAL 0
#define CMK_TIMER_USE_TIMES 0

#define CMK_TYPEDEF_INT2 short
#define CMK_TYPEDEF_INT4 int
#define CMK_TYPEDEF_INT8 long
#define CMK_TYPEDEF_UINT2 unsigned short
#define CMK_TYPEDEF_UINT4 unsigned int
#define CMK_TYPEDEF_UINT8 unsigned long
#define CMK_TYPEDEF_FLOAT4 float
#define CMK_TYPEDEF_FLOAT8 double


----------------conv-mach-pathf90.sh
# for pathscale 3.1 pathf90 compiler
CMK_CF77="pathf90 -m64 -fPIC "
CMK_CF90="pathf90 -m64 -fPIC "
CMK_CF90_FIXED="$CMK_CF90 "
F90DIR=`which pathf90 2> /dev/null`
if test -h "$F90DIR"
then
F90DIR=`readlink $F90DIR`
fi
if test -x "$F90DIR"
then
F90LIBDIR="`dirname $F90DIR`/../lib"
F90MAIN="$F90LIBDIR/for_main.o"
fi
# for_main.o is important for main() in f90 code
CMK_F90MAINLIBS="$F90MAIN "
CMK_F90LIBS="-L$F90LIBDIR "
CMK_F77LIBS="$CMK_F90LIBS"

CMK_F90_USE_MODDIR=""


--
----------------------------------------------------------------------------
Dr. Vlad Cojocaru

EML Research gGmbH
Schloss-Wolfsbrunnenweg 33
69118 Heidelberg

Tel: ++49-6221-533266
Fax: ++49-6221-533298

e-mail:Vlad.Cojocaru[at]eml-r.villa-bosch.de

http://projects.villa-bosch.de/mcm/people/cojocaru/

----------------------------------------------------------------------------
EML Research gGmbH
Amtgericht Mannheim / HRB 337446
Managing Partner: Dr. h.c. Klaus Tschira
Scientific and Managing Director: Prof. Dr.-Ing. Andreas Reuter
http://www.eml-r.org
----------------------------------------------------------------------------





  • [charm] compile charm++ with pathscale compilers, Vlad Cojocaru, 08/01/2008

Archive powered by MHonArc 2.6.16.

Top of Page