Loading the OpenHPC Basic Environment
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install lmod-ohpc:
yum install lmod-ohpc
- Run the following command for the installation to take effect:
source /etc/profile.d/lmod.sh
- Modify the /root/.bashrc file.
- Open /root/.bashrc.
vi /root/.bashrc
- Press i to enter the insert mode and modify the file as follows:
module use /opt/ohpc/pub/modulefiles/ module use /opt/ohpc/pub/moduledeps/gnu8/ module use /opt/ohpc/pub/moduledeps/gnu8-openmpi3/
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open /root/.bashrc.
- Run the following command to make the environment variables take effect:
source /root/.bashrc
Parent topic: Deploying OpenHPC