Hoffman2:Software Tools:CentOS 7: Difference between revisions
Line 5: | Line 5: | ||
=== CCN modules for CentOS 7=== | === CCN modules for CentOS 7=== | ||
To use CCN modules in Hoffman2, you'll need to specify the new modulefiles path for CentOS 7 for interactive mode or batch mode | To use CCN modules in Hoffman2, you'll need to specify the new modulefiles path for CentOS 7 for interactive mode or batch mode (After the Hoffman cluster switchs to CentOS 7 completely, this might not be needed anymore) | ||
==== For interactive mode ==== | ==== For interactive mode ==== |
Latest revision as of 22:21, 16 August 2021
Hoffman CentOS 7
At this point (August 2021), partial of Hoffman's work nodes have been upgraded to CentOS 7.
CCN modules for CentOS 7
To use CCN modules in Hoffman2, you'll need to specify the new modulefiles path for CentOS 7 for interactive mode or batch mode (After the Hoffman cluster switchs to CentOS 7 completely, this might not be needed anymore)
For interactive mode
you need to edit your ~/bashrc or ~/bash_profile
gedit ~/bashrc
comment out
#module use /u/project/CCN/apps/modulefiles
Add a line to use modulefiles_rh7
module use /u/project/CCN/apps/modulefiles_rh7
(*Don't forget to turn them back if you need to use CentOS 6 environment again)
Once you complete editing, start an interactive mode for CentOS 7 node
For batch mode
Add the following line to your batch job file
module use /u/project/CCN/apps/modulefiles_rh7
Request a CentOS 7 node with interactive mode
To request a work node with CentOS 7, you'll need to use 'rh7' after -l option, for example
qrsh -l rh7,h_data=4G,h_rt=2:00:00
Request a CentOS 7 node with batch mode
It's similar as interactive mode, 'rh7' is needed for -l option
#$ -l rh7,h_rt=2:00:00,h_data=4G