--
You received this message because you are subscribed to the Google Groups "IBAMR Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibamr-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-users/b73d1040-63e7-4e9f-83be-1d316363645cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-users/3810a813-5d84-4a5c-9475-23ce1b348c11n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-users/3810a813-5d84-4a5c-9475-23ce1b348c11n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-users/65c5e8aa-c17e-4ee1-9eb7-1c94b749a371n%40googlegroups.com.
On Feb 6, 2023, at 4:42 PM, Amneet Bhalla <mail2...@gmail.com> wrote:sudo xcode-select --installwill install command line tools on OSX. Brew is installed using the bash command given here:
➜ brew info gcc==> gcc: stable 12.2.0 (bottled), HEADGNU compiler collection/opt/homebrew/Cellar/gcc/12.2.0 (1,470 files, 358.9MB) *Poured from bottle on 2022-09-06 at 23:20:19License: GPL-3.0-or-later with GCC-exception-3.1==> DependenciesRequired: gmp ✔, isl ✔, libmpc ✔, mpfr ✘, zstd ✔==> Options--HEADInstall HEAD version==> Analyticsinstall: 75,574 (30 days), 230,156 (90 days), 1,397,079 (365 days)install-on-request: 36,998 (30 days), 114,047 (90 days), 666,746 (365 days)build-error: 260 (30 days)➜ brew info openmpi==> open-mpi: stable 4.1.4 (bottled), HEADHigh performance message passing libraryConflicts with:mpich (because both install MPI compiler wrappers)/opt/homebrew/Cellar/open-mpi/4.1.4 (758 files, 17.6MB)Poured from bottle on 2022-08-03 at 15:38:42/opt/homebrew/Cellar/open-mpi/4.1.4_1 (758 files, 17.6MB) *Poured from bottle on 2022-09-06 at 23:20:23License: BSD-3-Clause==> DependenciesRequired: gcc ✔, hwloc ✔, libevent ✔==> Options--HEADInstall HEAD version==> Analyticsinstall: 15,896 (30 days), 50,158 (90 days), 298,111 (365 days)install-on-request: 6,184 (30 days), 21,412 (90 days), 130,612 (365 days)build-error: 9 (30 days)
➜ brew install gcc open-mpi
➜ mpicc --showclang -I/opt/homebrew/Cellar/open-mpi/4.1.4_1/include -L/opt/homebrew/Cellar/open-mpi/4.1.4_1/lib -L/opt/homebrew/opt/libevent/lib -lmpi➜ mpicxx --showclang++ -I/opt/homebrew/Cellar/open-mpi/4.1.4_1/include -L/opt/homebrew/Cellar/open-mpi/4.1.4_1/lib -L/opt/homebrew/opt/libevent/lib -lmpi➜ mpif90 --showgfortran -I/opt/homebrew/Cellar/open-mpi/4.1.4_1/include -Wl,-flat_namespace -Wl,-commons,use_dylibs -I/opt/homebrew/Cellar/open-mpi/4.1.4_1/lib -L/opt/homebrew/Cellar/open-mpi/4.1.4_1/lib -L/opt/homebrew/opt/libevent/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi
# tell MPICH to use ccache:export MPICH_CC="clang"export MPICH_CXX="clang++"export MPICH_FC="gfortran"# tell OpenMPI to use ccache:export OMPI_CC="clang"export OMPI_CXX="clang++"export OMPI_FC="gfortran"
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-users/CAMETWJ1wrD3ohJT6EsUEy2VG5HSQYcrfmMYDroh6n8RmsEEHdA%40mail.gmail.com.
note: Checking /lib and /include for MPI
note: Could not find /lib/libmpi(.a/.so/.dylib)
mpicxx -std=gnu++17 Compiler Supports MPI
configure: error: *** PETSc was not found, but --enable-petsc-required was specified.
Note 1: I went to petsc/lib and the only folder in it is petsc which includes bin ans conf.
Note 2: I tried linking the mpi compilers through the following path: /usr/local/Cellar/mpich/4.1/bin/ but it did not help (I receive the same error).
Does it seem like I installed petsc wrong? Should I expect having a folder petsc/lib/libmpi?
Thank you again for your help,
Sincerely,
Guy
To view this discussion on the web visit https://groups.google.com/d/msgid/ibamr-users/ef064cce-e42a-40cc-988d-64c927b21874n%40googlegroups.com.
./configure --PETSC_ARCH=$PETSC_ARCH --download-mpich --download-f2cblaslapack --with-cc=gcc-13 --with-cxx=g++-13 --with-fc=gfortran-13 --COPTFLAGS="-O3" --CXXOPTFLAGS="-O3" --FOPTFLAGS="-O3" --with-debugging=0 --with-precision=double --with-scalar-type=real --with-fortran-bindings=0 --download-make --download-hypre=1
============== SAMRAI =============
../SAMRAI-2.4.4/configure CFLAGS="-fPIC -O3" CXXFLAGS="-fPIC -O3" FFLAGS="-fPIC -O3" --prefix=$HOME/sfw/ventura/samrai/2.4.4/mac-g++-opt --with-CC=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpicc --with-CXX=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpicxx --with-F77=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpifort --with-hdf5=/usr/local --without-petsc --without-hypre --with-silo=$HOME/sfw/ventura/silo/4.11.1 --without-blaslapack --without-cubes --without-eleven --without-kinsol --without-sundials --without-x --with-doxygen --with-dot --disable-debug --enable-opt --enable-implicit-template-instantiation --disable-deprecated
============== libMesh =============
../LIBMESH/configure --prefix=$HOME/sfw/ventura/libmesh/1.7.1/1.7.1-opt --with-methods=opt PETSC_DIR=$HOME/sfw/ventura/petsc/petsc-3.17.5 PETSC_ARCH=mac-opt CC=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpicc CXX=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpicxx FC=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpifort F77=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpifort CFLAGS=-I$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/include --disable-boost --disable-capnproto --disable-cppunit --disable-eigen --disable-fparser --disable-hdf5 --disable-laspack --disable-metaphysicl --disable-openmp --disable-perflog --disable-pthreads --disable-reference-counting --disable-slepc --disable-strict-lgpl --disable-tbb --disable-tecio --disable-trilinos --enable-curl=no --enable-exodus=yes --enable-glpk=no --enable-nanoflann=no --enable-qhull=no --enable-tecplot=no --enable-timestamps=no --enable-petsc-required --enable-unique-id --with-methods=opt COPTFLAGS="-O3 -march=native" CXXOPTFLAGS="-O3 -march=native" FOPTFLAGS="-O3 -march=native"
============== IBAMR =============
../source/IBAMR/configure \
CC=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpicc \
CXX=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpicxx \
FC=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpifort \
F77=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpifort \
MPICC=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpicc \
MPICXX=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin/mpicxx \
CFLAGS="-O3 -pipe -Wall" \
CXXFLAGS="-O3 -pipe -Wall" \
FCFLAGS="-O3 -pipe -Wall" \
CPPFLAGS="-DOMPI_SKIP_MPICXX" \
--with-hypre=$PETSC_DIR/$PETSC_ARCH \
--with-samrai=$HOME/sfw/ventura/samrai/2.4.4/mac-g++-opt \
--with-hdf5=/usr/local \
--with-silo=$HOME/sfw/ventura/silo/4.11.1 \
--with-boost=/usr/local \
--enable-libmesh \
--with-libmesh=$HOME/sfw/ventura/libmesh/1.7.1/1.7.1-opt \
--with-libmesh-method=opt
==================================
export PETSC_ARCH=mac-opt
export PATH=$HOME/sfw/ventura/petsc/petsc-3.17.5/mac-opt/bin:$PATH