[petsc-dev] building on Titan
Satish Balay
balay at mcs.anl.gov
Fri Jun 22 13:27:38 CDT 2018
Well these external tools are decoupled from petsc configure [they
don't need mpi etc] - so they find their own suitable compilers [which
has a better chance of success].
Sure this isn't fail safe.
For sowing we provide
--download-sowing-cc=<prog>
C compiler for sowing configure
--download-sowing-cxx=<prog>
CXX compiler for sowing configure
--download-sowing-cpp=<prog>
CPP for sowing configure
--download-sowing-cxxcpp=<prog>
CXX CPP for sowing configure
--download-sowing-configure-options=<options>
We could add that for all such packages. But then - if its not
convinent to install with --download-package - why not manually
install it [per packages instructions for this machine/compiler?]
--download-cmake --download-make etc are convinence options for
systems that dont' have suitable versions preinstalled anyway. No point
is petsc installing this on all machines [esp LCFs]
Satish
On Fri, 22 Jun 2018, Smith, Barry F. wrote:
>
> Should cmake.py be changed to have
>
> self.requirescxx11 = 1
>
> Then at least you get an error message instead of having to wade into the configure output?
>
> Barry
>
>
> > On Jun 21, 2018, at 9:41 PM, Balay, Satish <balay at mcs.anl.gov> wrote:
> >
> > Hm - we've generally used preinstalled cmake on LCFs - so its not
> > clear to me when cmake switched to requring C++11. [this issue never
> > came up with so far]
> >
> > So - suggest avoiding --download-cmake - and use 'module load cmake'
> > or whatever is appropriate on titan.
> >
> > Satish
> >
> > On Thu, 21 Jun 2018, Smith, Barry F. wrote:
> >
> >> We now require C++11 to build basic packages like metis? Come on, is that really necessary? Do we really need this recent a version of cmake?
> >>
> >>
> >>
> >>
> >> Error running configure on CMAKE: Could not execute "cd /autofs/nccs-svm1_home1/adams/petsc/arch-titan-opt64-pgi/externalpackages/cmake-3.11.1 && ./configure --prefix=/autofs/nccs-svm1_home1/adams/petsc/arch-titan-opt64-pgi --parallel=24":
> >> ---------------------------------------------
> >> CMake 3.11.1, Copyright 2000-2018 Kitware, Inc. and Contributors
> >> Found GNU toolchain
> >> C compiler on this system is: gcc
> >> ---------------------------------------------
> >> Error when bootstrapping CMake:
> >> Cannot find a C++ compiler supporting C++11 on this system.
> >> Please specify one using environment variable CXX.
> >> See cmake_bootstrap.log for compilers attempted.
> >>
> >>
> >>> On Jun 21, 2018, at 5:54 PM, Mark Adams <mfadams at lbl.gov> wrote:
> >>>
> >>> I am getting a cmake error on Titan...
> >>> <configure.log>
> >>
> >
>
More information about the petsc-dev
mailing list