Changes between Initial Version and Version 1 of cypress/Bash


Ignore:
Timestamp:
Jun 18, 2021 9:31:04 PM (7 months ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/Bash

    v1 v1  
     1= Bash =
     2The default version of bash on cypress is 4.1.2. To check the version you are using:
     3
     4{{{
     5[user@cypress2 ~]$ echo "${BASH_VERSION}"
     64.1.2(1)-release
     7}}}
     8
     9There are newer version of bash installed as modules on Cypress.
     10{{{
     11[user@cypress2 bash]$ module av bash
     12
     13---------------------------------------------------------------------------------- /share/apps/modulefiles -----------------------------------------------------------------------------------
     14bash/5.1.8
     15}}}
     16
     17To use this on the current command line session,
     18{{{
     19[user@cypress2 bash]$ module load bash/5.1.8
     20[user@cypress2 bash]$ bash
     21[user@cypress2 bash]$ echo "${BASH_VERSION}"
     225.1.8(1)-release
     23}}}
     24
     25To use this on batch script,
     26{{{
     27#!/share/apps/bash/5.1.8/bin/bash
     28#SBATCH --partition=defq                # Partition
     29#SBATCH --qos=normal                    # Quality of Service
     30#SBATCH --job-name=test         # Job Name
     31#SBATCH --time=00:10:00         # WallTime
     32#SBATCH --nodes=1                       # Number of Nodes
     33#SBATCH --ntasks-per-node=1             # Number of tasks (MPI presseces)
     34#SBATCH --cpus-per-task=1               # Number of processors per task OpenMP threads()
     35#SBATCH --gres=mic:0                    # Number of Co-Processors
     36
     37date
     38echo "${BASH_VERSION}"
     39}}}