[mvapich-discuss] c++ include header file not created

Joseph Hargitai joseph.hargitai at nyu.edu
Wed Oct 15 10:23:21 EDT 2008



these files are created but the header for config is missing: mpi2c++_config.h - which is needed for code. This is the case also for version 1.1 as well as this one here 1.0.1

[hargitai at login-0-0 mpi2c++]$ ls
comm.h             group_inln.h      pdatatype.h    prequest_inln.h
comm_inln.h        intercomm.h       perrhandler.h  pstatus.h
constants.h        intercomm_inln.h  pexception.h   pstatus_inln.h
datatype.h         intracomm.h       pgroup.h       ptopology.h
datatype_inln.h    intracomm_inln.h  pgroup_inln.h  request.h
errhandler.h       mpi2c++_list.h    pintercomm.h   request_inln.h
errhandler_inln.h  mpi2c++_map.h     pintracomm.h   status.h
exception.h        mpi++.h           pmpi++.h       status_inln.h
functions.h        op.h              pop.h          topology.h
functions_inln.h   op_inln.h         pop_inln.h     topology_inln.h
group.h            pcomm.h           prequest.h


here is the config file:

[hargitai at login-0-0 mvapich-1.0.1]$ more make.mvapich.gen2
#!/bin/bash

# Most variables here can be overridden by exporting them in the environment
# before running this script.  Default values have been provided if the
# environment variable is not already set.

source ./make.mvapich.def

# The target architecture.  If not exported outside of this script,
# it will be found automatically or prompted for if necessary.
# Supported: "_IA32_", "_IA64_", "_EM64T_", "_X86_64_"
#
if [ -z "$ARCH" ]; then
    arch
fi

# Mandatory variables.  All are checked except CXX and F90.
IBHOME=${IBHOME:-/usr/include/infiniband}
IBHOME_LIB=${IBHOME_LIB:-/usr/lib64}
PREFIX=${PREFIX:-/home/hargitai/mv1}
export CC=${CC:-/usr/local/intel/cce/10.0.023/bin/icc}
export CXX=${CXX:-/usr/local/intel/cce/10.0.023/bin/icc}
export F77=${F77:-/usr/local/intel/fce/10.0.023/bin/ifort}
export F90=${F90:-/usr/local/intel/fce/10.0.023/bin/ifort}

if [ $ARCH = "SOLARIS" ]; then
    die_setup "MVAPICH GEN2 is not supported on Solaris."
elif [ $ARCH = "MAC_OSX" ]; then
    die_setup "MVAPICH GEN2 is not supported on MacOS."
fi

#
# Compiler specific flags. If you are using
# ICC on IA64 platform, please set COMPILER_FLAG
# to "icc"
#

COMPILER_FLAG=${COMPILER_FLAG:-}

if [ "$COMPILER_FLAG" == "icc" ]; then
       COMPILER_FLAG="-D_ICC_"
else
       COMPILER_FLAG=""
fi

# Check mandatory variable settings.
if [ -z "$IBHOME" ] || [ -z "$PREFIX" ] || [ -z "$CC" ] || [ -z "$F77" ]; then
    die_setup "Please set mandatory variables in this script."
elif [ ! -d $IBHOME ]; then
    die_setup "IBHOME directory $IBHOME does not exist."
fi

# Optional variables.
#

# Whether to enable ROMIO support.  This is necessary if building the
# F90 modules.
if [ -n "$F90" ]; then
    ROMIO="--with-romio"
else
    ROMIO=${ROMIO:---without-romio}
fi

# PTMALLOC support for MVAPICH2 memory hooks.  Enabling this will allow
# MVAPICH2 to release memory to the Operating System (when registration
# cache is enabled).  Enabled by default.  Disable with "no".
PTMALLOC=${PTMALLOC:-}

if [ "$PTMALLOC" = "no" ]; then
        PTMALLOC="-DDISABLE_PTMALLOC"
else
        PTMALLOC=""
fi

# Set this to override automatic optimization setting (-03).
OPT_FLAG=${OPT_FLAG:--O3}

if [ -n "$PROCESSOR" ]; then
       PROCESSOR=-D${PROCESSOR}
else
       PROCESSOR=
fi

export LIBS=${LIBS:--L${IBHOME_LIB} -Wl,-rpath=${IBHOME_LIB} -libverbs -libumad 
-lpthread}
export FFLAGS=${FFLAGS:--L${IBHOME_LIB}}
export CFLAGS=${CFLAGS:--D${ARCH} ${PROCESSOR} ${PTMALLOC} -DEARLY_SEND_COMPLETI
ON -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DCH_GEN2 -D_GNU_SO
URCE ${COMPILER_FLAG}  -I${IBHOME}/include $OPT_FLAG}

export MPIRUN_CFLAGS="${MPIRUN_CFLAGS} -DLD_LIBRARY_PATH_MPI=\\\"${PREFIX}/lib/s
hared\\\" -DMPI_PREFIX=\\\"${PREFIX}/\\\" -DPARAM_GLOBAL=\\\"${PREFIX}/etc/mvapi
ch.conf\\\""

# Prelogue
make distclean &>/dev/null
set -o pipefail

# Configure MVAPICH

echo "Configuring MVAPICH..."

./configure --with-device=ch_gen2 --with-arch=LINUX -prefix=${PREFIX} \
        $ROMIO --without-mpe --enable-cxx --enable-sharedlib --enable-debug --en
able-f77 --enable-f90 -lib="$LIBS" 2>&1 |tee config-mine.log
ret=$?
test $ret = 0 ||  die "configuration."

# Build MVAPICH
echo "Building MVAPICH..."
make 2>&1 |tee make-mine.log 
ret=$?
test $ret = 0 ||  die "building MVAPICH."

# Install MVAPICH
echo "MVAPICH installation..."
rm -f install-mine.log 
make install 2>&1 |tee install-mine.log
ret=$?
test $ret = 0 ||  die "installing MVAPICH."


thanks,
joseph


More information about the mvapich-discuss mailing list