NCAR / ParallelIO

A high-level Parallel I/O Library for structured grid applications
Apache License 2.0
134 stars 52 forks source link

Decouple CMake_Fortran_utils install from config-script #1958

Closed cponder closed 1 year ago

cponder commented 1 year ago

I'm trying to build PIO on a node with no access to the external Internet. I'm getting this failure

-- Checking whether /contrib/FV3_support/Utils/OpenMPI/4.1.4/PGI-23.1_CUDA-12.0.1.0_525.85.12_UCX-1.13.1_HWLoc-2.8.0_ZLib-1.2.13/bin/mpifort supports Fortran 90 -- yes
-- Importing CMake_Fortran_utils
CMake Error at CMakeLists.txt:155 (message):
  Failed to import CMake_Fortran_utils
-- Configuring incomplete, errors occurred!
See also "/contrib/FV3_support/Utils/PIO/2_5_10/PGI-23.1_OpenMPI-4.1.4_NetCDF-F-4.6.0_HDF5-1.14.0_UCX-1.13.1/build/CMakeFiles/CMakeOutput.log".

Is there some way I can manually unpack the tarball into the PIO source-tree?

jedwards4b commented 1 year ago

Yes - you can git clone https://github.com/CESM-Development/CMake_Fortran_utils
then build pio with -DUSER_CMAKE_MODULE_PATH=/path/to/CMake_Fortran_utils

cponder commented 1 year ago

Is there a way I can clone this separately, too?

[ 47%] Performing download step (git clone) for 'genf90'
cd /contrib/FV3_support/Utils/PIO/2_5_10/PGI-23.1_OpenMPI-4.1.4_NetCDF-F-4.6.0_HDF5-1.14.0_UCX-1.13.1/build/src/flib/genf90/src && /apps/cmake/3.20.1/bin/cmake -P /contrib/FV3_support/Utils/PIO/2_5_10/PGI-23.1_OpenMPI-4.1.4_NetCDF-F-4.6.0_HDF5-1.14.0_UCX-1.13.1/build/src/flib/genf90/tmp/genf90-gitclone.cmake
Cloning into 'genf90'...
fatal: unable to access 'https://github.com/PARALLELIO/genf90/': Failed connect to github.com:443; Connection timed out
Cloning into 'genf90'...
jedwards4b commented 1 year ago

git clone https://github.com/PARALLELIO/genf90
-DGENF90_PATH=/path/to/genf90

cponder commented 1 year ago

Ok got it to build -- thanks!