Skip to content
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

Issues in getting dependencies on an institute HPC. #2150

Closed
4 tasks
garvitagarwal290 opened this issue Feb 14, 2024 · 2 comments
Closed
4 tasks

Issues in getting dependencies on an institute HPC. #2150

garvitagarwal290 opened this issue Feb 14, 2024 · 2 comments
Assignees
Labels
category: Question Further information is requested topic: User Environment Relating to libraries, containers, AMIs, etc.

Comments

@garvitagarwal290
Copy link

Name and Institution (Required)

Name: Garvit Agarwal
Institution: IISER Pune

Confirm you have reviewed the following documentation

Description of your issue or question

Hi, I am trying to run GEOS-Chem Classic on my institute HPC. I am not able to install the dependencies using Spack since it fails with 'permission denied' (I dont have root access on this HPC). The HPC has several 'modules' available including for netcdf-fortran, hdf5 etc that I am able to load with 'module load '. However when I try to build my run directory using command 'cmake ../CodeDir -DRUNDIR=..' , I get the error:

Counldn't find one or more of NetCDF's files! The following
files/directories weren't found:

  NETCDF_F_LIBRARY: Path to "libnetcdff.so"
  NETCDF_F90_INCLUDE_DIR: Directory containing "netcdf.mod"
  NETCDF_F77_INCLUDE_DIR: Directory containing "netcdf.inc"

I am not able to find these files so I cant provide the path to them to cmake.

Is it not possible to use GEOS-Chem by loading modules like this?
My bigger question is whether there is another way to build all the dependencies?

@yantosca
Copy link
Contributor

Thanks for writing @garvitagarwal290. You can indeed use modules like this for GEOS-Chem. You will probably need to use an environment file to set these variables using an environment file (a shell script) such as this: https://geos-chem.readthedocs.io/en/latest/getting-started/login-env-files-gnu.html

When you load the modules (at least on our system), it should define one or more environment file (e.g. NETCDF_C_HOME, NETCDF_C_LIB) that points to the root folder of the library installation. You can ask your HPC support staff about this.

@yantosca yantosca self-assigned this Feb 14, 2024
@yantosca yantosca added category: Question Further information is requested topic: User Environment Relating to libraries, containers, AMIs, etc. labels Feb 14, 2024
@garvitagarwal290
Copy link
Author

Thanks @yantosca ! Your comment allowed me to make GEOS-Chem run on my HPC!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Question Further information is requested topic: User Environment Relating to libraries, containers, AMIs, etc.
Projects
None yet
Development

No branches or pull requests

2 participants