Description
As Rocky 8 will become the only supported OS after 1/1/2025 on CSPs (AWS/Azure/Google), we need to test earlier.
Spack-stack is available with Rocky 8 on AWS/Azure (and soon on Google).
We start update modulefiles/build.noaacould.interl.lua on CSPs.
But after update the above file, we got error:
[ 18%] Linking C static library libshared_lib.a
[ 18%] Built target shared_lib
[ 19%] Building Fortran object sorc/grid_tools.fd/regional_esg_grid.fd/CMakeFiles/regional_esg_grid.dir/pmat2.f90.o
[ 19%] Building Fortran object sorc/grid_tools.fd/regional_esg_grid.fd/CMakeFiles/regional_esg_grid.dir/pmat4.f90.o
[ 19%] Building Fortran object sorc/grid_tools.fd/regional_esg_grid.fd/CMakeFiles/regional_esg_grid.dir/pmat5.f90.o
[ 20%] Building Fortran object sorc/grid_tools.fd/regional_esg_grid.fd/CMakeFiles/regional_esg_grid.dir/pesg.f90.o
[ 21%] Building Fortran object sorc/grid_tools.fd/regional_esg_grid.fd/CMakeFiles/regional_esg_grid.dir/regional_esg_grid.f90.o
/contrib/Wei.Huang/dev/ufs-utils-cloud/sorc/grid_tools.fd/regional_esg_grid.fd/regional_esg_grid.f90(23): error #7012: The module file cannot be read. Its format requires a more recent F90 compiler. [NETCDF]
use netcdf
------^
/contrib/Wei.Huang/dev/ufs-utils-cloud/sorc/grid_tools.fd/regional_esg_grid.fd/regional_esg_grid.f90(28): error #6683: A kind type parameter must be a compile-time constant. [DP]
real(dp) :: plat,plon,pazi=0.0
-------^
/contrib/Wei.Huang/dev/ufs-utils-cloud/sorc/grid_tools.fd/regional_esg_grid.fd/regional_esg_grid.f90(29): error #6683: A kind type parameter must be a compile-time constant. [DP]
real(dp) :: delx,dely
-------^
/contrib/Wei.Huang/dev/ufs-utils-cloud/sorc/grid_tools.fd/regional_esg_grid.fd/regional_esg_grid.f90(33): error #6683: A kind type parameter must be a compile-time constant. [DP]
real(dp),parameter :: re=6371200.0
-------^
/contrib/Wei.Huang/dev/ufs-utils-cloud/sorc/grid_tools.fd/regional_esg_grid.fd/regional_esg_grid.f90(34): error #6683: A kind type parameter must be a compile-time constant. [DP]
real(dp),parameter :: lam=0.8
-------^
/contrib/Wei.Huang/dev/ufs-utils-cloud/sorc/grid_tools.fd/regional_esg_grid.fd/regional_esg_grid.f90(39): error #6683: A kind type parameter must be a compile-time constant. [DP]
real(dp),dimension(:,:),allocatable:: glat,glon
-------^
/contrib/Wei.Huang/dev/ufs-utils-cloud/sorc/grid_tools.fd/regional_esg_grid.fd/regional_esg_grid.f90(40): error #6683: A kind type parameter must be a compile-time constant. [DP]
real(dp),dimension(:,:),allocatable:: garea
We have modules:
[Wei.Huang@awsrocky8epicwei-14 ufs-utils-cloud]$ module list netcdf
Currently Loaded Modules Matching: netcdf
- netcdf-c/4.9.2 2) netcdf-fortran/4.6.1 3) parallel-netcdf/1.12.2
[Wei.Huang@awsrocky8epicwei-14 ufs-utils-cloud]$ module show netcdf-fortran/4.6.1
/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/upp-addon-env/install/modulefiles/intel-oneapi-mpi/2021.10.0/intel/2021.10.0/netcdf-fortran/4.6.1.lua:
whatis("Name : netcdf-fortran")
whatis("Version : 4.6.1")
whatis("Target : skylake_avx512")
whatis("Short description : NetCDF (network Common Data Form) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. This is the Fortran distribution.")
whatis("Configure options : --enable-static --enable-shared --disable-doxygen --disable-parallel-tests")
help([[Name : netcdf-fortran]])
help([[Version: 4.6.1]])
help([[Target : skylake_avx512]])
]])
help([[NetCDF (network Common Data Form) is a set of software libraries and
machine-independent data formats that support the creation, access, and
sharing of array-oriented scientific data. This is the Fortran
distribution.]])
depends_on("netcdf-c/4.9.2")
prepend_path("PATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/bin")
prepend_path("MANPATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/share/man")
prepend_path("LD_LIBRARY_PATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/lib")
prepend_path("DYLD_LIBRARY_PATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/lib")
prepend_path("CPATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/include")
prepend_path("PKG_CONFIG_PATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/lib/pkgconfig")
prepend_path("CMAKE_PREFIX_PATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/.")
prepend_path("PATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/bin")
prepend_path("MANPATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/share/man")
prepend_path("PKG_CONFIG_PATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/lib/pkgconfig")
prepend_path("CMAKE_PREFIX_PATH","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/.")
setenv("netcdf_fortran_ROOT","/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni")
append_path("MANPATH","")
[Wei.Huang@awsrocky8epicwei-14 ufs-utils-cloud]$ ls /contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/ue-intel/install/intel/2021.10.0/netcdf-fortran-4.6.1-bke33ni/include
netcdf4_f03.mod netcdf4_nf_interfaces.mod netcdf_fortv2_c_interfaces.mod netcdf.mod netcdf_nc_interfaces.mod netcdf_nf_interfaces.mod
netcdf4_nc_interfaces.mod netcdf_f03.mod netcdf.inc netcdf_nc_data.mod netcdf_nf_data.mod typesizes.mod
Metadata
Assignees
Labels
Type
Projects
Status
Done