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

Fix file path for Orion in module-setup #90

Open
MinsukJi-NOAA opened this issue Feb 24, 2021 · 9 comments
Open

Fix file path for Orion in module-setup #90

MinsukJi-NOAA opened this issue Feb 24, 2021 · 9 comments

Comments

@MinsukJi-NOAA
Copy link
Collaborator

@BrianCurtis-NOAA reported that in src/conf/module-setup.*.inc, the file path for Orion is incorrect: Change /apps/lmod/init to /apps/lmod/lmod/init

@climbfuji
Copy link
Contributor

We need to get rid of these two files and fix the logic that relies on them, now that the gnumake build is gone.

@junwang-noaa
Copy link
Collaborator

\We do need the two files to set up module. Do we want to move the two files to ufs-weather-model/test? We may need to update the path in rt.sh, run_test.sh and utest. But we still need to fix orion module-setup path to /apps/lmod/lmod/init.

@DusanJovic-NOAA Do you want to include this change in your ufs-weather-model PR#654? Thanks

@aerorahul
Copy link
Contributor

@junwang-noaa
The only machines you need those files is on Cray (Gaea and WCOSS-Cray) where a module purge obliterates the system modules and cannot be recovered.

The env. variable $MODULESHOME is defined as soon as a shell is invoked, regardless of the type of terminal.
MODULESHOME contains the path to the lmod installation.

Depending on the shell, one should be able to do:

source $MODULESHOME/init/bash

instead of

/apps/lmod/lmod/init/bash

or any other variant of that lmod path.

@junwang-noaa
Copy link
Collaborator

junwang-noaa commented Jul 1, 2021 via email

@climbfuji
Copy link
Contributor

Why do we need to run the module init command at all? I don't think that is needed.

What happens if we move the module purge command into the machine-dependent module files modulefiles/ufs_* on the machines where this works, and just don't add it for the cray machines?

@junwang-noaa
Copy link
Collaborator

junwang-noaa commented Jul 1, 2021 via email

@climbfuji
Copy link
Contributor

I want to give this a try.

@aerorahul
Copy link
Contributor

aerorahul commented Jul 1, 2021

Why do we need to run the module init command at all? I don't think that is needed.

What happens if we move the module purge command into the machine-dependent module files modulefiles/ufs_* on the machines where this works, and just don't add it for the cray machines?

@climbfuji
Please do not move module purge into the modulefiles for the machines. In operations, we load operational modules e.g. ecflow, datacom, etc. that load modules and sets paths at the beginning of the jobs.
Then in the job, the job specific modules are loaded -- ufs modules in the forecast script. If you add a module purge here, it will break operations.

If you do move it here, the workflows will have to maintain their own modulefiles for the ufs-weather-model, and I think we can all agree that is not desireable.

@climbfuji
Copy link
Contributor

Why do we need to run the module init command at all? I don't think that is needed.
What happens if we move the module purge command into the machine-dependent module files modulefiles/ufs_* on the machines where this works, and just don't add it for the cray machines?

@climbfuji
Please do not move module purge into the modulefiles for the machines. In operations, we load operational modules e.g. ecflow, datacom, etc. that load modules and sets paths at the beginning of the jobs.
Then in the job, the job specific modules are loaded -- ufs modules in the forecast script. If you add a module purge here, it will break operations.

If you do move it here, the workflows will have to maintain their own modulefiles for the ufs-weather-model, and I think we can all agree that is not desireable.

That's good to know, thanks Rahul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants