Ubuntu HPC Install and Configure Modules

From Notes_Wiki
Revision as of 05:02, 27 February 2023 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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