Hi, I'd like to be able to define more than one partition on the S*_PARTITION env variable but I've not found proper syntax for that, e.g. like following example: SINFO_PARTITION="gpu,mic" Another problem is that users are not able to override this env variable, sinfo -a will not show any other partitions than which is defined by SINFO_PARTITION=
This is fixed in the following commit: https://github.com/SchedMD/slurm/commit/46c8fb7a86d2ebfc95faa06e00ca23d9eb16be78 The following is example output: compy$ SINFO_PARTITION=debug1 sinfo PARTITION AVAIL TIMELIMIT NODES STATE NODELIST debug1 up infinite 2 idle compy[1-2] compy$ SINFO_PARTITION=debug1,debug3 sinfo PARTITION AVAIL TIMELIMIT NODES STATE NODELIST debug1 up infinite 2 idle compy[1-2] debug3 up infinite 2 idle compy[5-6] compy$ SINFO_PARTITION=debug1,debug3 sinfo -p debug PARTITION AVAIL TIMELIMIT NODES STATE NODELIST debug* up infinite 10 idle compy[1-10] compy$ SINFO_PARTITION=debug1,debug3 sinfo -p debug,debug2 PARTITION AVAIL TIMELIMIT NODES STATE NODELIST debug* up infinite 10 idle compy[1-10] debug2 up infinite 2 idle compy[3-4] compy$ SINFO_PARTITION=debug1,debug3 sinfo -p debug,debug2 -a PARTITION AVAIL TIMELIMIT NODES STATE NODELIST debug* up infinite 10 idle compy[1-10] debug1 up infinite 2 idle compy[1-2] debug2 up infinite 2 idle compy[3-4] debug3 up infinite 2 idle compy[5-6] hidden up infinite 2 idle compy[5-6]
Updated commit to make -a and -p overwrite environment variables but not override each other on the command line. https://github.com/SchedMD/slurm/commit/e58bb7c573ee833935b9f51289e987d3ec3cee12 ex. brian@compy:~/slurm/14.11/compy$ SINFO_PARTITION=debug1 SINFO_ALL=1 sinfo sinfo: error: Conflicting options, SINFO_ALL and SINFO_PARTITION, specified. Please choose one or the other. brian@compy:~/slurm/14.11/compy$ SINFO_PARTITION=debug1 sinfo -a PARTITION AVAIL TIMELIMIT NODES STATE NODELIST debug* up infinite 10 idle compy[1-10] debug1 up infinite 2 idle compy[1-2] debug2 up infinite 2 idle compy[3-4] debug3 up infinite 2 idle compy[5-6] hidden up infinite 2 idle compy[5-6] brian@compy:~/slurm/14.11/compy$ SINFO_PARTITION=debug1 sinfo -p debug2,debug3 PARTITION AVAIL TIMELIMIT NODES STATE NODELIST debug2 up infinite 2 idle compy[3-4] debug3 up infinite 2 idle compy[5-6] brian@compy:~/slurm/14.11/compy$ SINFO_PARTITION=debug1 sinfo -p debug2,debug3 -a sinfo: error: Conflicting options, -a and -p, specified. Please choose one or the other. brian@compy:~/slurm/14.11/compy$ SINFO_ALL=1 sinfo -p debug2 PARTITION AVAIL TIMELIMIT NODES STATE NODELIST debug2 up infinite 2 idle compy[3-4]