Hoffman2:Software Tools:CentOS 7: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
(Created page with " == Hoffman CentOS 7 == At this point, partial of Hoffman's work nodes are upgraded to CentOS 7. === CCN Apps for CentOS 7=== To use CCN applications in Hoffman2 ==== For i...")
 
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
== Hoffman CentOS 7 ==
== Hoffman CentOS 7 ==


At this point, partial of Hoffman's work nodes are upgraded to CentOS 7.
At this point (August 2021), partial of Hoffman's work nodes have been upgraded to CentOS 7.  


=== CCN Apps for CentOS 7===
=== CCN modules for CentOS 7===
To use CCN applications in Hoffman2
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 ====
Line 17: Line 17:
Add a line to use modulefiles_rh7
Add a line to use modulefiles_rh7
  module use /u/project/CCN/apps/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  
Once you complete editing, start an interactive mode for CentOS 7 node  
Line 23: Line 25:
Add the following line to your batch job file
Add the following line to your batch job file
  module use /u/project/CCN/apps/modulefiles_rh7
  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

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