We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This requirement comes from Muscle3 integration (see https://github.com/radical-cybertools/other_activities/issues/89). This requires:
rp.Pilot
PMGR_ACTIVE
rp.TaskDescriptions.slots
The text was updated successfully, but these errors were encountered:
The following code is now possible (in branch feature/pilot_resources):
feature/pilot_resources
#!/usr/bin/env python3 import pprint import radical.pilot as rp if __name__ == '__main__': session = rp.Session() try: pmgr = rp.PilotManager(session=session) tmgr = rp.TaskManager(session=session) pdesc = rp.PilotDescription({'resource': 'local.localhost', 'runtime' : 15, 'cores' : 256}) pilot = pmgr.submit_pilots([pdesc])[0] pilot.wait(rp.PMGR_ACTIVE) nodes = pilot.nodes pprint.pprint(nodes) tmgr.add_pilots(pilot) td1 = rp.TaskDescription({'executable': 'hostname'}) td2 = rp.TaskDescription({ 'executable': 'hostname', 'ranks' : 2, 'slots' : [rp.Slot.from_node(nodes[0], core_ids=[1,3]), rp.Slot.from_node(nodes[1], core_ids=[2,4])] }) tmgr.submit_tasks([td1, td2]) tmgr.wait_tasks() finally: session.close(download=True)
Sorry, something went wrong.
andre-merzky
No branches or pull requests
This requirement comes from Muscle3 integration (see https://github.com/radical-cybertools/other_activities/issues/89). This requires:
rp.Pilot
instances (afterPMGR_ACTIVE
)rp.TaskDescriptions.slots
attribute (bypassing the agent scheduler)The text was updated successfully, but these errors were encountered: