[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] check for cpu instruction?



On 05/16/2018 02:00 PM, Michael Di Domenico wrote:
is there a way for condor to check whether a cpu has all the
instructions an executable might need before it runs?

There is no way for condor to do this. To do this completely would require solving the halting problem, which is beyond the scope of our research.

In practice, though, there are some approaches that may help. The program that tries to execute an instruction which doesn't exist should get killed with SIGILL (Illegal instruction). If this program is the top-level process in your job (i.e. there is no wrapper script), Condor will at least see that the program got a SIGILL, and you can administratively do something about that. (Put the job on hold, retry on a different machine model number etc.)

-greg