Ubuntu HPC Install and Configure Modules
From Notes_Wiki
Revision as of 05:01, 27 February 2023 by Saurabh (talk | contribs) (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...")
Home > Ubuntu > HPC setup with openpbs and openmpi > Install and Configure Modules
- Create directory for modules path in master node share path
- mkdir -p /export/modules/
- Configure mpi module file in master node
- Create directory for mpi
- mkdir -p /export/modules/mpi
- cd /export/modules/mpi
- Create 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};
- For new module path to work, Logout and login back from all nodes
- Check the available modules in all nodes
- module avail
- Create directory for mpi
- 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