-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Rocky8 on CSPs #982
Comments
Hi Wei, |
What are the steps to reproduce the error? |
Hello Natalie,
I am trying on AWS, at dir: /contrib/Wei.Huang/dev/ufs-utils-cloud
The code I use is git check-out from:
Warning: Permanently added 'github.com,140.82.113.3' (ECDSA) to the list of
known hosts.
* remote origin
Fetch URL: ***@***.***:NOAA-EPIC/UFS_UTILS-cloud.git
Push URL: ***@***.***:NOAA-EPIC/UFS_UTILS-cloud.git
HEAD branch: develop
Remote branches:
develop tracked
wei-epic-gcp tracked
Local branches configured for 'git pull':
csps-rocky8 merges with remote develop
develop merges with remote develop
wei-epic-gcp merges with remote wei-epic-gcp
Local refs configured for 'git push':
develop pushes to develop (up to date)
wei-epic-gcp pushes to wei-epic-gcp (local out of date)
***@***.*** ufs-utils-cloud]$ git br
* csps-rocky8
develop
wei-epic-gcp
Modulefile:
***@***.*** ufs-utils-cloud]$ more
modulefiles/build.noaacloud.intel.lua
help([[
Load environment to compile UFS_UTILS on NOAA CSPs using Intel
]])
prepend_path("MODULEPATH",
"/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/upp-addon-env/install/modulefiles/Core")
prepend_path("MODULEPATH", "/apps/modules/modulefiles")
prepend_path("PATH", "/contrib/EPIC/bin")
load("gnu")
load("stack-intel")
load("stack-intel-oneapi-mpi")
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
load(pathJoin("stack-intel", stack_intel_ver))
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.10.0"
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))
unload("gnu")
load("common4noaacloud")
setenv("CC", "mpiicc")
setenv("CXX", "mpiicpc")
setenv("FC", "mpiifort")
whatis("Description: UFS_UTILS build environment on NOAA Cloud")
…On Wed, Sep 11, 2024 at 6:57 AM Natalie Perlin ***@***.***> wrote:
What are the steps to reproduce the error?
—
Reply to this email directly, view it on GitHub
<#982 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASMCH62OPMWSEPBY3EOUYMLZWA43XAVCNFSM6AAAAABN7W5EJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBTGU4TQMJTHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
More error msg: /contrib/Wei.Huang/dev/ufs-utils-cloud/sorc/emcsfc_ice_blend.fd/emcsfc_ice_blend.f90(95): error #7012: The module file cannot be read. Its format requires a more recent F90 compiler. [GRIB_MOD] |
Checking out new NOAA Azure Rocky8 cluster from the Marketplace on Parallel works and setting a modulefile (from git@github.com:NOAA-EPIC/gfs-utils.git) to the one shown below seems to resolve the module loading issue.
|
To load the modulefile for the repository
A modulefile
|
For the UPP from the repository git@github.com:NOAA-EPIC/UPP-cloud.git, the following changes are needed in
|
@weihuang-jedi - please let us know if there are still issues with loading modules and building packages on NOAA CSPs with Rocky8! |
With the above changes, UFS-UTILS compiles fine both on AWS and Azure. |
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
[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
The text was updated successfully, but these errors were encountered: