- 06 Feb, 2012 10 commits
-
-
Danny Auble authored
-
Danny Auble authored
-
Danny Auble authored
fixed the problem
-
Danny Auble authored
while jobs are running on them.
-
Danny Auble authored
-
Danny Auble authored
is a convenience function in BSD and glibc that internally calls the equivalent of int masterfd = open("/dev/ptmx", flags); grantpt (masterfd); unlockpt (masterfd); int slavefd = open (slave, O_RDRW|O_NOCTTY); (in psuedocode) On Linux, with some combinations of glibc/kernel (in this case glibc-2.14/Linux-3.1), the equivalent of grantpt(3) was failing in slurmstepd with EPERM, because the allocated pty was getting root ownership instead of the user running the slurm job. From the POSIX description of grantpt: "The grantpt() function shall change the mode and ownership of the slave pseudo-terminal device... The user ID of the slave shall be set to the real UID of the calling process..." http://pubs.opengroup.org/onlinepubs/007904875/functions/grantpt.html This means that for POSIX-compliance, the real user id of slurmstepd must be the user executing the SLURM job at the time openpty(3) is called. Unfortunately, the real user id of slurmstepd at this point is still root, and only the effective uid is set to the user. This patch is a work-around that uses the (non-portable) setresuid(2) system call to reset the real and effective uids of the slurmstepd process to the job user, but keep the saved uid of root. Then after the openpty(3) call, the previous credentials are reestablished using the same call.
-
Danny Auble authored
-
Morris Jette authored
-
Danny Auble authored
of it's dimensions of length 3. There is a limitation in the IBM I/O subsystem that is problematic with multiple sub-blocks with a dimension of length 3, so we will disallow them to be able to be created. This mean you if you ask the system for an allocation of 12 c-nodes you will be given 16. If this is ever fix in BGQ you can remove this patch.
-
Danny Auble authored
-
- 04 Feb, 2012 3 commits
-
-
Morris Jette authored
Validate MPI rank values returned in test of MPI
-
Morris Jette authored
Fix for srun allocating running within existing allocation with --exclude option and --nnodes count small enough to remove more nodes. > salloc -N 8 salloc: Granted job allocation 1000008 > srun -N 2 -n 2 --exclude=tux3 hostname srun: error: Unable to create job step: Requested node configuration is not available Patch from Phil Eckert, LLNL.
-
Morris Jette authored
Add call to mpi_hook_slurmstepd_prefork() from slurmstep immediately prior to fork/exec of user tasks. Patch from Hongjia Cao, NUDT.
-
- 03 Feb, 2012 11 commits
-
-
Morris Jette authored
Add a generic data forwarding protocol to slurmd which uses its existing hierarchical communications protocol. Patch from Hongjia Cao, NUDT.
-
Morris Jette authored
Patch from Hongjia Cao, NUDT.
-
Morris Jette authored
Patch from Hongjia Cao, NUDT.
-
Morris Jette authored
Make step launch API more robust if there are NULL pointers. Patch from Hongjia Cao, NUDT.
-
Morris Jette authored
Avoid failure when common I/O function is passed a NULL pointer. Patch from Hongjia Cao, NUDT.
-
Morris Jette authored
Modify some I/O handler functions to return when passed a NULL I/O pointer rather than aborting. Patch from Hongjia Cao, NUDT.
-
Morris Jette authored
In srun --multi-prog mode, treat file name that begins with "." as an absolute pathname with no need to use PATH. Patch by Hongjia Cao, NUDT.
-
Morris Jette authored
Fix for srun allocating running within existing allocation with --exclude option and --nnodes count small enough to remove more nodes. > salloc -N 8 salloc: Granted job allocation 1000008 > srun -N 2 -n 2 --exclude=tux3 hostname srun: error: Unable to create job step: Requested node configuration is not available Patch from Phil Eckert, LLNL.
-
Morris Jette authored
-
Morris Jette authored
Add simplified version of configurator too. Work by Nathan Yee, SchedMD
-
Morris Jette authored
-
- 02 Feb, 2012 10 commits
-
-
Danny Auble authored
-
Danny Auble authored
-
Morris Jette authored
Fix bug in step task distribution when nodes are not configured in numeric order. Patch from Hongjia Cao, NUDT.
-
Morris Jette authored
Fix bug in step task distribution when nodes are not configured in numeric order. Patch from Hongjia Cao, NUDT.
-
Morris Jette authored
-
Danny Auble authored
-
Morris Jette authored
Add logic to cache GPU file information (bitmap index mapping to device file number) in the slurmd daemon and transfer that information to the slurmstepd whenever a job step is initiated. This is needed to set the appropriate CUDA_VISIBLE_DEVICES environment variable value when the devices are not in strict numeric order (e.g. some GPUs are skipped). Based upon work by Nicolas Bigaouette.
-
Morris Jette authored
-
Morris Jette authored
Based upon work by Nicolas Bigaouette
-
Morris Jette authored
Based upon work by Nicolas Bigaouette
-
- 01 Feb, 2012 6 commits
-
-
Morris Jette authored
-
Morris Jette authored
Conflicts: src/slurmctld/node_scheduler.c
-
Morris Jette authored
-
Danny Auble authored
-
Morris Jette authored
-
Morris Jette authored
Fix bug when requeued batch job is scheduled to run on a different node zero, but attemts job launch on old node zero causing fatal error "Invalid host_index -1 for job #"
-