--- slurm-llnl-1.3.13.orig/config.guess +++ slurm-llnl-1.3.13/config.guess @@ -0,0 +1,1526 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. + +timestamp='2008-01-23' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Originally written by Per Bothner . +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit build system type. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep __ELF__ >/dev/null + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[456]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep __LP64__ >/dev/null + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + case ${UNAME_MACHINE} in + pc98) + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:[3456]*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + EM64T | authenticamd) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-gnu + else + echo ${UNAME_MACHINE}-unknown-linux-gnueabi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + cris:Linux:*:*) + echo cris-axis-linux-gnu + exit ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-gnu + exit ;; + frv:Linux:*:*) + echo frv-unknown-linux-gnu + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + mips:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips + #else + CPU= + #endif + #endif +EOF + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; + mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips64 + #undef mips64el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mips64el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips64 + #else + CPU= + #endif + #endif +EOF + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^CPU/{ + s: ::g + p + }'`" + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; + or32:Linux:*:*) + echo or32-unknown-linux-gnu + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-gnu + exit ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + i*86:Linux:*:*) + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. cd to the root directory to prevent + # problems with other programs or directories called `ld' in the path. + # Set LC_ALL=C to ensure ld outputs messages in English. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ + | sed -ne '/supported targets:/!d + s/[ ][ ]*/ /g + s/.*supported targets: *// + s/ .*// + p'` + case "$ld_supported_targets" in + elf32-i386) + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" + ;; + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-gnuaout" + exit ;; + coff-i386) + echo "${UNAME_MACHINE}-pc-linux-gnucoff" + exit ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" + exit ;; + esac + # Determine whether the default compiler is a.out or elf + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #ifdef __ELF__ + # ifdef __GLIBC__ + # if __GLIBC__ >= 2 + LIBC=gnu + # else + LIBC=gnulibc1 + # endif + # else + LIBC=gnulibc1 + # endif + #else + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) + LIBC=gnu + #else + LIBC=gnuaout + #endif + #endif + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' + /^LIBC/{ + s: ::g + p + }'`" + test x"${LIBC}" != x && { + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit + } + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } + ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i386. + echo i386-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + unknown) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: --- slurm-llnl-1.3.13.orig/config.sub +++ slurm-llnl-1.3.13/config.sub @@ -0,0 +1,1658 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. + +timestamp='2008-01-16' + +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray) + os= + basic_machine=$1 + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | mt \ + | msp430 \ + | nios | nios2 \ + | ns16k | ns32k \ + | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | score \ + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu | strongarm \ + | tahoe | thumb | tic4x | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ + | z8k) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; + tile*) + basic_machine=tile-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -zvmoe) + os=-zvmoe + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: --- slurm-llnl-1.3.13.orig/debian/slurm-llnl-slurmdbd.preinst +++ slurm-llnl-1.3.13/debian/slurm-llnl-slurmdbd.preinst @@ -0,0 +1,61 @@ +#!/bin/sh +# preinst script for munge +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install) + if [ $(id -u slurm 2>/dev/null) ]; then + SLURMUID=$(id -u slurm 2>/dev/null) + SLURMGID=$(id -g slurm 2>/dev/null) + if [ "$SLURMUID" != "64030" ] || [ "$SLURMGID" != "64030" ] ; then + deluser --quiet slurm + adduser --quiet --system --group --uid 64030 --no-create-home slurm + fi + else + adduser --quiet --system --group --uid 64030 --no-create-home slurm + fi + ;; + + upgrade) + if [ $(id -u slurm 2>/dev/null) ]; then + SLURMUID=$(id -u slurm 2>/dev/null) + SLURMGID=$(id -g slurm 2>/dev/null) + if [ "$SLURMUID" != "64030" ] || [ "$SLURMGID" != "64030" ] ; then + deluser --quiet slurm + adduser --quiet --system --group --uid 64030 --no-create-home slurm + fi + else + adduser --quiet --system --group --uid 64030 --no-create-home slurm + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- slurm-llnl-1.3.13.orig/debian/libpmi0.symbols +++ slurm-llnl-1.3.13/debian/libpmi0.symbols @@ -0,0 +1,34 @@ +libpmi.so.0 libpmi0 #MINVER# + PMI_Abort@Base 1.3.8 + PMI_Args_to_keyval@Base 1.3.8 + PMI_Barrier@Base 1.3.8 + PMI_Finalize@Base 1.3.8 + PMI_Free_keyvals@Base 1.3.8 + PMI_Get_appnum@Base 1.3.8 + PMI_Get_clique_ranks@Base 1.3.8 + PMI_Get_clique_size@Base 1.3.8 + PMI_Get_id@Base 1.3.8 + PMI_Get_id_length_max@Base 1.3.8 + PMI_Get_kvs_domain_id@Base 1.3.8 + PMI_Get_options@Base 1.3.8 + PMI_Get_rank@Base 1.3.8 + PMI_Get_size@Base 1.3.8 + PMI_Get_universe_size@Base 1.3.8 + PMI_Init@Base 1.3.8 + PMI_Initialized@Base 1.3.8 + PMI_KVS_Commit@Base 1.3.8 + PMI_KVS_Create@Base 1.3.8 + PMI_KVS_Destroy@Base 1.3.8 + PMI_KVS_Get@Base 1.3.8 + PMI_KVS_Get_key_length_max@Base 1.3.8 + PMI_KVS_Get_my_name@Base 1.3.8 + PMI_KVS_Get_name_length_max@Base 1.3.8 + PMI_KVS_Get_value_length_max@Base 1.3.8 + PMI_KVS_Iter_first@Base 1.3.8 + PMI_KVS_Iter_next@Base 1.3.8 + PMI_KVS_Put@Base 1.3.8 + PMI_Lookup_name@Base 1.3.8 + PMI_Parse_option@Base 1.3.8 + PMI_Publish_name@Base 1.3.8 + PMI_Spawn_multiple@Base 1.3.8 + PMI_Unpublish_name@Base 1.3.8 --- slurm-llnl-1.3.13.orig/debian/slurm-llnl.default +++ slurm-llnl-1.3.13/debian/slurm-llnl.default @@ -0,0 +1,14 @@ +# Defaults for slurmd initscript +# sourced by /etc/init.d/slurmd +# installed at /etc/default/slurmd by the maintainer scripts +# +# This is a POSIX shell fragment +# +# Additional options that are passed to the slurmctld daemon +#SLURMCTLD_OPTIONS="" + + + + +# Additional options that are passed to the slurmd daemon +#SLURMD_OPTIONS="" --- slurm-llnl-1.3.13.orig/debian/slurmdbd.conf.simple +++ slurm-llnl-1.3.13/debian/slurmdbd.conf.simple @@ -0,0 +1,136 @@ +############################################################################### +# Sample configuration file for slurmdbd +############################################################################### +# +# /etc/slurm-llnl/slurmdb.conf is an ASCII file which describes Slurm +# Database Daemon (SlurmDBD) configuration information. +# The contents of the file are case insensitive except for the names of +# nodes and files. Any text following a "#" in the configuration file is +# treated as a comment through the end of that line. The size of each +# line in the file is limited to 1024 characters. Changes to the +# configuration file take effect upon restart of SlurmDbd or daemon +# receipt of the SIGHUP signal unless otherwise noted. +# +# This file should be only on the computer where SlurmDBD executes and +# should only be readable by the user which executes SlurmDBD (e.g. +# "slurm"). This file should be protected from unauthorized access since +# it contains a database password. +############################################################################### + +# AuthType +# Define the authentication method for communications between +# SLURM components. Acceptable values at present include +# "auth/none", "auth/authd", and "auth/munge". The default value +# is "auth/none", which means the UID included in communication +# messages is not verified. This may be fine for testing +# purposes, but do not use "auth/none" if you desire any security. +# "auth/authd" indicates that Brett Chun’s authd is to be used +# (see "http://www.theether.org/authd/" for more information). +# "auth/munge" indicates that LLNL’s Munge system is to be used +# (this is the best supported authentication mechanism for SLURM, +# see "http://home.gna.org/munge/" for more information). +# SlurmDbd must be terminated prior to changing the value of +# AuthType and later restarted. +AuthType=auth/munge + +# AuthInfo +# Additional information to be used for authentication of +# communications with the Slurm control daemon (slurmctld) on each +# cluster. The interpretation of this option is specific to the +# configured AuthType. In the case of auth/munge, this can be +# configured to use a Munge daemon specifically configured to provide +# authentication between clusters while the default Munge daemon +# provides authentication within a cluster. In that case, this +# will specify the pathname of the socket to use. The default +# value is NULL, which results in the default authentication +# mechanism being used. +AuthInfo=/var/run/munge/munge.socket.2 + +# DbdHost +# The name of the machine where the Slurm Database Daemon is +# executed. This should be a node name without the full domain +# name (e.g. "lx0001"). This value must be specified. +DbdHost=localhost + +# DbdPort +# The port number that the Slurm Database Daemon (slurmdbd) +# listens to for work. The default value is SLURMDBD_PORT as +# established at system build time. If none is explicitly +# specified, it will be set to 6819. This value must be equal +# to the SlurmDbdPort parameter in the slurm.conf file. + +# DebugLevel +# The level of detail to provide the Slurm Database Daemon’s logs. +# Values from 0 to 7 are legal, with ‘0’ being "quiet" operation +# and ‘7’ being insanely verbose. The default value is 3. +DebugLevel=3 + +# MessageTimeout +# Time permitted for a round-trip communication to complete in +# seconds. Default value is 10 seconds. + +# StorageHost +# Define the name of the host the database is running where we are +# going to store the data. Ideally this should be the host on +# which slurmdbd executes. +StorageHost=localhost + +# StorageLoc +# Specify the name of the database as the location where +# accounting records are written. +StorageLoc=slurm + +# StoragePass +# Define the password used to gain access to the database to store +# the job accounting data. +StoragePass=shazaam + +# StoragePort +# The port number that the Slurm Database Daemon (slurmdbd) +# communicates with the database. + +# StorageType +# Define the accounting storage mechanism type. Acceptable values +# at present include "accounting_storage/gold", +# "accounting_storage/mysql", and "accounting_storage/pgsql". +# The value "accounting_storage/gold" indicates that account +# records will be written to Gold +# (http://www.clusterresources.com/pages/products/gold-allocation-manager.php), +# which maintains its own database. The value +# "accounting_storage/mysql" indicates that accounting records +# should be written to a MySQL database specified by the StorageLoc +# parameter. The value "accounting_storage/pgsql" indicates that +# accounting records should be written to a PostgreSQL database +# specified by the StorageLoc parameter. This value must be +# specified. +StorageType=accounting_storage/mysql + +# StorageUser +# Define the name of the user we are going to connect to the +# database with to store the job accounting data. +StorageUser=slurm + +################################################################################ +# WARNING! +# If you are running slurmdbd on Debian or derived system please leave +# the above values untouched +################################################################################ +# LogFile +# Fully qualified pathname of a file into which the Slurm Database +# Daemon’s logs are written. The default value is none (performs +# logging via syslog). +LogFile=/var/log/slurm-llnl/slurmdbd.log + +# PidFile +# Fully qualified pathname of a file into which the Slurm Database +# Daemon may write its process ID. This may be used for automate +# signal processing. The default value is "/var/run/slurmdbd.pid". +PidFile=/var/run/slurm-llnl/slurmdbd.pid + +# SlurmUser +# The name of the user that the slurmctld daemon executes as. +# This user must exist on the machine executing the Slurm Database +# Daemon and have the same user ID as the hosts on which slurmctld +# execute. For security purposes, a user other than "root" is +# recommended. The default value is "root". +SlurmUser=slurm --- slurm-llnl-1.3.13.orig/debian/compat +++ slurm-llnl-1.3.13/debian/compat @@ -0,0 +1 @@ +4 --- slurm-llnl-1.3.13.orig/debian/README.Debian +++ slurm-llnl-1.3.13/debian/README.Debian @@ -0,0 +1,66 @@ +Configuration Instruction +========================= +The use of OpenSSL is recommended to provide a digital signature on job +step credentials. Munge can alternately be used with somewhat slower +performance. If you choose to use OpenSSL cryptography you will need +to create unique job credential keys for your site using the openssl +command: a Job Credential Private Key and a Job Credential Public +Certificate. +The key must be available on the controllers while the certificate must +be available on all the compute nodes. +These keys are used by slurmctld to construct a job credential, which +is sent to srun and then forwarded to slurmd to initiate job steps. + +You can create the certificate and the key with openssl as follow: + +openssl genrsa -out /etc/slurm-llnl/slurm.key 1024 +openssl rsa -in /etc/slurm-llnl/slurm.key -pubout -out \ + /etc/slurm-llnl/slurm.cert + +You will also need a configuration file for your cluster that need to +be stored under /etc/slurm-llnl/slurm.conf on every node. +You can point your browser to +file:///usr/share/doc/slurm-llnl/slurm-llnl-configurator.html +for an automatic configuration tool. +Please leave red fields untouched and change green field +to fit your cluster configuration. + +You can also find a simple sample configuration that provides a +control machine to run the Slurm's central management daemon and +a single node for job execution under +/usr/share/doc/slurm-llnl/examples/slurm.conf.simple.gz + +Openssl Key Vulnerability +========================= +In Debian Security Advisory 1571 (New openssl packages fix predictable +random number generator), the Debian Security Team disclosed a +vulnerability in the openssl package that makes many cryptographic keys +that are used for authentication (e.g. through SSH) or signing (e.g. web +server certificates) potentially vulnerable. +The init.d script of the slurm-llnl package can detect this weakness by +using an openssl keys blacklist. +To fix this, first aptitude update && aptitude upgrade to install the +new version of the openssl and libssl0.9.8 packages (the vulnerability +is fixed in version 0.9.8c-4etch3 for etch and version 0.9.8g-9 for +lenny/sid); then recreate your job credential keys as described in the +Configuration Instruction section above. +If you have generated the job credential keys with a prior version of +openssl we strongly encourage you to recreate your keys even if the +init script does not detect the vulnerability. + +Upgrading from version 1.2 +========================== +In version 1.3 there are substantial changes in the slurm.conf +configuration file. It is recommended that you rebuild it +with the new automatic configuration tool by pointing your browser to +file:///usr/share/doc/slurm-llnl/slurm-llnl-configurator.html +The node information is unchanged and the partition information only +changes for the Shared and Priority parameters, so those portions of +your old slurml.conf file may be copied into the new file. +More information about the configuration file changes are available +in /usr/share/doc/slurm-llnl/RELEASE_NOTES.gz. + +Upgrading slurmdbd from version before to 1.3.12 +================================================ +If you use SlurmDBD for archiving accounting records in a database, +you must upgrade slurmdbd before upgrading the rest of your clusters. --- slurm-llnl-1.3.13.orig/debian/slurm-llnl-slurmdbd.dirs +++ slurm-llnl-1.3.13/debian/slurm-llnl-slurmdbd.dirs @@ -0,0 +1,8 @@ +usr/sbin +usr/bin +usr/share/man/man1 +usr/share/man/man5 +usr/share/man/man8 +etc/slurm-llnl +var/run/slurm-llnl +var/log/slurm-llnl --- slurm-llnl-1.3.13.orig/debian/slurm-llnl.init.d +++ slurm-llnl-1.3.13/debian/slurm-llnl.init.d @@ -0,0 +1,320 @@ +#!/bin/sh +# +# chkconfig: 345 90 10 +# description: SLURM is a simple resource management system which \ +# manages exclusive access o a set of compute \ +# resources and distributes work to those resources. +# +# processname: /usr/sbin/slurmd +# pidfile: /var/run/slurm-llnl/slurmd.pid +# +# processname: /usr/sbin/slurmctld +# pidfile: /var/run/slurm-llnl/slurmctld.pid +# +# config: /etc/default/slurm-llnl +# +### BEGIN INIT INFO +# Provides: slurm +# Required-Start: $local_fs $syslog $network $named munge +# Required-Stop: $local_fs $syslog $network $named munge +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Short-Description: slurm daemon management +# Description: Start slurm to provide resource management +### END INIT INFO + +BINDIR=/usr/bin +CONFDIR=/etc/slurm-llnl +LIBDIR=/usr/lib +SBINDIR=/usr/sbin + +# Source slurm specific configuration +if [ -f /etc/default/slurm-llnl ] ; then + . /etc/default/slurm-llnl +else + SLURMCTLD_OPTIONS="" + SLURMD_OPTIONS="" +fi + +# Checking for slurm.conf presence +if [ ! -f $CONFDIR/slurm.conf ] ; then + if [ -n "$(echo $1 | grep start)" ] ; then + echo Not starting slurm-llnl + fi + echo slurm.conf was not found in $CONFDIR + echo Please follow the instructions in \ + /usr/share/doc/slurm-llnl/README.Debian + exit 0 +fi + + +test -f $BINDIR/scontrol || exit 0 +DAEMONLIST=$($BINDIR/scontrol show daemons 2>/dev/null) +if [ $? = 0 ] ; then + for prog in $DAEMONLIST ; do + test -f $SBINDIR/$prog || exit 0 + done +else + if [ -n "$(echo $1 | grep start)" ] ; then + echo "Not starting slurm-llnl for problems in the configuration file" + else + echo "Problems in the configuration file" + fi + echo "${CONFDIR}/slurm.conf" + echo "If upgrading from version 1.2 it is recommended that you rebuild" + echo "your configuration file. Please read instructions in" + echo " /usr/share/doc/slurm-llnl/README.Debian" + echo "Otherwise use \"scontrol show daemons\" for more information" + exit 0 +fi + +#Checking for lsb init function +if [ -f /lib/lsb/init-functions ] ; then + . /lib/lsb/init-functions +else + echo Can\'t find lsb init functions + exit 1 +fi + +# setup library paths for slurm and munge support +export LD_LIBRARY_PATH="$LIBDIR:$LD_LIBRARY_PATH" + +#Function to check for cert and key presence and key vulnerabilty +checkcertkey() +{ + MISSING="" + keyfile="" + certfile="" + + if [ "$1" = "slurmd" ] ; then + certfile=$(grep JobCredentialPublicCertificate $CONFDIR/slurm.conf \ + | grep -v "^ *#") + certfile=${certfile##*=} + certfile=${certfile%#*} + [ -e $certfile ] || MISSING="$certfile" + elif [ "$1" = "slurmctld" ] ; then + keyfile=$(grep JobCredentialPrivateKey $CONFDIR/slurm.conf | grep -v "^ *#") + keyfile=${keyfile##*=} + keyfile=${keyfile%#*} + [ -e $keyfile ] || MISSING="$keyfile" + fi + + if [ "${MISSING}" != "" ] ; then + echo Not starting slurm-llnl + echo $MISSING not found + echo Please follow the instructions in \ + /usr/share/doc/slurm-llnl/README.Debian + exit 0 + fi + + if [ -f $keyfile ] ; then + keycheck=$(openssl-vulnkey $keyfile | cut -d : -f 1) + if [ "$keycheck" = "COMPROMISED" ] ; then + + + echo Your slurm key stored in the file $keyfile + echo is vulnerable because has been created with a buggy openssl. + echo Please rebuild it with openssl version \>= 0.9.8g-9 + echo More information in /usr/share/doc/slurm-llnl/README.Debian + exit 0 + fi + fi +} + +get_daemon_description() +{ + case $1 in + slurmd) + echo slurm compute node daemon + ;; + slurmctld) + echo slurm central management daemon + ;; + *) + echo slurm daemon + ;; + esac +} + +start() { + CRYPTOTYPE=$(grep CryptoType $CONFDIR/slurm.conf | grep -v "^ *#") + CRYPTOTYPE=${CRYPTOTYPE##*=} + CRYPTOTYPE=${CRYPTOTYPE%#*} + if [ "$CRYPTOTYPE" = "crypto/openssl" ] || [ "$CRYPTOTYPE" = "" ] ; then + checkcertkey $1 + fi + + desc="$(get_daemon_description $1)" + log_daemon_msg "Starting $desc" "$1" + unset HOME MAIL USER USERNAME + #FIXME $STARTPROC $SBINDIR/$1 $2 + STARTERRORMSG="$(start-stop-daemon --start --oknodo \ + --exec "$SBINDIR/$1" -- $2 2>&1)" + STATUS=$? + log_end_msg $STATUS + if [ "$STARTERRORMSG" != "" ] ; then + echo $STARTERRORMSG + fi + touch /var/lock/slurm +} + +stop() { + desc="$(get_daemon_description $1)" + log_daemon_msg "Stopping $desc" "$1" + STOPERRORMSG="$(start-stop-daemon --oknodo --stop -s TERM \ + --exec "$SBINDIR/$1" 2>&1)" + STATUS=$? + log_end_msg $STATUS + if [ "$STOPERRORMSG" != "" ] ; then + echo $STOPERRORMSG + fi + rm -f /var/lock/slurm +} + +startall() { + for PROG in $DAEMONLIST ; do + case $PROG in + slurmd) + OPTVAR=$SLURMD_OPTIONS + ;; + slurmctld) + OPTVAR=$SLURMCTLD_OPTIONS + ;; + *) + ;; + esac + start $PROG $OPTVAR + done +} + +getpidfile() { + dpidfile=`grep -i ${1}pid $CONFDIR/slurm.conf | grep -v '^ *#'` + if [ $? = 0 ]; then + dpidfile=${dpidfile##*=} + dpidfile=${dpidfile%#*} + else + dpidfile=/var/run/${1}.pid + fi + + echo $dpidfile +} + +# +# status() with slight modifications to take into account +# instantiations of job manager slurmd's, which should not be +# counted as "running" +# +slurmstatus() { + base=${1##*/} + + pidfile=$(getpidfile $base) + + pid=`pidof -o $$ -o $$PPID -o %PPID -x $1 || \ + pidof -o $$ -o $$PPID -o %PPID -x ${base}` + + if [ -f $pidfile ]; then + read rpid < $pidfile + if [ "$rpid" != "" -a "$pid" != "" ]; then + for i in $pid ; do + if [ "$i" = "$rpid" ]; then + echo $"${base} (pid $pid) is running..." + return 0 + fi + done + elif [ "$rpid" != "" -a "$pid" = "" ]; then +# Due to change in user id, pid file may persist +# after slurmctld terminates + if [ "$base" != "slurmctld" ] ; then + echo $"${base} dead but pid file exists" + fi + return 1 + fi + + fi + + if [ "$base" = "slurmctld" -a "$pid" != "" ] ; then + echo $"${base} (pid $pid) is running..." + return 0 + fi + + echo $"${base} is stopped" + + return 3 +} + +# +# stop slurm daemons, +# wait for termination to complete (up to 10 seconds) before returning +# +slurmstop() { + for prog in $DAEMONLIST ; do + stop $prog +# for i in 1 2 3 4 +# do +# sleep $i +# slurmstatus $prog +# if [ $? != 0 ]; then +# break +# fi +# done + done +} + +# +# The pathname substitution in daemon command assumes prefix and +# exec_prefix are same. This is the default, unless the user requests +# otherwise. +# +# Any node can be a slurm controller and/or server. +# +case "$1" in + start) + startall + ;; + startclean) + SLURMCTLD_OPTIONS="-c $SLURMCTLD_OPTIONS" + SLURMD_OPTIONS="-c $SLURMD_OPTIONS" + startall + ;; + stop) + slurmstop + ;; + status) + for prog in $DAEMONLIST ; do + slurmstatus $prog + done + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + force-reload) + $0 stop + $0 start + ;; + condrestart) + if [ -f /var/lock/subsys/slurm ]; then + for prog in $DAEMONLIST ; do + stop $prog + start $prog + done + fi + ;; + reconfig) + for prog in $DAEMONLIST ; do + PIDFILE=$(getpidfile $prog) + start-stop-daemon --stop --signal HUP --pidfile \ + "$PIDFILE" --quiet $prog + done + ;; + test) + for prog in $DAEMONLIST ; do + echo "$prog runs here" + done + ;; + *) + echo "Usage: $0 {start|startclean|stop|status|restart|reconfig|condrestart|test}" + exit 1 + ;; +esac --- slurm-llnl-1.3.13.orig/debian/slurm-llnl.examples +++ slurm-llnl-1.3.13/debian/slurm-llnl.examples @@ -0,0 +1,3 @@ +debian/slurm-resume.sh +debian/slurm-suspend.sh +debian/slurm.conf.simple --- slurm-llnl-1.3.13.orig/debian/slurm-llnl-slurmdbd.logrotate +++ slurm-llnl-1.3.13/debian/slurm-llnl-slurmdbd.logrotate @@ -0,0 +1,16 @@ +/var/log/slurm-llnl/slurmdbd*.log { + compress + missingok + nocopytruncate + nocreate + nodelaycompress + nomail + notifempty + noolddir + rotate 12 + sharedscripts + size=5M + postrotate + /usr/sbin/invoke-rc.d --quiet slurm-llnl-slurmdbd reconfig >/dev/null + endscript +} --- slurm-llnl-1.3.13.orig/debian/slurm-llnl.logrotate +++ slurm-llnl-1.3.13/debian/slurm-llnl.logrotate @@ -0,0 +1,16 @@ +/var/log/slurm-llnl/slurmd*.log /var/log/slurm-llnl/slurmctld*.log { + compress + missingok + nocopytruncate + nocreate + nodelaycompress + nomail + notifempty + noolddir + rotate 12 + sharedscripts + size=5M + postrotate + /usr/sbin/invoke-rc.d --quiet slurm-llnl reconfig >/dev/null + endscript +} --- slurm-llnl-1.3.13.orig/debian/slurm-llnl.preinst +++ slurm-llnl-1.3.13/debian/slurm-llnl.preinst @@ -0,0 +1,61 @@ +#!/bin/sh +# preinst script for munge +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install) + if [ $(id -u slurm 2>/dev/null) ]; then + SLURMUID=$(id -u slurm 2>/dev/null) + SLURMGID=$(id -g slurm 2>/dev/null) + if [ "$SLURMUID" != "64030" ] || [ "$SLURMGID" != "64030" ] ; then + deluser --quiet slurm + adduser --quiet --system --group --uid 64030 --no-create-home slurm + fi + else + adduser --quiet --system --group --uid 64030 --no-create-home slurm + fi + ;; + + upgrade) + if [ $(id -u slurm 2>/dev/null) ]; then + SLURMUID=$(id -u slurm 2>/dev/null) + SLURMGID=$(id -g slurm 2>/dev/null) + if [ "$SLURMUID" != "64030" ] || [ "$SLURMGID" != "64030" ] ; then + deluser --quiet slurm + adduser --quiet --system --group --uid 64030 --no-create-home slurm + fi + else + adduser --quiet --system --group --uid 64030 --no-create-home slurm + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- slurm-llnl-1.3.13.orig/debian/slurm-llnl.postinst +++ slurm-llnl-1.3.13/debian/slurm-llnl.postinst @@ -0,0 +1,44 @@ +#!/bin/sh +# postinst script for slurm-llnl +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +case "$1" in + configure) + chown slurm:slurm /var/run/slurm-llnl + chown slurm:slurm /var/run/slurm-llnl/slurmctld + chown slurm:slurm /var/log/slurm-llnl + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- slurm-llnl-1.3.13.orig/debian/slurm-llnl.dirs +++ slurm-llnl-1.3.13/debian/slurm-llnl.dirs @@ -0,0 +1,10 @@ +usr/sbin +usr/bin +usr/share/man/man1 +usr/share/man/man5 +usr/share/man/man8 +etc/slurm-llnl +var/run/slurm-llnl +var/run/slurm-llnl/slurmd +var/run/slurm-llnl/slurmctld +var/log/slurm-llnl --- slurm-llnl-1.3.13.orig/debian/slurm-llnl-doc.doc-base +++ slurm-llnl-1.3.13/debian/slurm-llnl-doc.doc-base @@ -0,0 +1,11 @@ +Document: slurm-llnl +Title: Debian slurm-llnl Manual +Author: Slurm Team +Abstract: The manual of SLURM, the Simple Linux Utility for Resource + Management, an open-source cluster resource management + and job scheduling tool. +Section: System/Administration + +Format: HTML +Index: /usr/share/doc/slurm-llnl-doc/html/slurm.html +Files: /usr/share/doc/slurm-llnl-doc/html/*.html --- slurm-llnl-1.3.13.orig/debian/slurm-llnl-slurmdbd.examples +++ slurm-llnl-1.3.13/debian/slurm-llnl-slurmdbd.examples @@ -0,0 +1 @@ +debian/slurmdbd.conf.simple --- slurm-llnl-1.3.13.orig/debian/changelog +++ slurm-llnl-1.3.13/debian/changelog @@ -0,0 +1,307 @@ +slurm-llnl (1.3.13-1) unstable; urgency=low + + * New upstream release (Closes: #511511) + + -- Gennaro Oliva Wed, 14 Jan 2009 09:25:10 +0100 + +slurm-llnl (1.3.12-1) unstable; urgency=low + + * New upstream release + + -- Gennaro Oliva Thu, 08 Jan 2009 10:41:16 +0100 + +slurm-llnl (1.3.11-1) unstable; urgency=low + + * New upstream release + + -- Gennaro Oliva Wed, 03 Dec 2008 11:56:28 +0100 + +slurm-llnl (1.3.10-1) unstable; urgency=low + + * New upstream release + * Modified manual pages: sacctmgr.1 + + -- Gennaro Oliva Wed, 05 Nov 2008 11:07:01 +0100 + +slurm-llnl (1.3.9-1) unstable; urgency=low + + * New upstream release + * New watch file with generic versioning + * Modified manual pages: sacctmgr.1, sacct.1, sinfo.1, + slurm_free_job_info_msg.3 and slurm_slurmd_status.3 + * Deleted empty manual page slurm_trigger.3 and its symbolic links: + slurm_{clear,free,get,set}_trigger.3 + + -- Gennaro Oliva Wed, 15 Oct 2008 14:49:27 +0200 + +slurm-llnl (1.3.8-1) unstable; urgency=low + + * New upstream release + + -- Gennaro Oliva Thu, 04 Sep 2008 00:40:20 +0200 + +slurm-llnl (1.3.7-1) unstable; urgency=low + + * New upstream release + * New watch file for new naming convention of development snapshots + * Added libpmi0 and libslurm13 symbols files + + -- Gennaro Oliva Fri, 29 Aug 2008 01:07:14 +0200 + +slurm-llnl (1.3.6-1) unstable; urgency=low + + * New upstream release + + -- Gennaro Oliva Thu, 24 Jul 2008 16:29:28 +0200 + +slurm-llnl (1.3.5-1) unstable; urgency=low + + * New upstream release + * Changed watch file to avoid development snapshot download + + -- Gennaro Oliva Tue, 15 Jul 2008 14:31:36 +0200 + +slurm-llnl (1.3.4-1) unstable; urgency=low + + * New upstream release + * Upgraded to standards version 3.8.0 + * Homepage field added to the control file + + -- Gennaro Oliva Tue, 24 Jun 2008 11:13:22 +0200 + +slurm-llnl (1.3.3-1) unstable; urgency=low + + * New upstream release + * Removed patches to src/slurmctd/controller.c src/slurmdbd/slurmdbd.c + doc/man/man1/sacctmgr.1 included to upstream + * Edited watch file to seek for 1.3 releases + * doc/man/man1/salloc.1 doc/man/man1/sbatch.1 doc/man/man5/slurm.conf.5 + patched to improve formatting and avoid manual warnings + + -- Gennaro Oliva Fri, 30 May 2008 13:11:30 +0200 + +slurm-llnl (1.3.2-1) unstable; urgency=low + + * New upstream major release. + * New slurmdbd package. + * init.d script modified to check if configuration file is for version 1.2 + * Installation script renamed to slurm-llnl.{pre,post}{inst,rm} + * Sample slurm-resume.sh script to use with ResumeProgram + * Sample slurm-suspend.sh script to use with SuspendProgram + * New sample configuration file updated to version 1.3 + * New html automatic configuration tool updated to version 1.3 + * New build dependency for postgres and mysql development files + * Added log files to be stored in /var/log/slurm-llnl + * Added logrotate for log files + * Added patch to slurmctld in order to correctly support SIGHUP + * Added patch to slurmdbd in order to correctly support SIGHUP + * slurm-llnl.init.d modified in order to use the correct pidfile + * slurm-llnl.init.d check openssl vulnerabilty + * slurm-llnl.init.d check for key only on the controller and for cert on all + the slurmd nodes only if cryptotype is openssl + * slurm-llnl.init.d seek for key and cert in the location specified in the + configuration file (not necessarly in /etc/slurm-llnl) + * Added patch to sacctmgr.1 manual page to correct hyphens where + minus signs were intended + * Removed bashism from installation and init.d scripts + + -- Gennaro Oliva Wed, 28 May 2008 10:49:49 +0200 + +slurm-llnl (1.3.0-1) unstable; urgency=low + + * New upstream release + + -- Gennaro Oliva Mon, 31 Mar 2008 00:18:47 +0200 + +slurm-llnl (1.2.25-1) unstable; urgency=low + + * New upstream release + + -- Gennaro Oliva Fri, 21 Mar 2008 09:05:53 +0100 + +slurm-llnl (1.2.24-1) unstable; urgency=low + + * New upstream release + + -- Gennaro Oliva Fri, 07 Mar 2008 15:41:43 +0100 + +slurm-llnl (1.2.23-1) unstable; urgency=low + + * New upstream release + + -- Gennaro Oliva Sun, 17 Feb 2008 12:41:13 +0100 + +slurm-llnl (1.2.22-1) unstable; urgency=low + + * New Upstream Release + * Modified watch file to search for updated 1.2.X version + + -- Gennaro Oliva Fri, 01 Feb 2008 15:59:18 +0100 + +slurm-llnl (1.2.21-1) unstable; urgency=low + + * New upstream release + * Added support for uscan (Closes: #454317) thanks to Manuel Prinz + * Solve preinst failure when upgrading and the user slurm does not + exist (Closes: #459618) thanks to Manuel Prinz + + -- Gennaro Oliva Mon, 14 Jan 2008 15:06:12 +0100 + +slurm-llnl (1.2.20-1) unstable; urgency=low + + * New Upstream Release + + -- Gennaro Oliva Tue, 04 Dec 2007 15:38:55 +0100 + +slurm-llnl (1.2.19-1) unstable; urgency=low + + * New upstream available + + -- Gennaro Oliva Fri, 02 Nov 2007 12:31:16 +0100 + +slurm-llnl (1.2.18-1) unstable; urgency=low + + * New upstream version + * Removed useless libglade2-dev, libgtk2.0-dev dependencies for the + sview package + + -- Gennaro Oliva Thu, 11 Oct 2007 12:06:47 +0200 + +slurm-llnl (1.2.17-1) unstable; urgency=low + + * New upstream release, 1.2.16 is missing because I was waiting for + a uid in the range 60000-64999 to be assigned to the slurm user + * Using fixed uid 64030 for the slurm user + + -- Gennaro Oliva Fri, 28 Sep 2007 16:42:14 +0200 + +slurm-llnl (1.2.15-2) unstable; urgency=low + + * Added slurm-llnl dependency for sview to solve old packages + installation conflict and avoid problems if configuration is missing + + -- Gennaro Oliva Wed, 12 Sep 2007 14:41:26 +0200 + +slurm-llnl (1.2.15-1) unstable; urgency=low + + * New upstream release + * sview moved to a separate package (slurm-llnl-sview) to avoid gtk + dependency for slurm-llnl package + + -- Gennaro Oliva Sat, 01 Sep 2007 02:10:40 +0200 + +slurm-llnl (1.2.14-1) unstable; urgency=low + + * New upstream available, 13 and 12 are missing because I was on + vacation + * Fixed debian/control packages Sections (Closes: #438906) thanks to + Manuel Prinz + * Fixed debian/control plugins plugins-dev packages descriptions + (Closes: #435133) thanks to Anton Blanchard + + -- Gennaro Oliva Thu, 23 Aug 2007 21:34:14 +0200 + +slurm-llnl (1.2.11-1) unstable; urgency=low + + * debian/copyright edited by Dirk + + -- Gennaro Oliva Fri, 20 Jul 2007 21:39:40 +0200 + +slurm-llnl (1.2.11~20070720-1) unstable; urgency=low + + * Added OpenSSL exception to debian/copyright + + -- Gennaro Oliva Fri, 20 Jul 2007 16:09:20 +0200 + +slurm-llnl (1.2.11~20070713-1) unstable; urgency=low + + * New upstream release + + -- Gennaro Oliva Fri, 13 Jul 2007 21:17:05 +0200 + +slurm-llnl (1.2.9-20070617) unstable; urgency=low + + * Switch to the slurm-llnl namespace with sysconfdir /etc/slurm-llnl and + localstatedir /var/run/slurm-llnl + * Consequent modification of postinst, postrm, slurm-llnl.dirs, + slurm-llnl-configurator.html + * Removed service stop in the preinst upgrade case to avoid the double + stop + * Naive sample configuration with two hosts among the examples + + -- Gennaro Oliva Sun, 17 Jun 2007 10:41:48 +0200 + +slurm-llnl (1.2.9-20070610) unstable; urgency=low + + * New upstream version availabe + * Lintian warning manpage-has-errors-from-man for srun.1 and spank.8 has + been removed + + -- Gennaro Oliva Sun, 10 Jun 2007 01:17:37 +0200 + +slurm-llnl (1.2.7-20070606) unstable; urgency=low + + * Added "sleep 1" between start and stop to make init.d script restart work + * New copyright file with full listing of authors, copyrights and licenses + + -- Gennaro Oliva Wed, 06 Jun 2007 00:20:26 +0200 + +slurm-llnl (1.2.7-20070520) unstable; urgency=low + + * New upstream release available + * Debconf configuration removed + * LSB functions for the init script + * Init script checks configuration and point to README.Debian + * slurm-llnl-configurator.html created from configurator.html + * old fsf address fixed + * preinst upgrade adduser (for people upgrading from old version) + + -- Gennaro Oliva Thu, 24 May 2007 23:15:03 +0200 + +slurm-llnl (1.1.20-1) unstable; urgency=low + + * New upstream version available + * Built on munge not using opessl + * Using 1.1.13-1 sample configuration file beacuse new upstream config + file is not well commented + + -- Gennaro Oliva Tue, 28 Nov 2006 09:00:31 +0100 + +slurm-llnl (1.1.13-1) unstable; urgency=low + + * New upstream version available + + -- Gennaro Oliva Sun, 1 Oct 2006 22:49:47 +0200 + +slurm-llnl (1.1.10-1) unstable; urgency=low + + * New upstream version available + + -- Gennaro Oliva Sat, 2 Sep 2006 15:30:43 +0200 + +slurm-llnl (1.1.4-1) unstable; urgency=low + + * New upstream version available + + -- Gennaro Oliva Mon, 17 Jul 2006 17:59:00 +0200 + +slurm-llnl (1.1.3-1) unstable; urgency=low + + * New upstream version available + * Removed bluegene binaries + + -- Gennaro Oliva Wed, 12 Jul 2006 17:18:57 +0200 + +slurm-llnl (1.1.1-1) unstable; urgency=low + + * New upstream version available + * Debconf script for installation + * Fixed Build-Dependencies with curses + + -- Gennaro Oliva Tue, 11 Jul 2006 22:29:25 +0200 + +slurm-llnl (1.0.1-1) unstable; urgency=low + + * Initial release Closes: #351688 + + -- Gennaro Oliva Tue, 2 May 2006 01:10:43 +0200 --- slurm-llnl-1.3.13.orig/debian/slurm-llnl-slurmdbd.init.d +++ slurm-llnl-1.3.13/debian/slurm-llnl-slurmdbd.init.d @@ -0,0 +1,163 @@ +#!/bin/sh +# +# chkconfig: 345 90 10 +# description: SLURMDBD is a database server interface for \ +# SLURM (Simple Linux Utility for Resource Management). +# +# processname: /usr/sbin/slurmdbd +# pidfile: /var/run/slurm-llnl/slurmdbd.pid +# +# config: /etc/sysconfig/slurm +# +### BEGIN INIT INFO +# Provides: slurmbd +# Required-Start: $local_fs $syslog $network $named munge +# Required-Stop: $local_fs $syslog $network $named munge +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Short-Description: SLURM database daemon +# Description: Start slurm to provide database server for SLURM +### END INIT INFO + +SBINDIR=/usr/sbin +CONFFILE="/etc/slurm-llnl/slurmdbd.conf" +DESCRIPTION="slurm-llnl database server interface" +NAME="slurmdbd" + +# Source slurm specific configuration +if [ -f /etc/default/slurm-llnl ] ; then + . /etc/default/slurm-llnl +else + SLURMDBD_OPTIONS="" +fi + +#Checking for configuration file +if [ ! -f $CONFFILE ] ; then + if [ -n "$(echo $1 | grep start)" ] ; then + echo Not starting slurmdbd + fi + echo $CONFFILE not found + exit 0 +fi + +#Checking for lsb init function +if [ -f /lib/lsb/init-functions ] ; then + . /lib/lsb/init-functions +else + echo Can\'t find lsb init functions + exit 1 +fi + +getpidfile() { + dpidfile=`grep PidFile $CONFFILE | grep -v '^ *#'` + if [ $? = 0 ]; then + dpidfile=${dpidfile##*=} + dpidfile=${dpidfile%#*} + else + dpidfile=/var/run/slurm-llnl/slurmdbd.pid + fi + + echo $dpidfile +} + +start() { + unset HOME MAIL USER USERNAME + log_daemon_msg "Starting $DESCRIPTION" + STARTERRORMSG="$(start-stop-daemon --start --oknodo \ + --exec "$SBINDIR/$NAME" -- $SLURMDBD_OPTIONS 2>&1)" + STATUS=$? + if [ "$STARTERRORMSG" != "" ] ; then + STARTERRORMSG=$(echo $STARTERRORMSG | sed "s/.$//") + log_progress_msg $STARTERRORMSG + else + log_progress_msg $NAME + fi + touch /var/lock/$NAME + log_end_msg $STATUS +} + +stop() { + log_daemon_msg "Stopping $DESCRIPTION" + STOPERRORMSG="$(start-stop-daemon --oknodo --stop -s TERM \ + --exec "$SBINDIR/$NAME" 2>&1)" + STATUS=$? + if [ "$STOPERRORMSG" != "" ] ; then + STOPERRORMSG=$(echo $STOPERRORMSG | sed "s/.$//") + log_progress_msg $STOPERRORMSG + else + log_progress_msg "$NAME" + fi + log_end_msg $STATUS + rm -f /var/lock/$NAME +} + +slurmstatus() { + base=${1##*/} + + pidfile=$(getpidfile) + + pid=`pidof -o $$ -o $$PPID -o %PPID -x slurmdbd` + + if [ -f $pidfile ]; then + read rpid < $pidfile + if [ "$rpid" != "" -a "$pid" != "" ]; then + for i in $pid ; do + if [ "$i" = "$rpid" ]; then + echo $"slurmdbd (pid $pid) is running..." + return 0 + fi + done + elif [ "$rpid" != "" -a "$pid" = "" ]; then + echo $"slurmdbd is stopped" + return 1 + fi + + fi + + echo $"slurmdbd is stopped" + + return 3 +} + +# +# The pathname substitution in daemon command assumes prefix and +# exec_prefix are same. This is the default, unless the user requests +# otherwise. +# +# Any node can be a slurm controller and/or server. +# +case "$1" in + start) + start + ;; + stop) + stop + ;; + status) + slurmstatus + ;; + restart) + stop + sleep 1 + start + ;; + force-reload) + $0 stop + $0 start + ;; + condrestart) + if [ -f /var/lock/subsys/slurm ]; then + stop + start + fi + ;; + reconfig) + PIDFILE=$(getpidfile) + start-stop-daemon --stop --signal HUP --pidfile \ + "$PIDFILE" --quiet slurmdbd + ;; + *) + echo "Usage: $0 {start|stop|status|restart|condrestart|reconfig}" + exit 1 + ;; +esac --- slurm-llnl-1.3.13.orig/debian/libslurm13.symbols +++ slurm-llnl-1.3.13/debian/libslurm13.symbols @@ -0,0 +1,561 @@ +libslurm.so.13 libslurm13 #MINVER# + client_io_handler_abort@Base 1.3.8 + client_io_handler_create@Base 1.3.8 + client_io_handler_destroy@Base 1.3.8 + client_io_handler_downnodes@Base 1.3.8 + client_io_handler_finish@Base 1.3.8 + client_io_handler_start@Base 1.3.8 + islurm_get_rem_time2__@Base 1.3.8 + islurm_get_rem_time__@Base 1.3.8 + slurm_accept_msg_conn@Base 1.3.8 + slurm_accept_stream@Base 1.3.8 + slurm_acct_storage_fini@Base 1.3.8 + slurm_acct_storage_init@Base 1.3.8 + slurm_addto_char_list@Base 1.3.8 + slurm_allocate_resources@Base 1.3.8 + slurm_allocate_resources_blocking@Base 1.3.8 + slurm_allocation_lookup@Base 1.3.8 + slurm_allocation_lookup_lite@Base 1.3.8 + slurm_allocation_msg_thr_create@Base 1.3.8 + slurm_allocation_msg_thr_destroy@Base 1.3.8 + slurm_api_clear_config@Base 1.3.8 + slurm_api_set_conf_file@Base 1.3.8 + slurm_api_set_default_config@Base 1.3.8 + slurm_api_version@Base 1.3.8 + slurm_arg_count@Base 1.3.8 + slurm_arg_idx_by_name@Base 1.3.8 + slurm_arg_name_by_idx@Base 1.3.8 + slurm_auth_context_create@Base 1.3.8 + slurm_auth_fini@Base 1.3.8 + slurm_auth_get_arg_desc@Base 1.3.8 + slurm_auth_init@Base 1.3.8 + slurm_bit_alloc@Base 1.3.8 + slurm_bit_and@Base 1.3.8 + slurm_bit_clear@Base 1.3.8 + slurm_bit_clear_count@Base 1.3.8 + slurm_bit_copy@Base 1.3.8 + slurm_bit_copybits@Base 1.3.8 + slurm_bit_equal@Base 1.3.8 + slurm_bit_ffc@Base 1.3.8 + slurm_bit_ffs@Base 1.3.8 + slurm_bit_fill_gaps@Base 1.3.8 + slurm_bit_fls@Base 1.3.8 + slurm_bit_fmt@Base 1.3.8 + slurm_bit_fmt_binmask@Base 1.3.8 + slurm_bit_fmt_hexmask@Base 1.3.8 + slurm_bit_free@Base 1.3.8 + slurm_bit_get_bit_num@Base 1.3.8 + slurm_bit_get_pos_num@Base 1.3.8 + slurm_bit_nclear@Base 1.3.8 + slurm_bit_nffc@Base 1.3.8 + slurm_bit_nffs@Base 1.3.8 + slurm_bit_noc@Base 1.3.8 + slurm_bit_not@Base 1.3.8 + slurm_bit_nset@Base 1.3.8 + slurm_bit_nset_max_count@Base 1.3.8 + slurm_bit_or@Base 1.3.8 + slurm_bit_overlap@Base 1.3.8 + slurm_bit_pick_cnt@Base 1.3.8 + slurm_bit_realloc@Base 1.3.8 + slurm_bit_rotate@Base 1.3.8 + slurm_bit_rotate_copy@Base 1.3.8 + slurm_bit_set@Base 1.3.8 + slurm_bit_set_count@Base 1.3.8 + slurm_bit_size@Base 1.3.8 + slurm_bit_super_set@Base 1.3.8 + slurm_bit_test@Base 1.3.8 + slurm_bit_unfmt@Base 1.3.8 + slurm_bit_unfmt_binmask@Base 1.3.8 + slurm_bit_unfmt_hexmask@Base 1.3.8 + slurm_bitfmt2int@Base 1.3.8 + slurm_checkpoint_able@Base 1.3.8 + slurm_checkpoint_complete@Base 1.3.8 + slurm_checkpoint_create@Base 1.3.8 + slurm_checkpoint_disable@Base 1.3.8 + slurm_checkpoint_enable@Base 1.3.8 + slurm_checkpoint_error@Base 1.3.8 + slurm_checkpoint_restart@Base 1.3.8 + slurm_checkpoint_task_complete@Base 1.3.8 + slurm_checkpoint_vacate@Base 1.3.8 + slurm_clear_trigger@Base 1.3.8 + slurm_close_accepted_conn@Base 1.3.8 + slurm_close_slurmdbd_conn@Base 1.3.8 + slurm_close_stream@Base 1.3.8 + slurm_complete_job@Base 1.3.8 + slurm_conf_destroy@Base 1.3.8 + slurm_conf_downnodes_array@Base 1.3.8 + slurm_conf_expand_slurmd_path@Base 1.3.8 + slurm_conf_get_addr@Base 1.3.8 + slurm_conf_get_aliased_nodename@Base 1.3.8 + slurm_conf_get_cpus_sct@Base 1.3.8 + slurm_conf_get_hostname@Base 1.3.8 + slurm_conf_get_nodename@Base 1.3.8 + slurm_conf_get_port@Base 1.3.8 + slurm_conf_init@Base 1.3.8 + slurm_conf_install_fork_handlers@Base 1.3.8 + slurm_conf_lock@Base 1.3.8 + slurm_conf_mutex_init@Base 1.3.8 + slurm_conf_nodename_array@Base 1.3.8 + slurm_conf_options@Base 1.3.8 + slurm_conf_partition_array@Base 1.3.8 + slurm_conf_reinit@Base 1.3.8 + slurm_conf_unlock@Base 1.3.8 + slurm_create_buf@Base 1.3.8 + slurm_cred_begin_expiration@Base 1.3.8 + slurm_cred_copy@Base 1.3.8 + slurm_cred_create@Base 1.3.8 + slurm_cred_creator_ctx_create@Base 1.3.8 + slurm_cred_ctx_destroy@Base 1.3.8 + slurm_cred_ctx_get@Base 1.3.8 + slurm_cred_ctx_key_update@Base 1.3.8 + slurm_cred_ctx_pack@Base 1.3.8 + slurm_cred_ctx_set@Base 1.3.8 + slurm_cred_ctx_unpack@Base 1.3.8 + slurm_cred_destroy@Base 1.3.8 + slurm_cred_faker@Base 1.3.8 + slurm_cred_free_args@Base 1.3.8 + slurm_cred_get_alloc_lps@Base 1.3.8 + slurm_cred_get_args@Base 1.3.8 + slurm_cred_get_signature@Base 1.3.8 + slurm_cred_handle_reissue@Base 1.3.8 + slurm_cred_insert_jobid@Base 1.3.8 + slurm_cred_jobid_cached@Base 1.3.8 + slurm_cred_pack@Base 1.3.8 + slurm_cred_print@Base 1.3.8 + slurm_cred_revoke@Base 1.3.8 + slurm_cred_revoked@Base 1.3.8 + slurm_cred_rewind@Base 1.3.8 + slurm_cred_unpack@Base 1.3.8 + slurm_cred_verifier_ctx_create@Base 1.3.8 + slurm_cred_verify@Base 1.3.8 + slurm_crypto_fini@Base 1.3.8 + slurm_debug2@Base 1.3.8 + slurm_debug3@Base 1.3.8 + slurm_debug@Base 1.3.8 + slurm_delete_partition@Base 1.3.8 + slurm_destroy_char@Base 1.3.8 + slurm_dump_cleanup_list@Base 1.3.8 + slurm_env_array_append@Base 1.3.8 + slurm_env_array_append_fmt@Base 1.3.8 + slurm_env_array_copy@Base 1.3.8 + slurm_env_array_create@Base 1.3.8 + slurm_env_array_free@Base 1.3.8 + slurm_env_array_merge@Base 1.3.8 + slurm_env_array_overwrite@Base 1.3.8 + slurm_env_array_overwrite_fmt@Base 1.3.8 + slurm_error@Base 1.3.8 + slurm_fatal@Base 1.3.8 + slurm_fatal_add_cleanup@Base 1.3.8 + slurm_fatal_add_cleanup_job@Base 1.3.8 + slurm_fatal_cleanup@Base 1.3.8 + slurm_fatal_remove_cleanup@Base 1.3.8 + slurm_fatal_remove_cleanup_job@Base 1.3.8 + slurm_fd_read_n@Base 1.3.8 + slurm_fd_set_blocking@Base 1.3.8 + slurm_fd_set_nonblocking@Base 1.3.8 + slurm_fd_write_n@Base 1.3.8 + slurm_free_accounting_update_msg@Base 1.3.8 + slurm_free_buf@Base 1.3.8 + slurm_free_checkpoint_comp_msg@Base 1.3.8 + slurm_free_checkpoint_msg@Base 1.3.8 + slurm_free_checkpoint_resp_msg@Base 1.3.8 + slurm_free_checkpoint_task_comp_msg@Base 1.3.8 + slurm_free_checkpoint_tasks_msg@Base 1.3.8 + slurm_free_complete_batch_script_msg@Base 1.3.8 + slurm_free_complete_job_allocation_msg@Base 1.3.8 + slurm_free_ctl_conf@Base 1.3.8 + slurm_free_delete_part_msg@Base 1.3.8 + slurm_free_epilog_complete_msg@Base 1.3.8 + slurm_free_file_bcast_msg@Base 1.3.8 + slurm_free_get_kvs_msg@Base 1.3.8 + slurm_free_job_alloc_info_msg@Base 1.3.8 + slurm_free_job_alloc_info_response_msg@Base 1.3.8 + slurm_free_job_desc_msg@Base 1.3.8 + slurm_free_job_id_msg@Base 1.3.8 + slurm_free_job_id_request_msg@Base 1.3.8 + slurm_free_job_id_response_msg@Base 1.3.8 + slurm_free_job_info@Base 1.3.8 + slurm_free_job_info_members@Base 1.3.8 + slurm_free_job_info_msg@Base 1.3.8 + slurm_free_job_info_request_msg@Base 1.3.8 + slurm_free_job_launch_msg@Base 1.3.8 + slurm_free_job_notify_msg@Base 1.3.8 + slurm_free_job_step_create_request_msg@Base 1.3.8 + slurm_free_job_step_create_response_msg@Base 1.3.8 + slurm_free_job_step_id_msg@Base 1.3.8 + slurm_free_job_step_info_request_msg@Base 1.3.8 + slurm_free_job_step_info_response_msg@Base 1.3.8 + slurm_free_job_step_kill_msg@Base 1.3.8 + slurm_free_kill_job_msg@Base 1.3.8 + slurm_free_kill_tasks_msg@Base 1.3.8 + slurm_free_kvs_comm_set@Base 1.3.8 + slurm_free_last_update_msg@Base 1.3.8 + slurm_free_launch_tasks_request_msg@Base 1.3.8 + slurm_free_launch_tasks_response_msg@Base 1.3.8 + slurm_free_msg@Base 1.3.8 + slurm_free_msg_data@Base 1.3.8 + slurm_free_node_info_msg@Base 1.3.8 + slurm_free_node_info_request_msg@Base 1.3.8 + slurm_free_node_registration_status_msg@Base 1.3.8 + slurm_free_node_select_info_msg@Base 1.3.8 + slurm_free_node_select_msg@Base 1.3.8 + slurm_free_part_info_request_msg@Base 1.3.8 + slurm_free_partition_info_msg@Base 1.3.8 + slurm_free_reattach_tasks_request_msg@Base 1.3.8 + slurm_free_reattach_tasks_response_msg@Base 1.3.8 + slurm_free_resource_allocation_response_msg@Base 1.3.8 + slurm_free_return_code_msg@Base 1.3.8 + slurm_free_set_debug_level_msg@Base 1.3.8 + slurm_free_shutdown_msg@Base 1.3.8 + slurm_free_signal_job_msg@Base 1.3.8 + slurm_free_slurmd_status@Base 1.3.8 + slurm_free_srun_exec_msg@Base 1.3.8 + slurm_free_srun_job_complete_msg@Base 1.3.8 + slurm_free_srun_node_fail_msg@Base 1.3.8 + slurm_free_srun_ping_msg@Base 1.3.8 + slurm_free_srun_timeout_msg@Base 1.3.8 + slurm_free_srun_user_msg@Base 1.3.8 + slurm_free_stat_jobacct_msg@Base 1.3.8 + slurm_free_step_complete_msg@Base 1.3.8 + slurm_free_submit_response_response_msg@Base 1.3.8 + slurm_free_suspend_msg@Base 1.3.8 + slurm_free_task_exit_msg@Base 1.3.8 + slurm_free_task_user_managed_io_stream_msg@Base 1.3.8 + slurm_free_trigger_msg@Base 1.3.8 + slurm_free_update_job_time_msg@Base 1.3.8 + slurm_free_update_node_msg@Base 1.3.8 + slurm_free_update_part_msg@Base 1.3.8 + slurm_free_will_run_response_msg@Base 1.3.8 + slurm_get_accounting_storage_enforce@Base 1.3.8 + slurm_get_accounting_storage_host@Base 1.3.8 + slurm_get_accounting_storage_loc@Base 1.3.8 + slurm_get_accounting_storage_pass@Base 1.3.8 + slurm_get_accounting_storage_port@Base 1.3.8 + slurm_get_accounting_storage_type@Base 1.3.8 + slurm_get_accounting_storage_user@Base 1.3.8 + slurm_get_addr@Base 1.3.8 + slurm_get_api_config@Base 1.3.8 + slurm_get_auth_type@Base 1.3.8 + slurm_get_avail_procs@Base 1.3.8 + slurm_get_batch_start_timeout@Base 1.3.12 + slurm_get_checkpoint_file_path@Base 1.3.8 + slurm_get_checkpoint_type@Base 1.3.8 + slurm_get_cluster_name@Base 1.3.8 + slurm_get_controller_addr_spec@Base 1.3.8 + slurm_get_crypto_type@Base 1.3.8 + slurm_get_def_mem_per_task@Base 1.3.8 + slurm_get_end_time@Base 1.3.8 + slurm_get_env_timeout@Base 1.3.8 + slurm_get_epilog_msg_time@Base 1.3.8 + slurm_get_errno@Base 1.3.8 + slurm_get_fast_schedule@Base 1.3.8 + slurm_get_health_check_program@Base 1.3.8 + slurm_get_ip_str@Base 1.3.8 + slurm_get_is_association_based_accounting@Base 1.3.9 + slurm_get_job_steps@Base 1.3.8 + slurm_get_jobacct_gather_freq@Base 1.3.8 + slurm_get_jobacct_gather_type@Base 1.3.8 + slurm_get_jobcomp_host@Base 1.3.8 + slurm_get_jobcomp_loc@Base 1.3.8 + slurm_get_jobcomp_pass@Base 1.3.8 + slurm_get_jobcomp_port@Base 1.3.8 + slurm_get_jobcomp_type@Base 1.3.8 + slurm_get_jobcomp_user@Base 1.3.8 + slurm_get_kvs_comm_set@Base 1.3.8 + slurm_get_max_mem_per_task@Base 1.3.8 + slurm_get_mpi_default@Base 1.3.8 + slurm_get_msg_timeout@Base 1.3.8 + slurm_get_peer_addr@Base 1.3.8 + slurm_get_plugin_dir@Base 1.3.8 + slurm_get_private_data@Base 1.3.8 + slurm_get_proctrack_type@Base 1.3.8 + slurm_get_propagate_prio_process@Base 1.3.8 + slurm_get_rem_time@Base 1.3.8 + slurm_get_return_code@Base 1.3.8 + slurm_get_root_filter@Base 1.3.8 + slurm_get_sched_port@Base 1.3.8 + slurm_get_sched_type@Base 1.3.8 + slurm_get_select_jobinfo@Base 1.3.8 + slurm_get_select_type@Base 1.3.8 + slurm_get_slurm_user_id@Base 1.3.8 + slurm_get_slurmd_port@Base 1.3.8 + slurm_get_srun_epilog@Base 1.3.8 + slurm_get_srun_prolog@Base 1.3.8 + slurm_get_state_save_location@Base 1.3.8 + slurm_get_stream_addr@Base 1.3.8 + slurm_get_switch_type@Base 1.3.8 + slurm_get_task_epilog@Base 1.3.8 + slurm_get_task_plugin@Base 1.3.8 + slurm_get_task_plugin_param@Base 1.3.8 + slurm_get_task_prolog@Base 1.3.8 + slurm_get_track_wckey@Base 1.3.12 + slurm_get_tree_width@Base 1.3.8 + slurm_get_triggers@Base 1.3.8 + slurm_get_wait_time@Base 1.3.8 + slurm_getenvp@Base 1.3.8 + slurm_grow_buf@Base 1.3.8 + slurm_hostlist_copy@Base 1.3.8 + slurm_hostlist_count@Base 1.3.8 + slurm_hostlist_create@Base 1.3.8 + slurm_hostlist_delete@Base 1.3.8 + slurm_hostlist_delete_host@Base 1.3.8 + slurm_hostlist_delete_nth@Base 1.3.8 + slurm_hostlist_deranged_string@Base 1.3.8 + slurm_hostlist_destroy@Base 1.3.8 + slurm_hostlist_find@Base 1.3.8 + slurm_hostlist_iterator_create@Base 1.3.8 + slurm_hostlist_iterator_destroy@Base 1.3.8 + slurm_hostlist_iterator_reset@Base 1.3.8 + slurm_hostlist_next@Base 1.3.8 + slurm_hostlist_next_range@Base 1.3.8 + slurm_hostlist_nth@Base 1.3.8 + slurm_hostlist_pop@Base 1.3.8 + slurm_hostlist_pop_range@Base 1.3.8 + slurm_hostlist_push@Base 1.3.8 + slurm_hostlist_push_host@Base 1.3.8 + slurm_hostlist_push_list@Base 1.3.8 + slurm_hostlist_ranged_string@Base 1.3.8 + slurm_hostlist_remove@Base 1.3.8 + slurm_hostlist_shift@Base 1.3.8 + slurm_hostlist_shift_range@Base 1.3.8 + slurm_hostlist_soft@Base 1.3.8 + slurm_hostlist_uniq@Base 1.3.8 + slurm_hostset_copy@Base 1.3.8 + slurm_hostset_count@Base 1.3.8 + slurm_hostset_create@Base 1.3.8 + slurm_hostset_delete@Base 1.3.8 + slurm_hostset_destroy@Base 1.3.8 + slurm_hostset_find@Base 1.3.8 + slurm_hostset_insert@Base 1.3.8 + slurm_hostset_nth@Base 1.3.8 + slurm_hostset_shift@Base 1.3.8 + slurm_hostset_shift_range@Base 1.3.8 + slurm_hostset_within@Base 1.3.8 + slurm_info@Base 1.3.8 + slurm_init_buf@Base 1.3.8 + slurm_init_job_desc_msg@Base 1.3.8 + slurm_init_msg_engine@Base 1.3.8 + slurm_init_msg_engine_port@Base 1.3.8 + slurm_init_part_desc_msg@Base 1.3.8 + slurm_int_and_set_count@Base 1.3.8 + slurm_job_node_ready@Base 1.3.8 + slurm_job_step_create@Base 1.3.8 + slurm_job_step_layout_free@Base 1.3.8 + slurm_job_step_layout_get@Base 1.3.8 + slurm_job_will_run@Base 1.3.8 + slurm_jobacct_gather_fini@Base 1.3.8 + slurm_jobacct_gather_init@Base 1.3.8 + slurm_jobinfo_ctx_get@Base 1.3.8 + slurm_kill_job@Base 1.3.8 + slurm_kill_job_step@Base 1.3.8 + slurm_list_append@Base 1.3.8 + slurm_list_append_list@Base 1.3.8 + slurm_list_count@Base 1.3.8 + slurm_list_create@Base 1.3.8 + slurm_list_delete_all@Base 1.3.8 + slurm_list_delete_item@Base 1.3.8 + slurm_list_dequeue@Base 1.3.8 + slurm_list_destroy@Base 1.3.8 + slurm_list_enqueue@Base 1.3.8 + slurm_list_find@Base 1.3.8 + slurm_list_find_first@Base 1.3.8 + slurm_list_for_each@Base 1.3.8 + slurm_list_insert@Base 1.3.8 + slurm_list_install_fork_handlers@Base 1.3.8 + slurm_list_is_empty@Base 1.3.8 + slurm_list_iterator_create@Base 1.3.8 + slurm_list_iterator_destroy@Base 1.3.8 + slurm_list_iterator_reset@Base 1.3.8 + slurm_list_next@Base 1.3.8 + slurm_list_peek@Base 1.3.8 + slurm_list_pop@Base 1.3.8 + slurm_list_prepend@Base 1.3.8 + slurm_list_push@Base 1.3.8 + slurm_list_remove@Base 1.3.8 + slurm_list_sort@Base 1.3.8 + slurm_list_transfer@Base 1.3.8 + slurm_listen_stream@Base 1.3.8 + slurm_load_ctl_conf@Base 1.3.8 + slurm_load_job@Base 1.3.8 + slurm_load_jobs@Base 1.3.8 + slurm_load_node@Base 1.3.8 + slurm_load_node_select@Base 1.3.8 + slurm_load_partitions@Base 1.3.8 + slurm_load_slurmd_status@Base 1.3.8 + slurm_log_alter@Base 1.3.8 + slurm_log_fini@Base 1.3.8 + slurm_log_flush@Base 1.3.8 + slurm_log_fp@Base 1.3.8 + slurm_log_has_data@Base 1.3.8 + slurm_log_init@Base 1.3.8 + slurm_log_reinit@Base 1.3.8 + slurm_log_set_fpfx@Base 1.3.8 + slurm_make_time_str@Base 1.3.8 + slurm_msg_t_copy@Base 1.3.8 + slurm_msg_t_init@Base 1.3.8 + slurm_net_accept_stream@Base 1.3.8 + slurm_net_set_low_water@Base 1.3.8 + slurm_net_stream_listen@Base 1.3.8 + slurm_notify_job@Base 1.3.8 + slurm_open_controller_conn@Base 1.3.8 + slurm_open_controller_conn_spec@Base 1.3.8 + slurm_open_msg_conn@Base 1.3.8 + slurm_open_slurmdbd_conn@Base 1.3.8 + slurm_open_stream@Base 1.3.8 + slurm_pack16@Base 1.3.8 + slurm_pack16_array@Base 1.3.8 + slurm_pack32@Base 1.3.8 + slurm_pack32_array@Base 1.3.8 + slurm_pack64@Base 1.3.8 + slurm_pack8@Base 1.3.8 + slurm_pack_msg_no_header@Base 1.3.8 + slurm_pack_slurm_addr@Base 1.3.8 + slurm_pack_slurm_addr_array@Base 1.3.8 + slurm_pack_time@Base 1.3.8 + slurm_packmem@Base 1.3.8 + slurm_packmem_array@Base 1.3.8 + slurm_packstr_array@Base 1.3.8 + slurm_parser@Base 1.3.8 + slurm_perror@Base 1.3.8 + slurm_pid2jobid@Base 1.3.8 + slurm_ping@Base 1.3.8 + slurm_pmi_finalize@Base 1.3.8 + slurm_print_ctl_conf@Base 1.3.8 + slurm_print_job_info@Base 1.3.8 + slurm_print_job_info_msg@Base 1.3.8 + slurm_print_job_step_info@Base 1.3.8 + slurm_print_job_step_info_msg@Base 1.3.8 + slurm_print_launch_task_msg@Base 1.3.8 + slurm_print_node_info_msg@Base 1.3.8 + slurm_print_node_table@Base 1.3.8 + slurm_print_partition_info@Base 1.3.8 + slurm_print_partition_info_msg@Base 1.3.8 + slurm_print_slurm_addr@Base 1.3.8 + slurm_print_slurmd_status@Base 1.3.8 + slurm_read_hostfile@Base 1.3.8 + slurm_read_stream@Base 1.3.8 + slurm_read_stream_timeout@Base 1.3.8 + slurm_receive_msg@Base 1.3.8 + slurm_receive_msg_and_forward@Base 1.3.8 + slurm_receive_msgs@Base 1.3.8 + slurm_reconfigure@Base 1.3.8 + slurm_requeue@Base 1.3.8 + slurm_resume@Base 1.3.8 + slurm_select_fini@Base 1.3.8 + slurm_select_init@Base 1.3.8 + slurm_send_addr_recv_msgs@Base 1.3.8 + slurm_send_kvs_comm_set@Base 1.3.8 + slurm_send_node_msg@Base 1.3.8 + slurm_send_only_controller_msg@Base 1.3.8 + slurm_send_only_node_msg@Base 1.3.8 + slurm_send_rc_msg@Base 1.3.8 + slurm_send_recv_controller_msg@Base 1.3.8 + slurm_send_recv_controller_rc_msg@Base 1.3.8 + slurm_send_recv_msgs@Base 1.3.8 + slurm_send_recv_node_msg@Base 1.3.8 + slurm_send_recv_rc_msg_only_one@Base 1.3.8 + slurm_send_recv_slurmdbd_msg@Base 1.3.8 + slurm_send_slurmdbd_msg@Base 1.3.8 + slurm_send_slurmdbd_recv_rc_msg@Base 1.3.8 + slurm_set_accounting_storage_loc@Base 1.3.8 + slurm_set_accounting_storage_port@Base 1.3.11 + slurm_set_addr@Base 1.3.8 + slurm_set_addr_any@Base 1.3.8 + slurm_set_addr_char@Base 1.3.8 + slurm_set_addr_uint@Base 1.3.8 + slurm_set_api_config@Base 1.3.8 + slurm_set_auth_type@Base 1.3.8 + slurm_set_debug_level@Base 1.3.8 + slurm_set_jobcomp_port@Base 1.3.11 + slurm_set_stream_blocking@Base 1.3.8 + slurm_set_stream_non_blocking@Base 1.3.8 + slurm_set_tree_width@Base 1.3.8 + slurm_set_trigger@Base 1.3.8 + slurm_setenvpf@Base 1.3.8 + slurm_seterrno@Base 1.3.8 + slurm_shutdown@Base 1.3.8 + slurm_shutdown_msg_conn@Base 1.3.8 + slurm_shutdown_msg_engine@Base 1.3.8 + slurm_signal_job@Base 1.3.8 + slurm_signal_job_step@Base 1.3.8 + slurm_sort_char_list_asc@Base 1.3.9 + slurm_sort_char_list_desc@Base 1.3.9 + slurm_sprint_cpu_bind_type@Base 1.3.8 + slurm_sprint_job_info@Base 1.3.8 + slurm_sprint_job_step_info@Base 1.3.8 + slurm_sprint_mem_bind_type@Base 1.3.8 + slurm_sprint_node_table@Base 1.3.8 + slurm_sprint_partition_info@Base 1.3.8 + slurm_step_ctx_create@Base 1.3.8 + slurm_step_ctx_create_no_alloc@Base 1.3.8 + slurm_step_ctx_daemon_per_node_hack@Base 1.3.8 + slurm_step_ctx_destroy@Base 1.3.8 + slurm_step_ctx_get@Base 1.3.8 + slurm_step_ctx_params_t_init@Base 1.3.8 + slurm_step_launch@Base 1.3.8 + slurm_step_launch_abort@Base 1.3.8 + slurm_step_launch_fwd_signal@Base 1.3.8 + slurm_step_launch_params_t_init@Base 1.3.8 + slurm_step_launch_wait_finish@Base 1.3.8 + slurm_step_launch_wait_start@Base 1.3.8 + slurm_step_layout_copy@Base 1.3.8 + slurm_step_layout_create@Base 1.3.8 + slurm_step_layout_destroy@Base 1.3.8 + slurm_step_layout_host_id@Base 1.3.8 + slurm_step_layout_host_name@Base 1.3.8 + slurm_strerror@Base 1.3.8 + slurm_strlcpy@Base 1.3.8 + slurm_submit_batch_job@Base 1.3.8 + slurm_suspend@Base 1.3.8 + slurm_terminate_job@Base 1.3.8 + slurm_terminate_job_step@Base 1.3.8 + slurm_try_xmalloc@Base 1.3.8 + slurm_try_xrealloc@Base 1.3.8 + slurm_unpack16@Base 1.3.8 + slurm_unpack16_array@Base 1.3.8 + slurm_unpack32@Base 1.3.8 + slurm_unpack32_array@Base 1.3.8 + slurm_unpack64@Base 1.3.8 + slurm_unpack8@Base 1.3.8 + slurm_unpack_slurm_addr_array@Base 1.3.8 + slurm_unpack_slurm_addr_no_alloc@Base 1.3.8 + slurm_unpack_time@Base 1.3.8 + slurm_unpackmem@Base 1.3.8 + slurm_unpackmem_array@Base 1.3.8 + slurm_unpackmem_malloc@Base 1.3.8 + slurm_unpackmem_ptr@Base 1.3.8 + slurm_unpackmem_xmalloc@Base 1.3.8 + slurm_unpackstr_array@Base 1.3.8 + slurm_unsetenvp@Base 1.3.8 + slurm_update_job@Base 1.3.8 + slurm_update_node@Base 1.3.8 + slurm_update_partition@Base 1.3.8 + slurm_verbose@Base 1.3.8 + slurm_write_stream@Base 1.3.8 + slurm_write_stream_timeout@Base 1.3.8 + slurm_xassert_failed@Base 1.3.8 + slurm_xbasename@Base 1.3.8 + slurm_xfer_buf_data@Base 1.3.8 + slurm_xfree@Base 1.3.8 + slurm_xmalloc@Base 1.3.8 + slurm_xmemcat@Base 1.3.8 + slurm_xrealloc@Base 1.3.8 + slurm_xshort_hostname@Base 1.3.8 + slurm_xsignal@Base 1.3.8 + slurm_xsignal_block@Base 1.3.8 + slurm_xsignal_save_mask@Base 1.3.8 + slurm_xsignal_set_mask@Base 1.3.8 + slurm_xsignal_sigset_create@Base 1.3.8 + slurm_xsignal_unblock@Base 1.3.8 + slurm_xsize@Base 1.3.8 + slurm_xslurm_strerrorcat@Base 1.3.8 + slurm_xstrcat@Base 1.3.8 + slurm_xstrcatchar@Base 1.3.8 + slurm_xstrdup@Base 1.3.8 + slurm_xstrdup_printf@Base 1.3.8 + slurm_xstrfmtcat@Base 1.3.8 + slurm_xstrftimecat@Base 1.3.8 + slurm_xstring_is_whitespace@Base 1.3.8 + slurm_xstrndup@Base 1.3.8 + slurm_xstrstrip@Base 1.3.9 + slurm_xstrsubstitute@Base 1.3.8 --- slurm-llnl-1.3.13.orig/debian/docs +++ slurm-llnl-1.3.13/debian/docs @@ -0,0 +1,4 @@ +NEWS +README +AUTHORS +RELEASE_NOTES --- slurm-llnl-1.3.13.orig/debian/rules +++ slurm-llnl-1.3.13/debian/rules @@ -0,0 +1,192 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +config.status: configure + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc/slurm-llnl --with-munge --localstatedir=/var/run/slurm-llnl + + +#Architecture +build: build-arch build-indep + +build-arch: build-arch-stamp +build-arch-stamp: config.status + + # Add here commands to compile the arch part of the package. + #$(MAKE) + touch build-arch-stamp + +build-indep: build-indep-stamp +build-indep-stamp: config.status + + # Add here commands to compile the indep part of the package. + #$(MAKE) doc + touch build-indep-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP# + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub + endif + ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess + endif + + + dh_clean + + install: install-indep install-arch + install-indep: + dh_testdir + dh_testroot + dh_clean -k -i + dh_installdirs -i + $(MAKE) -C doc/html install DESTDIR=$(CURDIR)/debian/slurm-llnl-doc + dh_install -pslurm-llnl-doc debian/slurm-llnl-doc/usr/share/doc/slurm-[0-9]*/html usr/share/doc/slurm-llnl-doc + #Install documenation packages file + rm -rf debian/slurm-llnl-doc/usr/share/doc/slurm-[0-9]* + + dh_install -i + + install-arch: + dh_testdir + dh_testroot + dh_clean -k -s + dh_installdirs -s + + # Add here commands to install the arch part of the package into + # debian/tmp. + $(MAKE) install DESTDIR=$(CURDIR)/debian/slurm-llnl + rm -fr debian/slurm-llnl/usr/lib/slurm/src + rm -f debian/slurm-llnl/usr/sbin/slurm_epilog + rm -f debian/slurm-llnl/usr/sbin/slurm_prolog + dh_install debian/slurm-llnl-configurator.html usr/share/doc/slurm-llnl + rm -rf debian/slurm-llnl/usr/share/doc/slurm-[0-9]* + + # pmi packages + dh_install -plibpmi0 debian/slurm-llnl/usr/lib/libpmi.so.* usr/lib + dh_install -plibpmi0-dev debian/slurm-llnl/usr/lib/libpmi.a usr/lib + dh_install -plibpmi0-dev debian/slurm-llnl/usr/lib/libpmi.la usr/lib + dh_install -plibpmi0-dev debian/slurm-llnl/usr/lib/libpmi*.so usr/lib + dh_install -plibpmi0-dev debian/slurm-llnl/usr/include/slurm/pmi.h usr/include/slurm + rm -f debian/slurm-llnl/usr/include/slurm/pmi.h + rm -f debian/slurm-llnl/usr/lib/libpmi* + + # libslurm packages + dh_install -plibslurm13-dev debian/slurm-llnl/usr/include/slurm/* usr/include/slurm + dh_install -plibslurm13-dev debian/slurm-llnl/usr/lib/*.a usr/lib + dh_install -plibslurm13-dev debian/slurm-llnl/usr/lib/lib*.la usr/lib + dh_install -plibslurm13-dev debian/slurm-llnl/usr/lib/lib*.so usr/lib + rm -rf debian/slurm-llnl/usr/share/man/man3/*trigger* + dh_installman -plibslurm13-dev debian/slurm-llnl/usr/share/man/man3/* + dh_install -plibslurm13 debian/slurm-llnl/usr/lib/libslurm.so.* usr/lib + rm -rf debian/slurm-llnl/usr/include + rm -f debian/slurm-llnl/usr/lib/*.a + rm -f debian/slurm-llnl/usr/lib/lib*.la + rm -f debian/slurm-llnl/usr/lib/lib*.so + rm -rf debian/slurm-llnl/usr/share/man/man3 + rm -f debian/slurm-llnl/usr/lib/libslurm.so.* + + #plugins packages + dh_install -pslurm-llnl-basic-plugins debian/slurm-llnl/usr/lib/slurm/*.so usr/lib/slurm + dh_install -pslurm-llnl-basic-plugins-dev debian/slurm-llnl/usr/lib/slurm/*.la usr/lib/slurm + dh_install -pslurm-llnl-basic-plugins-dev debian/slurm-llnl/usr/lib/slurm/*.a usr/lib/slurm + rm -rf debian/slurm-llnl/usr/lib/slurm + rm -rf debian/slurm-llnl/usr/share/doc/slurm-llnl-doc + rm -f debian/slurm-llnl/usr/share/man/man5/bluegene.conf.5 + mv -f debian/slurm-llnl/usr/share/man/man1/slurm.1 \ + debian/slurm-llnl/usr/share/man/man1/slurm-llnl.1 + rm -f debian/slurm-llnl/usr/sbin/sfree + + #sview package + dh_install -pslurm-llnl-sview debian/slurm-llnl/usr/bin/sview usr/bin + dh_installman -pslurm-llnl-sview debian/slurm-llnl/usr/share/man/man1/sview.1 + rm -f debian/slurm-llnl/usr/bin/sview + rm -f debian/slurm-llnl/usr/share/man/man1/sview.1 + + #slurmdbd package + dh_install -pslurm-llnl-slurmdbd debian/slurm-llnl/usr/sbin/slurmdbd usr/sbin + dh_install -pslurm-llnl-slurmdbd debian/slurm-llnl/usr/bin/sacctmgr usr/bin + dh_install -pslurm-llnl-slurmdbd debian/slurm-llnl/usr/share/man/man8/slurmdbd.8 usr/share/man/man8 + dh_install -pslurm-llnl-slurmdbd debian/slurm-llnl/usr/share/man/man5/slurmdbd.conf.5 usr/share/man/man5 + dh_install -pslurm-llnl-slurmdbd debian/slurm-llnl/usr/share/man/man1/sacctmgr.1 usr/share/man/man1 + + rm -f debian/slurm-llnl/usr/sbin/slurmdbd + rm -f debian/slurm-llnl/usr/bin/sacctmgr + rm -f debian/slurm-llnl/usr/share/man/man8/slurmdbd.8 + rm -f debian/slurm-llnl/usr/share/man/man5/slurmdbd.conf.5 + rm -f debian/slurm-llnl/usr/share/man/man1/sacctmgr.1 + + rmdir debian/slurm-llnl/usr/lib + dh_install -s +# Must not depend on anything. This is to be called by +# binary-arch/binary-indep +# in another 'make' thread. +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_installexamples debian/slurm-resume.sh +# dh_installexamples debian/slurm-suspend.sh +# dh_installexamples debian/slurm.conf.simple +# dh_installexamples -pslurm-llnl-slurmdbd debian/slurmdbd.conf.simple + dh_installinit + dh_installlogrotate + dh_installdebconf + dh_installman + dh_compress -X.pdf -X.example + dh_strip + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb +# Build architecture independant packages using the common target. +binary-indep: build-indep install-indep + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +# Build architecture dependant packages using the common target. +binary-arch: build-arch install-arch + $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch --- slurm-llnl-1.3.13.orig/debian/slurm-llnl-slurmdbd.postrm +++ slurm-llnl-1.3.13/debian/slurm-llnl-slurmdbd.postrm @@ -0,0 +1,47 @@ +#!/bin/sh +# postrm script for slurm-llnl +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + ucf --purge /etc/slurm-llnl/slurmdbd.conf + rm -rf /etc/slurm-llnl/slurmdbd.conf + rm -rf /var/log/slurm-llnl/slurmdbd*log* + if [ ! -e /usr/sbin/slurmctld ] ; then + deluser --quiet slurm + fi + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- slurm-llnl-1.3.13.orig/debian/copyright +++ slurm-llnl-1.3.13/debian/copyright @@ -0,0 +1,369 @@ +This is the Debian GNU/Linux prepackaged version of the slurm program written +by the authors listed below. + +This package was put together by by Gennaro Oliva +from the sources available at + ftp://ftp.llnl.gov/pub/linux/slurm/ + +As Debian already contained a different source and binary package called +'slurm', this package has been renamed to 'slurm-llnl'. + + +Slurm was written by these authors (taken from file AUTHORS in the sources) + Don Albert + Ernest Artiaga + Danny Auble + Susanne Balle + Anton Blanchard + Hongjia Cao + Chuck Clouston + Daniel Christians + Gilles Civario + Chris Dunlap + Joey Ekstrom + Jim Garlick + Mark Grondona + Christopher Holmes + Takao Hatazaki + Nathan Huff + David Jackson + Greg Johnson + Morris Jette + Jason King + Donna Mecozzi + Chris Morrone + Bryan O'Sullivan + Gennaro Oliva + Daniel Palermo + Dan Phung + Ashley Pitman + Andy Riebs + Jeff Squyres + Keven Tew + Jay Windley + Ann-Marie Wunderlin + +These additional authors have been identified in the files listed: +slurm/pmi.h,slurm/pmi.c: + W. Gropp + E. Lusk +src/plugins/task/affinity/schedutils.c: + Robert Love +src/common/strlcpy.c: + Todd C. Miller +src/common/log.h,src/common/log.c: + Tatu Ylonen , Markus Friedl +testsuite/expect/mpi-testscripts/barrier_timed.c: + Richard Treumann treumann@kgn.ibm.com + + + +Slurm carries the following copyrights: + +Copyright (C) 2002-2006 The Regents of the University of California. +Produced at Lawrence Livermore National Laboratory, Hewlett-Packard, +Linux NetworX, and other sites. + +UCRL-CODE-217948. + +testsuite/expect/mpi-testscripts/barrier_timed.c: + Copyright IBM Corp. 1995 + +src/plugins/task/affinity/cpuset.c: + Copyright (C) 2007 Bull + Copyright (C) 2007 The Regents of the University of California. + +testsuite/dejagnu.h: + Copyright (C) 2000, 2001 Free Software Foundation, Inc. + +src/common/getopt1.c: + Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98 + Free Software Foundation, Inc. + +src/common/getopt.c: + Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001 + Free Software Foundation, Inc. +src/common/getopt.h: + Copyright (C) 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc. + +src/common/log.c,src/common/log.h: + Copyright (C) 2002 The Regents of the University of California. + Copyright (c) 1995 Tatu Ylonen , Espoo, Finland + Copyright (c) 2000 Markus Friedl. All rights reserved. + +slurm/pmi.h: + Copyright Notice + 2002 University of Chicago + +src/api/pmi.c: + COPYRIGHT: For the function definitions + Copyright Notice + 2002 University of Chicago + COPYRIGHT: For the implementation of the functions + Copyright (C) 2005-2006 The Regents of the University of California. + +src/plugins/task/affinity/schedutils.c: + Copyright (C) 2004 Robert Love + +src/common/strlcpy.c: + Copyright (c) 1998 Todd C. Miller + +src/plugins/task/affinity/affinity.c: + Copyright (C) 2005-2006 Hewlett-Packard Development Company, L.P. + +src/plugins/task/affinity/affinity.h: + Copyright (C) 2005 Hewlett-Packard Development Company, L.P. + +src/plugins/jobacct/common/common_slurmctld.c: +src/plugins/jobacct/common/common_slurmstepd.c: +src/plugins/jobacct/aix/jobacct_aix.c: +src/plugins/jobacct/common/jobacct_common.h: +src/plugins/jobacct/none/jobacct_none.c: +src/plugins/jobacct/linux/jobacct_linux.c: +src/common/slurm_step_layout.c: +src/common/slurm_step_layout.h: + Copyright (C) 2005 Hewlett-Packard Development Company, L.P. + Copyright (C) 2002 The Regents of the University of California. + +src/plugins/select/cons_res/dist_tasks.c: +src/plugins/select/cons_res/dist_tasks.h: +src/plugins/task/affinity/dist_tasks.c: +src/plugins/task/affinity/dist_tasks.h: +src/plugins/select/cons_res/select_cons_res.h: +src/common/slurm_selecttype_info.h: +src/common/slurm_selecttype_info.c: +src/common/slurm_resource_info.c: +src/common/slurm_rlimits_info.h: + Copyright (C) 2006 Hewlett-Packard Development Company, L.P. + +get_mach_stat.c: + Copyright (C) 2006 Hewlett-Packard Development Company, L.P. + Copyright (C) 2002-2006 The Regents of the University of California. + +jobacct_common.c,slurm_rlimits_info.c,slurm_rlimits_info.h: + Copyright (C) 2005 Hewlett-Packard Development Company, L.P. + +sacct.c: + Copyright (C) 2005 Hewlett-Packard Development Company, L.P. + Copyright (C) 2005-2006 Hewlett-Packard Development Company, L.P. + +slurm_jobacct.c,slurm_jobacct.h: + Copyright (C) 2003 The Regents of the University of California. + Copyright (C) 2005 Hewlett-Packard Development Company, L.P. + +task_affinity.c: + Copyright (C) 2005 Hewlett-Packard Development Company, L.P. + Copyright (C) 2005 The Regents of the University of California and + + + + +Licenses +-------- + +SLURM is distributed under this license: +-------------------------------------------------------------------------------- + SLURM is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + SLURM is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + details. + + You should have received a copy of the GNU General Public License along + with SLURM; if not, write to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + + + OUR NOTICE AND TERMS OF AND CONDITIONS OF THE GNU GENERAL PUBLIC LICENSE + + Our Preamble Notice + + A. This notice is required to be provided under our contract with the U.S. + Department of Energy (DOE). This work was produced at the University + of California, Lawrence Livermore National Laboratory under Contract + No. W-7405-ENG-48 with the DOE. + + B. Neither the United States Government nor the University of California + nor any of their employees, makes any warranty, express or implied, or + assumes any liability or responsibility for the accuracy, completeness, or + usefulness of any information, apparatus, product, or process disclosed, or + represents that its use would not infringe privately-owned rights. + + C. Also, reference herein to any specific commercial products, process, or + services by trade names, trademark, manufacturer or otherwise does not + necessarily constitute or imply its endorsement, recommendation, or + favoring by the United States Government or the University of California. + The views and opinions of authors expressed herein do not necessarily + state or reflect those of the United States Government or the University of + California, and shall not be used for advertising or product endorsement + purposes. + + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + +The authors give the following permission to link with the openssl +library in the source file LICENSE.OpenSSL: +-------------------------------------------------------------------------------- + In addition, as a special exception, the copyright holders give + permission to link the code of portions of this program with the + OpenSSL library under certain conditions as described in each + individual source file, and distribute linked combinations + including the two. + You must obey the GNU General Public License in all respects + for all of the code used other than OpenSSL. If you modify + file(s) with this exception, you may extend this exception to your + version of the file(s), but you are not obligated to do so. If you + do not wish to do so, delete this exception statement from your + version. If you delete this exception statement from all source + files in the program, then also delete it here. + + +Additional licenses follow below: + +testsuite/expect/mpi-testscripts/barrier_timed.c is licensed as follow: +-------------------------------------------------------------------------------- +/**************************************************************************** + + MESSAGE PASSING INTERFACE TEST CASE SUITE + + Copyright IBM Corp. 1995 + + IBM Corp. hereby grants a non-exclusive license to use, copy, modify, and + distribute this software for any purpose and without fee provided that the + above copyright notice and the following paragraphs appear in all copies. + + IBM Corp. makes no representation that the test cases comprising this + suite are correct or are an accurate representation of any standard. + + In no event shall IBM be liable to any party for direct, indirect, special + incidental, or consequential damage arising out of the use of this software + even if IBM Corp. has been advised of the possibility of such damage. + + IBM CORP. SPECIFICALLY DISCLAIMS ANY WARRANTIES INCLUDING, BUT NOT LIMITED + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS AND IBM + CORP. HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, + ENHANCEMENTS, OR MODIFICATIONS. + +**************************************************************************** + +slurm/pmi.h is licensed as follow: +-------------------------------------------------------------------------------- + ***************************************************************************** + * COPYRIGHT + * + * The following is a notice of limited availability of the code, and + * disclaimer which must be included in the prologue of the code and in all + * source listings of the code. + * + * Copyright Notice + 2002 University of Chicago + * + * Permission is hereby granted to use, reproduce, prepare derivative + * works, and to redistribute to others. This software was authored by: + * + * Argonne National Laboratory Group + * W. Gropp: (630) 252-4318; FAX: (630) 252-5986; e-mail: gropp@mcs.anl.gov + * E. Lusk: (630) 252-7852; FAX: (630) 252-5986; e-mail: lusk@mcs.anl.gov + * Mathematics and Computer Science Division Argonne National Laboratory, + * Argonne IL 60439 + * + * GOVERNMENT LICENSE + * + * Portions of this material resulted from work developed under a U.S. + * Government Contract and are subject to the following license: the + * Government is granted for itself and others acting on its behalf a + * paid-up, nonexclusive, irrevocable worldwide license in this computer + * software to reproduce, prepare derivative works, and perform publicly + * and display publicly. + * + * DISCLAIMER + * + * This computer code material was prepared, in part, as an account of work + * sponsored by an agency of the United States Government. Neither the + * United States, nor the University of Chicago, nor any of their + * employees, makes any warranty express or implied, or assumes any legal + * liability or responsibility for the accuracy, completeness, or + * usefulness of any information, apparatus, product, or process disclosed, + * or represents that its use would not infringe privately owned rights. + * + * MCS Division Argonne National Laboratory + * University of Chicago +\*****************************************************************************/ + +src/common/strlcpy.c is licensed as follow: +-------------------------------------------------------------------------------- +/* + * Copyright (c) 1998 Todd C. Miller + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +src/common/log.c and src/common/log.h are licensed as follow: +-------------------------------------------------------------------------------- + ***************************************************************************** + * Copyright (C) 2002 The Regents of the University of California. + * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). + * Written by Mark Grondona + * UCRL-CODE-226842. + * + * Much of this code was derived or adapted from the log.c component of + * openssh which contains the following notices: + ***************************************************************************** + * Author: Tatu Ylonen + * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland + * All rights reserved + * + * As far as I am concerned, the code I have written for this software + * can be used freely for any purpose. Any derived versions of this + * software must be clearly marked as such, and if the derived work is + * incompatible with the protocol description in the RFC file, it must be + * called by a name other than "ssh" or "Secure Shell". + ***************************************************************************** + * Copyright (c) 2000 Markus Friedl. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +\*****************************************************************************/ + --- slurm-llnl-1.3.13.orig/debian/slurm-llnl-dev.dirs +++ slurm-llnl-1.3.13/debian/slurm-llnl-dev.dirs @@ -0,0 +1,3 @@ +usr/lib/slurm +usr/include/slurm +usr/share/man/man3 --- slurm-llnl-1.3.13.orig/debian/slurm-suspend.sh +++ slurm-llnl-1.3.13/debian/slurm-suspend.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# Example SuspendProgram for cluster where every node has two CPUs +srun --uid=0 --no-allocate --nodelist=$1 echo powersave >/sys/devices/system/cpu0/cpufreq +srun --uid=0 --no-allocate --nodelist=$1 echo powersave >/sys/devices/system/cpu1/cpufreq --- slurm-llnl-1.3.13.orig/debian/slurm-llnl.postrm +++ slurm-llnl-1.3.13/debian/slurm-llnl.postrm @@ -0,0 +1,72 @@ +#!/bin/sh +# postrm script for slurm-llnl +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + SCONF=/etc/slurm-llnl/slurm.conf + if [ -e $SCONF ] ; then + CRYPTOTYPE=$(grep CryptoType $SCONF | grep -v "^ *#" || /bin/true) + CRYPTOTYPE=${CRYPTOTYPE##*=} + CRYPTOTYPE=${CRYPTOTYPE%#*} + if [ "$CRYPTOTYPE" = "crypto/openssl" ] || \ + [ "$CRYPTOTYPE" = "" ] ; then + CERTFILE=$(grep JobCredentialPublicCertificate $SCONF \ + | grep -v "^ *#" || /bin/true ) + CERTFILE=${CERTFILE##*=} + CERTFILE=${CERTFILE%#*} + KEYFILE=$(grep JobCredentialPrivateKey $SCONF \ + | grep -v "^ *#" || /bin/true) + KEYFILE=${KEYFILE##*=} + KEYFILE=${KEYFILE%#*} + if [ -n "${KEYFILE}${CERTFILE}" ] ; then + rm -f ${KEYFILE} ${CERTFILE} + fi + rm -f /etc/slurm-llnl/slurm.key + rm -f /etc/slurm-llnl/slurm.cert + fi + fi + ucf --purge /etc/slurm-llnl/slurm.conf + rm -f /etc/slurm-llnl/slurm.conf + rm -rf /var/run/slurm-llnl/slurmctld + rm -rf /var/run/slurm-llnl/slurmd + rm -f /var/log/slurm-llnl/slurmd*.log* + rm -f /var/log/slurm-llnl/slurmctld*.log* + if [ ! -e /usr/sbin/slurmdbd ] ; then + deluser --quiet slurm + fi + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- slurm-llnl-1.3.13.orig/debian/watch +++ slurm-llnl-1.3.13/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/slurm/slurm-(\d{1,2}.\d{1,2}.\d{1,2})\.tar\.bz2 --- slurm-llnl-1.3.13.orig/debian/slurm-resume.sh +++ slurm-llnl-1.3.13/debian/slurm-resume.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# Example ResumeProgram for cluster where every node has two CPUs +srun --uid=0 --no-allocate --nodelist=$1 echo performance >/sys/devices/system/cpu0/cpufreq +srun --uid=0 --no-allocate --nodelist=$1 echo performance >/sys/devices/system/cpu1/cpufreq + --- slurm-llnl-1.3.13.orig/debian/slurm-llnl-slurmdbd.postinst +++ slurm-llnl-1.3.13/debian/slurm-llnl-slurmdbd.postinst @@ -0,0 +1,43 @@ +#!/bin/sh +# postinst script for slurm-llnl +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +case "$1" in + configure) + chown slurm:slurm /var/run/slurm-llnl + chown slurm:slurm /var/log/slurm-llnl + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- slurm-llnl-1.3.13.orig/debian/control +++ slurm-llnl-1.3.13/debian/control @@ -0,0 +1,102 @@ +Source: slurm-llnl +Section: admin +Priority: extra +Maintainer: Gennaro Oliva +Uploaders: Dirk Eddelbuettel +Build-Depends: debhelper (>= 4.0.0), autotools-dev, libmunge-dev, libncurses5-dev, libssl-dev, po-debconf, python, libglade2-dev, libgtk2.0-dev, libmysqlclient15-dev, postgresql-server-dev-8.3 +Standards-Version: 3.8.0 +Homepage: https://computing.llnl.gov/linux/slurm/ + +Package: slurm-llnl +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, openssl, ucf, munge, slurm-llnl-basic-plugins (= ${binary:Version}), adduser, openssl-blacklist, openssl (>= 0.9.8g-9), lsb-base (>= 3.2-12) +Description: Simple Linux Utility for Resource Management + SLURM stands for Simple Linux Utility for Resource Management, it + is an open-source cluster resource management and job scheduling system + that strives to be simple, scalable, portable, fault-tolerant, and + interconnect agnostic. + +Package: libslurm13 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Runtime library files for SLURM + SLURM, the Simple Linux Utility for Resource Management, + is an open-source cluster resource management and job scheduling. + This package contains the SLURM runtime library. + +Package: libpmi0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: SLURM PMI library implementation + SLURM, the Simple Linux Utility for Resource Management, + is an open-source cluster resource management and job scheduling. + This package contains the SLURM PMI runtime implementation. + +Package: libslurm13-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libslurm13 (= ${binary:Version}) +Description: SLURM development files + SLURM, the Simple Linux Utility for Resource Management, + is an open-source cluster resource management and job scheduling. + This package contains SLURM static library and header files. + +Package: libpmi0-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libpmi0 (= ${binary:Version}), libslurm13 (= ${binary:Version}) +Description: SLURM PMI library implementation + SLURM, the Simple Linux Utility for Resource Management, + is an open-source cluster resource management and job scheduling. + This package contains the SLURM PMI implementation static library and header + files + +Package: slurm-llnl-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: SLURM docmentation + SLURM, the Simple Linux Utility for Resource Management, + is an open-source cluster resource management and job scheduling. + This package contains the SLURM html documentation. + +Package: slurm-llnl-basic-plugins +Section: admin +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: SLURM docmentation + SLURM, the Simple Linux Utility for Resource Management, + is an open-source cluster resource management and job scheduling. + This package contains the SLURM basic plugins + +Package: slurm-llnl-basic-plugins-dev +Section: devel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, slurm-llnl-basic-plugins (= ${binary:Version}) +Description: SLURM docmentation + SLURM, the Simple Linux Utility for Resource Management, + is an open-source cluster resource management and job scheduling. + This package contains development files for the SLURM basic plugins + +Package: slurm-llnl-sview +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, slurm-llnl (= ${binary:Version}) +Description: GUI to view and modify SLURM state + SLURM, the Simple Linux Utility for Resource Management, + is an open-source cluster resource management and job scheduling. + This package contains sview a GUI that can be used to view SLURM + configuration, job, step, node and partitions state information. + Authorized users can also modify select information. + +Package: slurm-llnl-slurmdbd +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, slurm-llnl-basic-plugins (= ${binary:Version}), adduser +Description: Secure enterprise-wide interface to a database for SLURM + SLURM, the Simple Linux Utility for Resource Management, + is an open-source cluster resource management and job scheduling. + This package contain SlurmDBD (Slurm DataBase Daemon) that can be + used to securely manage the accounting data for several Slurm + clusters in a central location and sacctmgr a command for managing + user accounts in SlurmDBD. --- slurm-llnl-1.3.13.orig/debian/slurm-llnl-configurator.html +++ slurm-llnl-1.3.13/debian/slurm-llnl-configurator.html @@ -0,0 +1,812 @@ + + +SLURM System Configuration Tool + + + + +
+

SLURM Version 1.3 Configration Tool

+

This form can be used to create a SLURM configuration file with +you controlling many of the important configuration parameters.

+ +

This tool supports SLURM version 1.3 only. +Configuration files for other versions of SLURM should be built +using the tool distributed with it in doc/html/configurator.html. +Some parameters will be set to default values, but you can +manually edit the resulting slurm.conf as desired +for greater flexibiilty. See man slurm.conf for more +details about the configuration parameters.

+ +

Note the while SLURM daemons create log files and other files as needed, +it treats the lack of parent directories as a fatal error. +This prevents the daemons from running if critical file systems are +not mounted and will minimize the risk of cold-starting (starting +without preserving jobs).

+ +

After you have filled in the fields of interest, use the +"Submit" button on the bottom of the page to build the slurm.conf +file. It will appear on your web browser. Save the file in text format +as slurm.conf for use by SLURM. + +

For more information about SLURM, see +https://computing.llnl.gov/linux/slurm/ +

+Privacy and legal notice + +

Control Machines

+Define the hostname of the computer on which the SLURM controller and +optional backup controller will execute. You can also specify addresses +of these computers if desired (defaults to their hostnames). +The IP addresses can be either numeric IP addresses or names. +Hostname values should should not be the fully qualified domain +name (e.g. use linux rather than linux.llnl.gov). +

+ ControlMachine: +Master Controller Hostname +

+ ControlAddr: Master Controller +Address (optional) +

+ BackupController: Backup +Controller Hostname (optional) +

+ BackupAddr: Backup Controller +Address (optional) +

+ +

Compute Machines

+Define the machines on which user applications can run. +You can also specify addresses of these computers if desired +(defaults to their hostnames). +Only a few of the possible parameters associated with the nodes will +be set by this tool, but many others are available. +All of the nodes will be placed into a single partition (or queue) +with global access. Many options are availble to group nodes into +partitions with a wide variety of configuration parameters. +Manually edit the slurm.conf produced to exercise these options. +Node names and addresses may be specified using a numeric range specification. + +

+ NodeName: +Compute nodes +

+ NodeAddr: Compute node addresses +(optional) +

+ PartitionName: +Name of the one partition to be created +

+ MaxTime: +Maximum time limit of jobs in minutes or INFINITE +

+The following parameters are optional, +but can be specified when using FastSchedule=1: +

+ Procs: Count of processors +on each compute node. +If Procs is omitted, it will be inferred from: +Sockets, CoresPerSocket, and ThreadsPerCore. +

+ +Sockets: +Number of physical processor sockets/chips on the node. +If Sockets is omitted, it will be inferred from: +Procs, CoresPerSocket, and ThreadsPerCore. +

+ +CoresPerSocket: +Number of cores in a single physical processor socket. +The CoresPerSocket value describes physical cores, not +the logical number of processors per socket. +

+ +ThreadsPerCore: +Number of logical threads in a single physical core. +

+ Memory: Amount +of real memory. This parameter is required when specifying Memory as a +consumable resource with the select/cons_res plug-in. See below +under Resource Selection. +

+ +

SLURM User

+The SLURM controller (slurmctld) can run without elevated privileges, +so it is recommended that a user "slurm" be created for it. For testing +purposes any user name can be used. +

+ SlurmUser +

+ +

Group ID Caching

+ +If you have a slow NIS environment, big parallel jobs take a long time +to start up (and may eventually time-out) because the NIS server(s) +may not be able to quickly respond to simultaneous requests from +multiple slurmd's. You can instruct slurmd to cache /etc/groups +entries to prevent this from happening by setting +CacheGroups=1. Reconfiguring ("scontrol reconfig") with +CacheGroups=0 will cause slurmd to purge the cache. Select one +value for CacheGroups:
+ +0: for normal environment.
+ +1: for slow NIS environment. +

+WARNING: The group ID cache does not try to keep itself in sync with +the system. You MUST run "scontrol reconfig" to update the cache +after making any changes to system password or group databases. +

+ +

SLURM Port Numbers

+The SLURM controller (slurmctld) requires a unique port for communcations +as do the SLURM compute node deamonds (slurmd). If not set, slurm ports +are set by checking for an entry in /etc/services and if that +fails by using an interal default set at SLURM build time. +

+ SlurmctldPort +

+ SlurmdPort +

+ +

Authentication and Security

+Define the method used for authenticating communicating between SLURM components.
+Select one value for AuthType:
+ None: No authentication, +not recommended production use
+ Authd: Brent Chun's +authd
+ Munge: LLNL's +Munge
+

+Library used for job step cryptographic signature generation.
+Select one value for CryptoType:
+Munge: LLNL's +Munge (has Gnu Public License)
+ OpenSSL: +OpenSSL (has better performance for signature generation) +

+Define the location of public and private keys used by SLURM's +cryptographic signature generation plugin (CryptoType). +These values are only used if CryptoType=OpenSSL. +These files need to be generated by the SLURM administrator. +Specify fully qualified pathnames. +

+ JobCredentialPrivateKey +

+ JobCredentialPublicCertificate +

+ +

State Preservation

+Define the location of a directory where the slurmctld daemon saves its state. +This should be a fully qualified pathname which can be read and written to +by the SLURM user on both the control machine and backup controller (if configured). +The location of a directory where slurmd saves state should also be defined. +This must be a unique directory on each compute server (local disk). +The use of a highly reliable file system (e.g. RAID) is recommended. +

+ StateSaveLocation: +Slurmctld state save directory Must be writable by both ControlMachine and BackupController +

+ SlurmdSpoolDir: +Slurmd state save directory +

+Define when a non-responding (DOWN) node is returned to service.
+Select one value for ReturnToService:
+ +0: When explicitly restored to service by an administrator.
+ +1: Automatically, when slurmd daemon registers with valid configuration
+

+ +

Scheduling

+Define the mechanism to be used for controlling job ordering.
+Select one value for SchedulerType:
+ Builtin: First-In +First-Out (FIFO)
+ Backfill: +FIFO with backfill
+ Gang: Gang scheduling +(time-slicing for parallel jobs)
+ Wiki: Wiki interface +to Maui (configuration parameter SchedulerPort must specified)
+ Wiki2: Wiki interface +to Moab (configuration parameter SchedulerPort must specified)
+

+ SchedulerPort: scheduler +communcations port (used by Wiki only) +

+Define what node configuration should be used. +Using values defined in the configuration file will provide faster scheduling.
+Select one value for FastSchedule:
+ +1: Use node configuration values defined in configuration file
+ +0: Use node configuration values actually found on each node +

+ +

Interconnect

+Define the node interconnect used.
+Select one value for SwitchType:
+ Elan: Quadrics Elan3 or Elan4
+ Federation: IBM +Federation Switch
+ None: No special +handling required (InfiniBand, Myrinet, Ethernet, etc.)
+

+ +

Default MPI Type

+Specify the type of MPI to be used by default. SLURM will configure environment +variables accordingly. Users can over-ride this specification with an srun option.
+Select one value for MpiDefault:
+ MPICH-GM
+ MPICH-MX
+ MPICH1-P4
+ MPICH1-SHMEM: +This also works for MVAPICH-SHMEM.
+ MVAPICH
+ None: ++This works for most other MPI types including MPICH2, LAM MPI and Open MPI.
+

+ +

Process Tracking

+Define the algorithm used to identify which processes are associated with a +given job. This is used signal, kill, and account for the processes associated +with a job step.
+Select one value for ProctrackType:
+ AIX: Use AIX kernel +extension, recommended for AIX systems
+ Pgid: Use Unix +Process Group ID, processes changing their process group ID can escape from SLURM +control
+ LinuxProc: Use +parent process ID records, required for MPICH-GM use, processes can escape +from SLURM control
+ RMS: Use Quadrics +kernel infrastructure, recommended for systems where this is available
+ SGI's PAGG +module: Use SGI's Process +Aggregates (PAGG) kernel module, recommended where available
+

+ +

Resource Selection

+Define resource (node) selection algorithm to be used.
+Select one value for SelectType:
+ +Cons_res: Allocate individual processors and memory
+
+
+
SelectTypeParameters (As used by SelectType=Cons_res only): +
Note: The -E extension for sockets, cores, and threads + are ignored within the node allocation mechanism + when CR_CPU or CR_CPU_MEMORY is selected. + They are considered to compute the total number of + tasks when -n is not specified +
Note: CR_MEMORY assumes MaxShare value of one of higher +
+ CR_CPU: (default) + CPUs as consumable resources. +
No notion of sockets, cores, or threads. + On a multi-core system, cores will be considered CPUs. + On a multi-core/hyperthread system, threads will be considered CPUs. + On a single-core systems CPUs are CPUs. ;-) +
+ CR_Socket: Sockets as a consumable resource. +
+ CR_Core: Cores as a consumable resource. +
+ CR_Memory: Memory as a consumable resource. +
Note: CR_Memory assumes MaxShare value of one of higher +
+ CR_CPU_Memory: + CPU and Memory as consumable resources. +
+ CR_Socket_Memory: + Socket and Memory as consumable resources. +
+ CR_Core_Memory: + Core and Memory as consumable resources. +
+
+ +Linear: Node-base +resource allocation, does not manage indivual processor allocation
+ +BlueGene: For IBM Blue Gene systems only
+

+ +

Task Launch

+Define a task launch plugin. This may be used to +provide resource management within a node (e.g. pinning +tasks to specific processors). +Select one value for TaskPlugin:
+ None: No task launch actions
+ Affinity: +CPU affinity support +(see srun man pages for the --cpu_bind, --mem_bind, and -E options) +
+
TaskPluginParam (As used by TaskPlugin=Affinity only): +
+ Cpusets: Use cpusets to control task binding. +
+ Sched: Use sched_setaffinity or plpa_sched_setaffinity + (if available) to bind tasks to processors. This is the default mode of + operation. +
+

+ +

Prolog and Epilog

+

+Prolog/Epilog: Fully qualified path that will be executed as +root on every node of a user's job before the job's tasks +will be initiated there and after that job has terminated. +These parameters are optional. +

+
Prolog +
Epilog +
+ +

+SrunProlog/Epilog: Fully qualified path to be executed by srun at +job step initiation and termination. These parameters may be overridden by +srun's --prolog and --epilog options +These parameters are optional. +

+
SrunProlog +
SrunEpilog +
+ +

+TaskProlog/Epilog: Fully qualified path to be executed as the user +before each task begins execution and after each task terminates. +These parameters are optional. +

+
TaskProlog +
TaskEpilog +
+ +

Event Logging

+Slurmctld and slurmd daemons can each be configured with different +levels of logging verbosity from 0 (quiet) to 7 (extremely verbose). +Each may also be configured to use debug files. Use fully qualified +pathnames for the files. +

+ SlurmctldDebug (0 to 7) +

+ SlurmctldLogFile (default is none, log goes to syslog) +

+ SlurmdDebug (0 to 7) +

+ SlurmdLogFile (default is none, +log goes to syslog, string "%h" in name gets replaced with hostname) +

+ +

Job Completion Logging

+Define the job completion logging mechanism to be used.
+Select one value for JobCompType:
+ None: +No job completion logging
+ FileTxt: +Write job completion status to a text file
+ Script: +Use an arbitrary script to log job completion
+ MySQL: +Write completion status to a MySQL database
+ PGSQL: +Write completion status to a PostreSQL database
+ SlurmDBD: +Write completion status to Slurm adatabase daemon (serving multiple Slurm clusters) +which will write to some database
+

+ JobCompLoc: +This is the location of the text file to be written to (if JobCompType=filetst) +or the script to be run (if JobCompType=script) or database name (for other values +of JobCompType). +

Options below are for use with a database to specify where the database is running and how to connect to it
+ JobCompHost: +Host the database is running on for Job completion
+ JobCompPort: +Port the database server is listening on for Job completion
+ JobCompUser: +User we are to use to talk to the database for Job completion
+ JobCompPass: +Password we are to use to talk to the database for Job completion
+

+ +

Job Accounting Gather

+SLURM accounts for resource use per job. System specifics can be polled +determined by system type
+Select one value for JobAcctGatherType:
+ None: No +job accounting
+ AIX: Specifc +AIX process table information gathered, use with AIX systems only
+ Linux: Specifc +Linux process table information gathered, use with Linux systems only
+ JobAcctGatherFrequency: +polling interval in seconds. Zero disables periodic sampling.
+

+ +

Job Accounting Storage

+Used with the Job Accounting Gather SLURM can store the accounting information in many different fashions. Fill in your systems choice here
+Select one value for AccountingStorageType:
+ None: +No job accounting storage
+ FileTxt: +Write job accounting to a text file
+ Gold: +Write completion status to Gold database daemon which can securely +save the data from many Slurm managed clusters into a common database
+ MySQL: +Write job accounting to a MySQL database
+ PGSQL: +Write job accounting to a PostreSQL database
+ SlurmDBD: +Write job accounting to Slurm DBD (database daemon) which can securely +save the data from many Slurm managed clusters into a common database
+ AccountingStorageLoc: +Location specification or database name. +This is the location of the text file to be written to (used by Log only). +Use a fully qualified pathname. If using a database it is the name of the database you will use or create for the stored data.
+

Options below are for use with a database to specify where the database is running and how to connect to it
+ AccountingStorageHost: +Host the database is running on for Job Accounting
+ AccountingStoragePort: +Port the database server is listening on for Job Accounting
+ AccountingStorageUser: +User we are to use to talk to the database for Job Accounting
+ AccountingStoragePass: +Password we are to use to talk to the database for Job Accounting. +In the case of SlurmDBD, this will be an alternate socket name for use with a Munge +daemon providing enterprise-wide authentication (while the default Munge socket +would provide cluster-wide authentication only).
+ ClusterName: +Name to be recorded in database for jobs from this cluster. +This is important if a single database is used to record information +from multiple Slurm-managed clusters.
+ +

+ +

Process ID Logging

+Define the location into which we can record the daemon's process ID. +This is used for locate the appropriate daemon for signalling. +Specify a specify the fully qualified pathname for the file. +

+ +SlurmctldPidFile +

+ +SlurmdPidFile +

+ +

Timers

+SLURM has a variety of timers to control when to consider a node DOWN, +when to purge job records, how long to give a job to gracefully terminate, etc. +

+ +SlurmctldTimeout: How many seconds the backup controller waits before +becoming the master controller +

+ +SlurmdTimeout: How many seconds the SLURM controller waits for the slurmd +to respond to a request before considering the node DOWN +

+ +InactiveLimit: How many seconds the SLURM controller waits for srun +commands to respond before considering the job or job step inactive and +terminating it. A value of zero indicates unlimited wait +

+ +MinJobAge: How many seconds the SLURM controller waits after a +job terminates before purging its record. A record of the job will +persist in job completion and/or accounting records indefinitely, +but will no longer be visible with the squeue command after puring +

+ +KillWait: How many seconds a job is given to gracefully terminate +after reaching its time limit and being sent SIGTERM before sending +a SIGKILLL +

+ +WaitTime: How many seconds after a job step's first task terminates +before terminating all remaining tasks. A value of zero indicates unlimited wait +

+ +
+
+ + +

+

+
+ + + --- slurm-llnl-1.3.13.orig/debian/slurm.conf.simple +++ slurm-llnl-1.3.13/debian/slurm.conf.simple @@ -0,0 +1,918 @@ +############################################################################### +# Sample configuration file for SLURM 1.3 +############################################################################### +# +# This file holds the system-wide SLURM configuration. It is read +# by SLURM clients, daemons, and the SLURM API to determine where +# and how to contact the SLURM controller, what other nodes reside +# in the current cluster, and various other configuration information. +# +# SLURM configuration parameters take the form Keyword=Value, where +# at this time, no spacing is allowed to surround the equals (=) sign. +# Many of the config values are not mandatory, and so may be left +# out of the config file. We will attempt to list the default +# values for those parameters in this file. +# +# This simple configuration provides a control machine named "laptop" +# to run the Slurm's central management daemon and a single node +# named "server" which execute jobs. Both machine should have Slurm +# installed and use this configuration file. If you have a similar +# configuration just change the values of ControlMachine, for the +# control machine and PartitionName and NodeName for job execution +# +############################################################################### + +# +# SLURM daemon configuration +# ======================================================================== + +# +# o Define the location of the SLURM controller and backup controller: +# "ControlMachine" : hostname of the primary controller +# "ControlAddr" : hostname used to contact the primary controller +# "BackupController" : hostname of the backup controller +# "BackupAddr" : hostname used to contact backup controller +# +# Example: +# +# ControlMachine=dev0 +# ControlAddr=edev0 # default: same as ControlMachine +# BackupController=dev1 # default: no backup controller +# BackupAddr=edev1 # default: same as BackupController + +ControlMachine=laptop + +# +# o Define the SLURM controller "save state" directory +# +# The SLURM controller, slurmctld, will periodically save state +# into this directory so that said state may be recovered after +# a fatal system error. For best results when using a backup +# controller, the filesystem on which this directory resides +# should be shared between the "ControlMachine" and "BackupController" +# +# Example: +# +# StateSaveLocation=/mnt/slurm # default: "/tmp" + +StateSaveLocation=/var/run/slurm-llnl/slurmctld + +# +# o Define the slurmd "save state" directory +# +# The SLURM daemon executing on each host, slurmd, will periodically +# save state into this directory so that said state may be recovered +# after a fatal system error. This pathname is shared by all hosts, +# but the file must be unique on each host so this must reference a +# local file system. +# +# Example: +# +# SlurmdSpoolDir=/var/tmp/slurmd # default: "/var/spool/slurmd" + +SlurmdSpoolDir=/var/run/slurm-llnl/slurmd + +# +# o Define the "slurm" user +# +# "SlurmUser" specifies the user that the SLURM controller should run +# as. The slurm controller has no need to run with elevated privileges, +# so a user other than "root" is suggested here. +# +# Example: +# +# SlurmUser=slurm # default: "root" + +SlurmUser=slurm + +# +# o If you have a slow NIS environment, +# +# big parallel jobs take a long time to start up (and may eventually +# time-out) because the NIS server(s) may not be able to quickly +# respond to simultaneous requests from multiple slurmd's. You can +# instruct slurmd to cache /etc/groups entries to prevent this from +# happening by setting "CacheGroups=1". Reconfiguring ("scontrol reconfig") +# with CacheGroups=0 will cause slurmd to purge the cache. +# +# WARNING: The group ID cache does not try to keep itself in sync with +# the system. You MUST run "scontrol reconfig" to update the +# cache after making any changes to system password or group +# databases. +# +# Example: +# +# CacheGroups=1 # default is `0' + + +# +# o Define the slurmctld and slurmd server port numbers +# +# by default, the slurmctld ports are set by checking for an entry in +# /etc/services, and if that fails, by using an internal default set +# at build time. That process will be overridden by these config +# parameters. +# +# "SlurmctldPort" : slurmctld server port +# "SlurmdPort" : slurmd server port +# +# Example: +# +# SlurmctldPort=7010 # default is `6817' +# SlurmdPort=7011 # default is `6818' + + +# +# o Define an alternate location for slurmd and slurmctld pid files, +# SlurmctldPidFile and SlurmdPidFile should have different values +# +# "SlurmctldPidFile" : fully qualified pathname containing slurmctld pid +# +# "SlurmdPidFile" : fully qualified pathname containing slurmd pid +# +# Example: +# +# SlurmctldPidFile=/var/slurm/slurmctld.pid # default: "/var/run/slurmctld.pid" +# SlurmdPidFile=/var/slurm/slurmd.pid # default: "/var/run/slurmd.pid" + +SlurmctldPidFile=/var/run/slurm-llnl/slurmctld.pid +SlurmdPidFile=/var/run/slurm-llnl/slurmd.pid + +# +# o Define the authentication method for communicating between SLURM +# components +# +# "auth/none" : no authentication, the default +# "auth/authd" : Brent Chun's authd +# "auth/munge" : LLNL's munge +# +# WARNING: The use of "auth/none" permits any user to execute jobs as any +# other user. This may be fine for testing purposes, but do not use it in +# production. +# +# Example: +# +# AuthType=auth/munge # default: "auth/none" + +AuthType=auth/munge + +# +# o Define the switch or interconnect in use. +# +# "SwitchType" : the type of switch or interconnect. +# switch/none : the default, supports all switches not requiring +# special set-up for job launch including Myrinet, +# Ethernet, and InfiniBand. +# switch/federation: IBM Federation switch +# switch/elan : Quadrics Elan 3 or Elan 4 interconnect. +# +# Example: +# +# SwitchType=switch/elan # default: "switch/none" + + +# +# o Define the process tracking mechanism in use. +# +# "ProctrackType" : the type of process tracking mechanism +# "proctrack/aix" : use AIX kernel extension for process tracking, +# the default value on AIX computers +# "proctrack/linuxproc" : use parent process ID to establish process +# tree, required for MPICH-GM use +# "proctrack/rms" : use Quadrics kernal infrastructure to track +# processes, strongly recommended for systems +# with a Quadrics switch +# "proctrack/sgi_job : which uses SGI’s Process Aggregates (PAGG) +# kernel module, see http://oss.sgi.comm/projects/pagg/ +# for more information +# "proctrack/pgid" : use Unix process group ID for process tracking, +# the default value on all other computers +# +# Example: +# +# ProctrackType=proctrack/linuxproc # default "proctrack/pgid" + + +# +# o Define the places to look for SLURM plugins. This is a +# colon-separated list of directories, just like the PATH +# environment variable. +# +# Example: +# +# PluginDir=/etc/slurm/plugins:/usr/local/etc # default: /usr/lib/slurm + + +# +# o Define other miscellaneous SLURM controller configuration values: +# +# "FastSchedule" : if set to `1' consider the configuration of nodes +# to be exactly that set in the config file, if set +# to `0' consider configuration of nodes to that +# which is reported by the node's slurmd, if set to +# `2' consider the configuration of each node to be +# that specified in the slurm.conf configuration +# file (as `1') and any node with less resources +# than configured will not be set DOWN. +# This can be useful for testing purposes. +# A FastSchedule value of zero will result in +# significantly slower scheduling. +# +# "FirstJobId" : Number of the first assigned job id. +# +# "ReturnToService" : if set to `1,' nodes in the DOWN state will be +# set to IDLE after they come back up. Otherwise, +# nodes will stay in the down state until manually +# brought into the IDLE state. +# +# "MaxJobCount" : defines the maximum number of jobs slurmctld can +# have in its active database at one time. Set the +# values of MaxJobCount and MinJobAge so as to avoid +# having slurmctld exhaust its memory or other +# resources. +# +# "MpiDefault" : define the default type of MPI to be used. If +# srun does not specify another value, slurm will +# establish the environment for this mpi to execute. +# Currently supported values are lam (for LAM MPI and +# Open MPI), mpich-gm, mvapich, and none (default, +# which works for most other versions of MPI). +# +# Example: +# +# FastSchedule=0 # default is `1' +# FirstJobid=1000 # default is `1' +# ReturnToService=1 # default is `0' +# MaxJobCount=10000 # Defaults to 2000 +# MpiDefault # default is "none" + +ReturnToService=1 + +# +# o Define Process Priority Propagation Configuration +# +# "PropagatePrioProcess" +# : if set to `1', the priority (aka nice value) of the +# process that launched the job on the submit node, +# (typically the users shell), will be propagated to +# the compute nodes and set for the users job. If set +# to `0', or left unset, the users job will inherit the +# scheduling priority from the slurm daemon. +# +# Example: +# +# PropagatePrioProcess=1 # default is `0' + + +# +# o Define the Resource Limit Propagation Configuration +# +# These two parameters can be used to specify which resource limits to +# propagate from the users environment on the submit node to the users job +# environment on the compute nodes. This can be useful when system limits +# vary among nodes. By default, (when neither parameter is specified), all +# resource limits are propagated. The values of non-propagated resource +# limits are determined by the system limits configured on the compute +# nodes. Only one of these two parameters may be specified. +# +# "PropagateResourceLimits" : A list of one or more comma-separated +# resource limits whose (soft) values +# will be set at job startup on behalf of +# the user. Any resource limit that is +# not listed here, will not be propagated, +# (unless the user overrides this setting +# with the 'srun --propagate' switch). +# +# +# "PropagateResourceLimitsExcept" : A list of one or more comma-separated +# resource limits which will not be +# propagated. Any resource limit that is +# not listed here, will be propagated. +# +# The following resource limits are supported: +# +# RLIMIT_NPROC RLIMIT_MEMLOCK RLIMIT_CORE +# RLIMIT_FSIZE RLIMIT_CPU RLIMIT_DATA +# RLIMIT_STACK RLIMIT_RSS RLIMIT_NOFILE +# RLIMIT_AS +# +# Examples: +# +# PropagateResourceLimits=RLIMIT_CORE,RLIMIT_DATA # The users RLIMIT_CORE and +# # RLIMIT_DATA resource limit +# # soft values will be applied +# # to the job on startup. All +# # other resource limit soft +# # values are determined by the +# # system limits defined on +# # the compute nodes. +# +# PropagateResourceLimitsExcept=RLIMIT_MEMLOCK # All limits, except for +# # MEMLOCK, are propagated. +# + + +# +# o Define whether PAM (Pluggable Authentication Modules for Linux) will be +# used. +# +# PAM is a set of shared libraries that enables system administrators to select +# the mechanism individual applications use to authenticate users. PAM also +# provides services for account managment, credential management, session +# management and authentication-token (password changing) management. SLURM +# uses PAM to obtain resource limits. This allows the system adminisrator to +# dynamically configure resource limits without causing an interruption to +# the service provided by SLURM. +# +# Also, for PAM to work properly with SLURM, a configuration file for SLURM +# must be created and installed. See the slurm.conf man page for details about +# this file. +# +# Example: +# +# UsePAM=1 or UsePAM=Yes # default is not to use PAM + + +# +# o Define an epilog and a prolog +# +# "Prolog" : fully qualified path to script that will be executed as +# root on every node of a user's job before the job's tasks +# will be initiated there. +# +# "Epilog" : fully qualified path to a script that will be executed as +# root on every node of a user's job after that job has +# terminated. +# +# Example: +# +# Prolog=/usr/local/slurm/prolog # default is no prolog +# Epilog=/usr/local/slurm/epilog # default is no epilog + + +# +# o Define programs to be executed by srun at job step initiation and +# termination. These parameters may be overridden by srun's --prolog +# and --epilog options. +# +# Example: +# +# SrunProlog=/usr/local/slurm/srun_prolog # default is no srun prolog +# SrunEpilog=/usr/local/slurm/srun_epilog # default is no srun epilog + + +# +# o Define task launch specific parameters +# +# "TaskProlog" : Define a program to be executed as the user before each +# task begins execution. +# "TaskEpilog" : Define a program to be executed as the user after each +# task terminates. +# "TaskPlugin" : Define a task launch plugin. This may be used to +# provide resource management within a node (e.g. pinning +# tasks to specific processors). Permissible values are: +# "task/none" : no task launch actions, the default. +# "task/affinity" : CPU affinity support (see srun man pages for +# --cpu_bind and --mem_bind options) +# +# Example: +# +# TaskProlog=/usr/local/slurm/etc/task_prolog # default is none +# TaskEpilog=/usr/local/slurm/etc/task_epilog # default is none +# TaskPlugin=task/affinity # default is task/none + + +# +# o Define the temporary file system +# +# "TmpFS" : Defines the location of local temporary storage filesystem +# on remote nodes. This filesystem will be used in reporting +# each node's TmpDisk space. +# +# Example: +# +# TmpFs=/var/tmp # default "/tmp" + + +# +# o Define the location of the private and public keys used by SLURM +# to generate job credentials. +# +# "JobCredentialPrivateKey" : Full pathname to the private key +# +# "JobCredentialPublicCertificate : Full pathname to the public cert. +# +# Example: +# +# JobCredentialPrivateKey=/etc/slurm/slurm.key +# JobCredentialPublicCertificate=/etc/slurm/slurm.cert + +JobCredentialPrivateKey=/etc/slurm-llnl/slurm.key +JobCredentialPublicCertificate=/etc/slurm-llnl/slurm.cert + +# "CheckpointType" : Define the system-initiated checkpoint method to be +# used for user jobs. Acceptable values at present +# include "checkpoint/aix" (only on AIX systems), +# "checkpoint/ompi" (requires OpenMPI version 1.3 or +# higher), "checkpoint/xlch" (for XLCH, requires that +# SlurmUser be root), and "checkpoint/none". The default +# value is "checkpoint/none". +# Example: +# +# CheckpointType=checkpoint/ompi # default: "checkpoint/none" + +# "CryptoType" : Define the cryptographic signature tool to be used in the +# creation of job step credentials. Acceptable values at present +# include "crypto/munge" and "crypto/openssl" +# +# Example: +# +# CryptoType=crypto/munge # default: "crypto/openssl" + +CryptoType=crypto/openssl + +# "DisableRootJobs" : If set to 1 then user root will be prevented from running +# any jobs. +# Example: +# +# DisableRootJobs=1 # default: `0' + +# "JobFileAppend" : This option controls what to do if a job’s output or error +# file exist when the job is started. If JobFileAppend is set +# to a value of 1, then append to the existing file. +# Example: +# +# JobFileAppend=1 # default:`0' + +# "JobRequeue" : This option controls what to do by default after a node failure. +# If JobRequeue is set to a value of 1, then any job running on +# the failed node will be requeued for execution on different +# nodes. If JobRequeue is set to a value of 0, then any job +# running on the failed node will be terminated. +# Example: +# +# JobRequeue=1 # default: `0' + +# "MailProg" : Fully qualified pathname to the program used to send email per +# user request. +# Example: +# +# MailProg=/usr/bin/mail # default: "/bin/mail" + +MailProg=/usr/bin/mail + +# "PrivateData" : If non-zero then users are unable to view jobs or job steps +# belonging to other users (except for SlurmUser or root, who can +# view all jobs). Otherwise any user is permitted +# to view any jobs or job steps. +# Example: +# +# PrivateData=1 # default: `0' + + +# +# Node and Partition Configuration +# ======================================================================== + +# +# o Node configuration +# +# The configuration information of nodes (or machines) to be managed +# by SLURM is described here. The only required value in this section +# of the config file is the "NodeName" field, which specifies the +# hostnames of the node or nodes to manage. It is recommended, however, +# that baseline values for the node configuration be established +# using the following parameters (see slurm.config(5) for more info): +# +# "NodeName" : The only required node configuration parameter, NodeName +# specifies a node or set of nodes to be managed by SLURM. +# The special NodeName of "DEFAULT" may be used to establish +# default node configuration parameters for subsequent node +# records. Typically this would be the string that +# `/bin/hostname -s` would return on the node. However +# NodeName may be an arbitrary string if NodeHostname is +# used (see below). +# +# "Feature" : comma separated list of "features" for the given node(s) +# +# "NodeAddr" : preferred address for contacting the node. This may be +# either a name or IP address. +# +# "NodeHostname" +# : the string that `/bin/hostname -s` would return on the +# node. In other words, NodeName may be the name other than +# the real hostname. +# +# "RealMemory" : Amount of real memory (in Megabytes) +# +# "Procs" : Number of CPUs +# +# "State" : Initial state (IDLE, DOWN, etc.) +# +# "TmpDisk" : Temporary disk space available on node +# +# "Weight" : Priority of node for scheduling purposes +# +# If any of the above values are set for a node or group of nodes, and +# that node checks in to the slurm controller with less than the +# configured resources, the node's state will be set to DOWN, in order +# to avoid scheduling any jobs on a possibly misconfigured machine. +# +# Example Node configuration: +# +# NodeName=DEFAULT Procs=2 TmpDisk=64000 State=UNKNOWN +# NodeName=host[0-25] NodeAddr=ehost[0-25] Weight=16 +# NodeName=host26 NodeAddr=ehost26 Weight=32 Feature=graphics_card + +NodeName=server Procs=1 State=UNKNOWN + +# +# o Partition Configuration +# +# Paritions are groups of nodes which (possibly) have different limits +# and access controls. Nodes may be in multiple partitions. Jobs will +# not be allowed to span partitions. The following partition configuration +# parameters are recognized: +# +# "PartitionName" : Name used to reference this partition. The special +# PartitionName of "DEFAULT" may be used to establish +# default partition configurations parameters for +# subsequent partition records. +# +# "Nodes" : list of nodes that compose this partition +# +# "AllowGroups" : Comma separated list of group ids which are allowed +# to use the partition. Default is "ALL" which allows +# all users to access the partition. +# +# "Default" : if "YES" the corresponding partition will be the +# default when users submit jobs without specification +# of a desired partition. +# +# "RootOnly" : only user id zero (root) may use this partition +# +# "MaxNodes" : Maximum count of nodes that will be allocated to any +# single job. The default is unlimited or `-1' +# +# "MaxTime" : Maximum timelimit of jobs in this partition in minutes. +# The default is unlimited or `-1' +# +# "MinNodes" : Minimum count of nodes that will be allocated to any +# single job. The default is `1' +# +# "Shared" : Allow sharing of nodes by jobs. Possible values are +# "YES" "NO" or "FORCE" +# +# "State" : State of partition. Possible values are "UP" or "DOWN" +# +# +# Example Partition Configurations: +# +# PartitionName=DEFAULT MaxTime=30 MaxNodes=26 +# PartitionName=debug Nodes=host[0-8,18-25] State=UP Default=YES +# PartitionName=batch Nodes=host[9-17,26] State=UP + +PartitionName=debug Nodes=server Default=YES MaxTime=INFINITE State=UP + +# +# Timers Section +# ======================================================================== + +# +# "SlurmctldTimeout" : amount of time, in seconds, backup controller +# waits for primary controller to respond +# before assuming control. +# +# "SlurmdTimeout" : amount of time, in seconds, the controller +# waits for slurmd to respond before setting the +# node's state to DOWN. If set to 0, this feature +# is disabled. +# +# "InactiveLimit" : The interval, in seconds, a job or job step is +# permitted to be inactive (srun command not responding) +# before being terminated. +# +# "MinJobAge" : The time, in seconds, after a job completes before +# its record is purged from the active slurmctld data. +# +# "KillWait" : The time, in seconds, between SIGTERM and SIGKILL +# signals sent to a job upon reaching its timelimit. +# +# "WaitTime" : Specifies how many seconds srun should wait after the +# first task terminates before terminating all remaining +# tasks. If set to 0, this feature is disabled. +# +# "EpilogMsgTime" : The number of microseconds the the slurmctld daemon +# requires to process an epilog completion message from +# the slurmd dameons. +# "MessageTimeout" : Time permitted for a round-trip communication to +# complete in seconds. +# +# Example: +# +# SlurmctldTimeout=120 # Defaults to 120 seconds +# SlurmdTimeout=300 # Defaults to 300 seconds +# InactiveLimit=600 # Defaults to 0 (unlimited) +# MinJobAge=30 # Defaults to 300 seconds +# KillWait=10 # Defaults to 30 seconds +# WaitTime=30 # Defaults to 0 (unlimited) +# EpilogMsgTime=2000 # Defaults to 2000 microseconds +# MessageTimeout=10 # Defaults to 10 seconds + +SlurmctldTimeout=300 + +# +# "UnkillableStepTimeout" : The length of time, in seconds, that SLURM will wait +# before deciding that processes in a job step are +# unkillable (after they have been signaled with +# SIGKILL). +# The default timeout value is 60 seconds. +# "UnkillableStepProgram" : If the processes in a job step are determined to be +# unkillable for a period of time specified by the +# UnkillableStepTimeout variable, the program +# specified by the UnkillableStepProgram string will +# be executed. +# +# Example: +# +#UnkillableStepProgram= +#UnkillableStepTimeout=60 + +# +# "HealthCheckInterval" : The interval in seconds between executions of +# HealthCheckProgram. The default value is zero, +# which disables execution. +# "HealthCheckProgram" : Fully qualified pathname of a script to execute +# as user root periodically on all compute nodes +# that are not in the DOWN state. +# +# Example: +# +#HealthCheckInterval=0 # Default to 0 (disabled) +#HealthCheckProgram= # By Default, no program will be executed + + + +# +# Scheduling Section +# ======================================================================== + +# +# +# o Define a scheduler. +# +# "SchedulerType" : the type of scheduler. Orders pending jobs. +# "sched/builtin" : the default, SLURM's built-in FIFO scheduler. +# "sched/backfill" : FIFO scheduling with backfill. +# "sched/hold" : hold all new jobs if "/etc/slurm.hold" exists, +# otherwise perform FIFO scheduling. +# "sched/wiki" : the Wiki interface to Maui. +# "sched/gang" : for gang scheduler (time-slicing of parallel jobs) +# +# "SchedulerPort" : for polling schedulers, the port number on +# which slurmctld should listen for connection +# requests. +# +# "SchedulerRootFilter" : for schedulers that support it (currently only +# sched/backfill). If set to '1' then scheduler +# will filter and avoid RootOnly partitions (let +# root user or process schedule these partitions). +# Otherwise scheduler will treat RootOnly +# partitions as any other standard partition. +# +# Example: +# +# SchedulerType=sched/wiki # default: "sched/builtin" +# SchedulerAuth=42 +# SchedulerPort=7321 +# SchedulerRootFilter=0 # default is '1' + +SchedulerType=sched/backfill + +# "SchedulerTimeSlice" : Number of seconds in each time slice when +# SchedulerType=sched/gang. +# Example: +# +# SchedulerTimeSlice=15 # default: `30' + +# "DefMemPerTask" : Default real memory size available per task in MegaBytes. +# Example: +# +# DefMemPerTask=512 # default: `0' (unlimited). + +# "MaxMemPerTask" : Maximum real memory size available per task in MegaBytes. +# Example: +# +# MaxMemPerTask=512 # default: `0' (unlimited). + +# "SelectType" : Identifies the type of resource selection algorithm to be +# used. Acceptable values include "select/linear" for +# sequentially ordered nodes in a one-dimensional array, +# "select/cons_res" for resources within a node individually +# allocated as consumable or "select/bluegene" +# for a three-dimensional BlueGene system. +# Example: +# +# SelectType=select/cons_res # default: "select/linear" + + +# "SelectTypeParameters" : Specify consumable resources. The only supported +# option for SelectType=select/linear is CR_Memory, +# the other values are supported only for +# SelectType=select/cons_res: +# "CR_CPU" : CPUs are consumable resources +# "CR_CPU_Memory" : CPUs and memory are consumable +# resources +# "CR_Core" : Cores are consumable resources +# "CR_Core_Memory" : Cores and memory are consumable +# resources +# "CR_Socket" : Sockets are consumable resources +# "CR_Socket_Memory" : Memory and CPUs are consumable +# resources +# "CR_Memory" : Memory is a consumable resource. +# +# Example: +# +# SelectTypeParameters=CR_CPU + + +# +# Logging and Accounting +# ======================================================================== + +# +# o Define slurmd and slurmctld logging options +# +# "SlurmctldDebug" : verbosity of slurmctld log messages +# (Values from 0 to 7 are legal, with `0' being +# "quiet" operation and `7' being insanely verbose) +# +# "SlurmdDebug" : verbosity of slurmd log messages (0-7, see above) +# +# "SlurmctldLogFile" : fully qualified pathname to slurmctld logfile +# (If a logfile is set for slurmctld, logging via +# syslog will be turned off) +# +# "SlurmdLogFile" : fully qualified pathname to slurmd logfile, +# may contain "%h" for hostname substitution +# (same caveat as SlurmctldLogFile above) +# +# Example: +# +# SlurmctldDebug=4 # default is `3' +# SlurmdDebug=4 # default is `3' +# + +SlurmdLogFile=/var/log/slurm-llnl/slurmd.log +SlurmctldLogFile=/var/log/slurm-llnl/slurmctld.log + +# "AccountingStorageEnforce" : If set to a non-zero value and the user, +# partition, account association is not defined +# for a job in the accounting database then +# prevent the job from being executed. +# Example +# +# AccountingStorageEnforce=1 # default=`0' + +# "AccountingStorageHost" : Define the name of the host where the database is +# running we are going to store the accounting data. +# "AccountingStorageType" : Define the accounting storage mechanism type. +# Acceptable values include: +# "accounting_storage/filetxt" for writing account +# records in a text file, +# "accounting_storage/gold" for using the Gold +# system, +# "accounting_storage/mysql" for using MySQL, +# "accounting_storage/pgsql" for using PostgreSQL, +# "accounting_storage/slurmdbd" for using the +# SLURM database daemon system and +# "accounting_storage/none" which means that +# records are not maintained. +# "AccountingStorageLoc" : Specifies name of the database as the location of +# the file or database where accounting records are +# written. +# "AccountingStoragePort" : Define the port the database server is listening +# on where we are going to store the accounting data. +# "AccountingStorageUser" : Define the name of the user we are going to connect +# to the database with to store the accounting data. +# "AccountingStoragePass" : Define the password used to gain access to the +# database to store the accounting data. +# +# Example: +# +# AccountingStorageType=accounting_storage/mysql +# default: "accounting_storage/none" +# AccountingStorageHost=localhost +# AccountingStoragePort=3306 +# AccountingStorageLoc=slurmdb # name of the database +# AccountingStorageUser=slurm # name of the user +# AccountingStoragePass=maradona10 # password + + +# +# "JobAcctGatherType" : Define the job accounting mechanism type. Acceptable +# values include "jobacct_gather/aix" (for AIX operating +# system), "jobacct_gather/linux" (for Linux operating +# system) and "jobacct_gather/none" +# "JobAcctFrequency" : Define the Frequency of the JobAcct poll thread +# +# Example: +# +# JobAcctFrequency=30 +# JobAcctGatherType=jobacct_gather/linux #default: "jobacct_gather/none + + +# "ClusterName" : The name by which this SLURM managed cluster is known for +# accounting purposes. This is needed distinguish between +# accounting data from multiple clusters being recorded in +# a single database. +# Example: +# +# ClusterName=maradona + + +# "JobCompHost" : Define the name of the host where the database is +# running and used to store the job completion data. +# "JobCompPort" : Define the port the database server is listening on +# where we are going to store the job completion data. +# "JobCompLoc" : The interpretation of this value depends upon the +# logging mechanism specified by the JobCompType +# parameter either a filename or a database name. +# "JobCompUser" : Define the name of the user we are going to connect +# to the database with to store the job completion data. +# "JobCompPass" : Define the password used to gain access to the +# database to store the job completition data. +# "JobCompType" : Define the job completion logging mechanism type. Acceptable +# values include: +# "jobcomp/filetxt" for writing account records in a text file, +# "jobcomp/gold" for using the Gold system, +# "jobcomp/mysql" for using MySQL, +# "jobcomp/pgsql" for using PostgreSQL, +# "jobcomp/slurmdbd" for using the SLURM database daemon, +# "jobcomp/script" for executing a script and +# "jobcomp/none" which means that records are not maintained. +# Example: +# JobCompType=jobcomp/mysql # default: "jobcomp/none" +# JobCompHost=localhost +# JobCompPort=3306 +# JobCompLoc=slurmjobcompdb # name of the database +# JobCompUser=slurm # name of the user +# JobCompPass=maradona10 # password + + +# +# o Define slurmd and slurmctld logging options +# +# "SlurmctldDebug" : verbosity of slurmctld log messages +# (Values from 0 to 7 are legal, with `0' being +# "quiet" operation and `7' being insanely verbose) +# +# "SlurmdDebug" : verbosity of slurmd log messages (0-7, see above) +# +# "SlurmctldLogFile" : fully qualified pathname to slurmctld logfile +# (If a logfile is set for slurmctld, logging via +# syslog will be turned off) +# +# "SlurmdLogFile" : fully qualified pathname to slurmd logfile, +# may contain "%h" for hostname substitution +# (same caveat as SlurmctldLogFile above) +# +# Example: +# +# SlurmctldDebug=4 # default is `3' +# SlurmdDebug=4 # default is `3' +# +# SlurmctldLogFile=/var/log/slurmctld.log # default is to log via syslog() +# SlurmdLogFile=/var/log/slurmd.log.%h # substitute hostname for "%h" + + +# +# Power save support for idle nodes (optional) +# ======================================================================== + +# "SuspendProgram" : The program that will be executed when a node remains +# idle for an extended period of time. This program is +# expected to place the node into some power save mode. +# "ResumeProgram" : The program that will be executed when a node in power +# save mode is assigned work to perform. +# "ResumeRate" : The rate at which nodes in power save mode are returned +# to normal operation by ResumeProgram. +# "SuspendExcNodes" : Specifies the nodes which are to not be placed in power +# save mode, even if the node remains idle for an +# extended period of time. +# "SuspendExcParts" : Specifies the partitions whose nodes are to not be +# placed in power save mode, even if the node remains +# idle for an extended period of time. +# "SuspendRate" : The rate at which nodes are place into power save mode +# by SuspendProgram. +# "SuspendTime" : Nodes which remain idle for this number of seconds will +# be placed into power save mode by SuspendProgram +# +# Example: +# SuspendProgram=/usr/share/doc/slurm-llnl/examples/slurm-suspend.sh +# ResumeProgram=/usr/share/doc/slurm-llnl/examples/slurm-resume.sh +# ResumeRate=32 +# SuspendExcNodes=nfsnode +# SuspendExcParts=severs +# SuspendRate=32 +# SuspendTime=60