Difference between revisions of "Ubuntu HPC Install and Configure Modules"

From Notes_Wiki
(Created page with "Home > Ubuntu > HPC setup with openpbs and openmpi > Install and Configure Modules #Create directory for modules path in master node share path #:<pre> #:: mkdir -p /export/modules/ #:</pre> #Configure mpi module file in master node ##Create directory for mpi ##:<pre> ##:: mkdir -p /export/modules/mpi ##:: cd /export/modules/mpi ##:</pre> ## Create mpi-4.1.1 modu...")
 
m
 
Line 9: Line 9:
##:<pre>
##:<pre>
##:: mkdir -p /export/modules/mpi
##:: mkdir -p /export/modules/mpi
##:: cd /export/modules/mpi
##:</pre>
##:</pre>
## Create mpi-4.1.1 module file with: <source type="shell">
## Create '<tt>/export/modules/mpi/mpi-4.1.1</tt>' module file with: <source type="shell">
#%Module 1.0
#%Module 1.0
conflict                mpi
conflict                mpi

Latest revision as of 05:02, 27 February 2023

Home > Ubuntu > HPC setup with openpbs and openmpi > Install and Configure Modules

  1. Create directory for modules path in master node share path
    mkdir -p /export/modules/
  2. Configure mpi module file in master node
    1. Create directory for mpi
      mkdir -p /export/modules/mpi
    2. Create '/export/modules/mpi/mpi-4.1.1' module file with:
      #%Module 1.0
      conflict                mpi
      prepend-path PATH {/export/apps/mpi/openmpi-4.1.1/bin};
      prepend-path LD_LIBRARY_PATH {/export/apps/mpi/openmpi-4.1.1/lib};
      prepend-path MANPATH {/export/apps/mpi/openmpi-4.1.1/share/man};
      prepend-path LD_RUN_PATH {/export/apps/mpi/openmpi-4.1.1/lib};
      prepend-path C_INCLUDE_PATH {/export/apps/mpi/openmpi-4.1.1/include};
      prepend-path CXX_INCLUDE_PATH {/export/apps/mpi/openmpi-4.1.1/include};
      prepend-path CPP_INCLUDE_PATH {/export/apps/mpi/openmpi-4.1.1/include};
      prepend-path CPLUS_INCLUDE_PATH {/export/apps/mpi/openmpi-4.1.1/include};
    3. For new module path to work, Logout and login back from all nodes
    4. Check the available modules in all nodes
      module avail
  3. As a HPC user load mpi module and try to run stress job again:
    module load mpi/mpi-4.1.1
    mpirun -host master,<node-1>,<node-2> -n 3 /usr/bin/stress --cpu 4 --vm 2 --vm-bytes 300M --timeout 60s


Home > Ubuntu > HPC setup with openpbs and openmpi > Install and Configure Modules