| 221 | |
| 222 | ==== Selecting Centos/glibc Version Via SLURM --partition ==== |
| 223 | |
| 224 | Using the SLURM partitions '''dev''' and '''centos7''', Cypress groups all compute nodes into two distinct sets, where all nodes in the given set run the same version of the Linux Centos operating system (OS). In turn, the OS version determines the version of the GNU C library, nicknamed '''glibc'''. (See [https://www.gnu.org/software/libc/ The GNU C Library] for more information.) The version of Centos and glibc can be displayed as in the following. |
| 225 | |
| 226 | Compute nodes in partition defq (as well as login nodes) have Centos version 6.5 with glibc version 2.12. |
| 227 | |
| 228 | {{{ |
| 229 | [tulaneID@cypress1 ~]$ sbatch --partition=defq --wrap='cat /etc/centos-release && ldd --version' |
| 230 | Submitted batch job 2226229 |
| 231 | [tulaneID@cypress1 ~]$ cat slurm-2226229.out |
| 232 | CentOS release 6.5 (Final) |
| 233 | ldd (GNU libc) 2.12 |
| 234 | Copyright (C) 2010 Free Software Foundation, Inc. |
| 235 | This is free software; see the source for copying conditions. There is NO |
| 236 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 237 | Written by Roland McGrath and Ulrich Drepper. |
| 238 | }}} |
| 239 | |
| 240 | Compute nodes in partition centos7 have Centos version 7.4 with glibc version 2.17. |
| 241 | |
| 242 | {{{ |
| 243 | [tulaneID@cypress1 ~]$ sbatch --partition=centos7 --wrap='cat /etc/centos-release && ldd --version' |
| 244 | Submitted batch job 2226227 |
| 245 | [tulaneID@cypress1 ~]$ cat slurm-2226227.out |
| 246 | CentOS Linux release 7.4.1708 (Core) l |
| 247 | ldd (GNU libc) 2.17 |
| 248 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 249 | This is free software; see the source for copying conditions. There is NO |
| 250 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 251 | Written by Roland McGrath and Ulrich Drepper. |
| 252 | }}} |
| 253 | |
| 254 | ===== Requesting partition centos7 with glibc 2.17 ===== |
| 255 | |
| 256 | If your batch job requires the later version of glibc, then include the following in your batch script. |
| 257 | |
| 258 | {{{ |
| 259 | #SBATCH --partition=centos7 |
| 260 | }}} |
| 261 | |
| 262 | If your interactive job requires the later version of glibc, then use the following command. (See [https://wiki.hpc.tulane.edu/trac/wiki/cypress/using#Howtouseidev How to use idev] below for additional options.) |
| 263 | |
| 264 | {{{ |
| 265 | [tulaneID@cypress1 ~]$ idev --partition=centos7 |
| 266 | }}} |
505 | | -c|--cpus-per-task= : Cpus per Task |
506 | | -N|--nodes= : Number of Nodes |
507 | | -n|--ntasks-per-node= : Number of Tasks per Node |
508 | | --mic= : Number of MIC per Node |
509 | | --mem= : Memory (MB) per Node |
510 | | -t|--time= : Wall Time |
511 | | --port= : prot forward [local port]:[remote port] |
| 551 | -c|--cpus-per-task= : Cpus per Task (default=20) |
| 552 | -N|--nodes= : Number of Nodes (default=1) |
| 553 | -n|--ntasks-per-node= : Number of Tasks per Node (default=1) |
| 554 | --mic= : Number of MIC per Node (default=2) |
| 555 | --mem= : Memory (MB) per Node (default=3200 per cpu) |
| 556 | -t|--time= : Wall Time in hh:mm or hh or day-hh:mm or day-hh (default=0:60) |
| 557 | --partition= : partition (default=defq) |
| 558 | --qos= : qos (default=normal) |
| 559 | --port= : port forward [local port]:[remote port] (default X11 forward) |