Torque 2.1.8 and stdin

Pete Wyckoff pw at osc.edu
Tue Sep 4 17:16:49 EDT 2007


Matthew.Grismer at wpafb.af.mil wrote on Fri, 31 Aug 2007 12:13 -0400:
> Sorry for the very slow response, I was out of the office all last week
> and finally caught up on all my e-mail.  I was able to run the first two
> tests, output is attached.  Mac OS X apparently doesn't have strace, so
> I couldn't do the third. Apparently the somewhat equivalent capability
> is in ktrace, but I wasn't sure what the strace options did so I could
> mimic that with ktrace.  If the output from the first two isn't
> sufficient, let me know and I'll try to figure out how to use ktrace.
> Thanks for your help.

Aha.  Mac.

> -------------------------------------------------------------------
> Welcome to the Xserver Cluster grismemj!
> Running job id 183.xserve2.vaenclave.mil with name test.job in batch queue.
> -------------------------------------------------------------------
> Warning: no access to tty (Bad file descriptor).
> Thus no job control in this shell.
> 
> /usr/local/bin/mpiexec -n 1 -verbose a.out < input
> mpiexec: resolve_exe: found "./a.out" in path.
> mpiexec: Warning: do_child: aggregate input fd 0 returns POLLNVAL, closing.
> mpiexec: accept_pmi_conn: cmd=initack pmiid=0.
> mpiexec: accept_pmi_conn: rank 0 (spawn 0) checks in.
> mpiexec: accept_pmi_conn: cmd=init pmi_version=1 pmi_subversion=1.
> Error from ioctl = 6
>  Error is: : Device not configured
> forrtl: severe (24): end-of-file during read, unit -4, file stdin
> mpiexec: process_start_event: evt 2 task 0 on xnode1.vaenclave.mil.
> mpiexec: All 1 task (spawn 0) started.
> mpiexec: wait_tasks: waiting for xnode1.vaenclave.mil.
> mpiexec: process_obit_event: evt 3 task 0 on xnode1.vaenclave.mil stat 24.
> mpiexec: Warning: task 0 exited with status 24.

This is a Mac.  See that Warning line up there?  It is critical to
understanding the ioctl problem later on.  For some reason one
cannot poll() on stdin on a Mac.  No clue why, it works everywhere
else.  See the comments in
http://svn.osc.edu/repos/mpiexec/trunk/stdio.c (grep for TDARWIN).

Rebuild mpiexec with "--disable-poll" and see if things work.

Guess I should just check for Mac-ness in configure and disable
poll() because it is still broken.  Was sort of hoping they'd fix
that in a later OS release.

		-- Pete


More information about the mpiexec mailing list