mpicxx: command not found although it is installed

1,784 views
Skip to first unread message

Mostafa Said

unread,
Oct 28, 2021, 12:14:51 PM10/28/21
to xyce-users
Hello all 
I successfully installed Xyce serial and I am now trying to install Xyce Parallel on centos 7 server 64bits
when I run the configure script I got the following error in the config.log file

home/mos1/Xyce-7.3/configure: line 4897: mpicxx: command not found 

Although I already installed openmpi and I checked and I find the installation in /usr/lib64/openmpi/bin
[mos1@pearl10:~/Xyce-7.3/mybuild_Parallel] $ls /usr/lib64/openmpi/bin
mpic++    mpic++-vt  mpif77-vt   mpirun       ompi-top      orted      orte-server  oshmem_info  otfdecompress  otfprofile      shmemrun  vtf77            vtfilter-mpi  vtwrapper
mpicc     mpicxx     mpif90      ompi-clean   opal_wrapper  orte-dvm   orte-submit  oshrun       otfinfo        otfprofile-mpi  vtc++     vtf90            vtfort
mpiCC     mpicxx-vt  mpif90-vt   ompi_info    opari         orte-info  orte-top     otfaux       otfmerge       otfshrink       vtcc      vtfilter         vtrun
mpicc-vt  mpiexec    mpifort     ompi-ps      ortecc        orte-ps    oshcc        otfcompress  otfmerge-mpi   shmemcc         vtCC      vtfiltergen      vtunify
mpiCC-vt  mpif77     mpifort-vt  ompi-server  orte-clean    orterun    oshfort      otfconfig    otfprint       shmemfort       vtcxx     vtfiltergen-mpi  vtunify-mpi 

also when I right just "mpic" then press tab I see that it is shown to the system
[mos1@pearl10:~/Xyce-7.3/mybuild_Parallel] $mpic
mpic++     mpicc      mpicc-vt   mpic++-vt  mpicxx     mpicxx-vt



I am attaching Xyce parallel config.log and configure file and also attaching CMakeCache.txt and configure file for Trilions parallel

Thanks in advance for your help

--
-- -- -- -- -- -- 
Best Regards;
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
Mostafa Abdelrehim, PhD
Assistant Professor, California State University at Bakersfield 
Department of Computer and Electrical Engineering

------------------------------------------------------------------------------------------------------------------------------------------
Dark Ages 1001 Inventions!

 The Meaning Of Life in Islam - worth watching
CMakeCache.txt
config.log
reconfigure_Parallel_Xyce
reconfigure_Parallel_Trilions

Mostafa Said

unread,
Oct 28, 2021, 12:31:54 PM10/28/21
to xyce-users
nevermind all 
I could fix it by adding absolute paths, here is my updated configure file

#!/bin/sh
/home/mos1/Xyce-7.3/configure \
CXXFLAGS="-O3" \
ARCHDIR="/home/mos1/XyceLibs/Parallel" \
CPPFLAGS="-I/home/mos1/SuiteSparse-5.10.1/include" \
LDFLAGS="-L/home/mos1/SuiteSparse-5.10.1/lib" \
--enable-mpi \
CXX=/usr/lib64/openmpi/bin/mpicxx \
CC=/usr/lib64/openmpi/bin/mpicc \
F77=/usr/lib64/openmpi/bin/mpif77 \
--enable-stokhos \
--enable-amesos2 \
--prefix=$HOME/XyceInstall/Parallel

thanks anyway for anyone who read my message

xyce-users

unread,
Oct 28, 2021, 12:38:01 PM10/28/21
to xyce-users
I believe that on Centos the correct way to access MPI is to use the "environment modules" system to load the openmpi module.  When you installed OpenMPI through the "yum" interface it should have installed the "environment modules" system *and* a module file for mpi.

Type "module avail" and it should list off all the optional modules installed.  You should see something like "mpi/openmpi" (modulo suffixes).  If so, you would then type "module load mpi/openmpi" (or whatever you found in "module avail"). 

The environment modules system is set up to allow you to swap optional packages in and out of your path with less effort than it would normally take.

I am not *certain* that Centos does it that way, but it is definitely how it works on RHEL, which is basically the commercial analog of Centos.

Certainly, specifying the absolute path will get you at least part of the way, and the way OpenMPI works it should make sure the resulting binaries find everything they need.  But in general, if an environment module exists for a package it is best to use it because they usually do more than just add to your PATH (they sometimes add to other environment variables that are critical to the package's operation).

Mostafa Said

unread,
Oct 28, 2021, 12:48:20 PM10/28/21
to xyce-users
thanks a lot for the trick, that is informative and useful

--
You received this message because you are subscribed to a topic in the Google Groups "xyce-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xyce-users/OEBJhzRgPZk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xyce-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xyce-users/9036bef1-e541-46d0-a6ce-8ce746535499n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages