I believe these two salloc commands should do the same thing, but it seems they don't. In particular, the second case seems to be incorrect. Couldn't find anything on the salloc man page nor the CPU Management Guide about this behavior. I did see something on the srun man page about inconsistent configurations when the --cpus-per-task option is used with srun inside an salloc, but no warning about --ntasks-per-node being used.
> salloc -N16 srun -N4 --ntasks-per-node=2 hostname | sort -n node0 node0 node1 node1 node2 node2 node3 node3 > salloc -N16 srun -n8 --ntasks-per-node=2 hostname | sort -n srun: Warning: can't run 8 processes on 16 nodes, setting nnodes to 8 node0 node1 node2 node3 node4 node5 node6 node7
