問題文
A researcher submits a batch script that asks for four accelerators on one node. Inside the script two independent steps are launched, and each should get two of the four devices rather than all four. What makes that happen?
選択肢
- Give each step its own generic resource request when it is launched, since a step otherwise receives everything the job asked for.
- Set the visible-devices environment variable by hand in each step, because that variable is read at process start and decides which of the allocated devices the step opens.
- Launch the two steps in the background and rely on the scheduler to split the devices evenly between them, because the allocation is shared by all steps of the job and the runtime divides it in proportion to the number of steps it sees.
- Submit two separate jobs instead, because the devices of one allocation cannot be divided between steps and each step owns the whole set it was given.