#!/bin/sh
#
#	HP High Performance Systems Division
#	(c)Copyright 1999 Hewlett-Packard Co.
#
#	$Revision: 5922 $
#
#	Function:	- compile MPI C++ code
#			- uses mpicc
#
#	"@(#)HP MPI 02.02.05.00 (10/03/2006) Linux x86-64"
#

{
	export HPMPI_MPICC_EXECED=1

	mpiroot=${MPI_ROOT:-""}
	if [ -z "$mpiroot" ] ; then
		mpiroot=$(cd $(dirname "$0")/.. ; pwd)
	fi
	if [ ! -x ${mpiroot}/bin/mpirun ] ; then
		mpiroot=/opt/hpmpi
	fi
	if [ ! -x ${mpiroot}/bin/mpirun ] ; then
		mpiroot=/opt/mpi
	fi
	mpiCC=${mpiroot}/bin/mpicc

	$mpiCC "$@"
	ret=$?

	exit $ret
}

