Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

CESM case.setup "module command None purge" error on Grace (custom machine)

Jiaojiao

Jiaojiao
New Member
Describe your problem or question:
Hello, I am Jiaojiao Dong, a PhD student from Texas A&M University, I am a new beginner of CESM, and met a problem when I tried to setup a case, the details are as followings:


CESM version: 2.1.5
Machine: TAMU Grace HPC cluster

No changes to source code. Only modified config_machines.xml and config_batch.xml for the custom machine port (grace2).

Steps to reproduce:
1. Customized config_machines.xml and config_batch.xml for the Grace cluster (see key config_machines.xml content below).
2. Ran:
./create_newcase --case /scratch/user/jiaodong/test_grace2 --res f19_g16 --compset X --mach grace2
3. cd /scratch/user/jiaodong/test_grace2
4. ./case.setup
ERROR: module command None purge failed with message:
/bin/sh: None: command not found

1745603835197.png
This is the details of config_machines.xml
1745603916716.png

Still see the same error. Any suggestions on what might be causing this?

Thank you!
 

jedwards

CSEG and Liaisons
Staff member
Is this the vista system? Here is what I have in config_machines.xml (for cesm3, but very similar)


Code:
<mpirun mpilib="openmpi">
      <executable>mpirun</executable>
      <arguments>
    <arg name="num_tasks"> -np {{ total_tasks }}</arg>
      </arguments>
    </mpirun>
    <module_system type="module" allow_error="true">
      <init_path lang="perl">/opt/apps/lmod/lmod/init/perl</init_path>
      <init_path lang="python">/opt/apps/lmod/lmod/init/env_modules_python.py</init_path>
      <init_path lang="sh">/opt/apps/lmod/lmod/init/sh</init_path>
      <init_path lang="csh">/opt/apps/lmod/lmod/init/csh</init_path>
      <cmd_path lang="perl">/opt/apps/lmod/lmod/libexec/lmod perl</cmd_path>
      <cmd_path lang="python">/opt/apps/lmod/lmod/libexec/lmod python</cmd_path>
      <cmd_path lang="sh">module</cmd_path>
      <cmd_path lang="csh">module</cmd_path>
      <modules>
    <command name="purge"/>
      </modules>
      <modules compiler="nvhpc">
    <command name="load" >nvidia/24.9</command>
    <command name="load">openmpi/5.0.5_nvc249</command>
      </modules>
      <modules compiler="gnu">
    <command name="load" >gcc/14.2.0</command>
     <command name="load">openmpi/5.0.5</command>
      </modules>   
      <modules>
    <command name="load">pnetcdf/1.13.0</command>
    <command name="load">hdf5/1.14.4</command>
    <command name="load">netcdf/4.9.2</command>
      </modules>
      <modules compiler="nvhpc">
    <command name="use">/work/02503/edwardsj/vista/modulefiles/nvhpc/24.9.0/openmpi/5.0.5_nvc249</command>
    <command name="load">parallelio/2.6.5</command>
      </modules>
    </module_system>
 

Jiaojiao

Jiaojiao
New Member
Dear Jedwards,

Thank you very much for your reply. However, Grace runs on a Linux system. I have included some additional details in the attached figure for your reference.
1745936271679.png
 

jedwards

CSEG and Liaisons
Staff member
Okay. I think that the point that I was trying to make is that you need to provide the init_path and cmd_path for (at least) the python and sh interfaces to the modules command.
 
Top