10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-03 20:54:00 +01:00
quantum_package/src/ZMQ/README.rst

196 lines
6.8 KiB
ReStructuredText
Raw Normal View History

2015-12-01 16:32:01 +01:00
===
ZMQ
===
Socket address : defined as an environment variable : QP_RUN_ADDRESS
2016-09-22 12:15:20 +02:00
Needed Modules
==============
.. Do not edit this section It was auto-generated
.. by the `update_README.py` script.
.. image:: tree_dependency.png
* `Utils <http://github.com/LCPQ/quantum_package/tree/master/src/Utils>`_
2015-12-01 16:32:01 +01:00
Documentation
=============
.. Do not edit this section It was auto-generated
.. by the `update_README.py` script.
2015-12-04 20:02:35 +01:00
2019-02-05 21:59:26 +01:00
`add_task_to_taskserver <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L739>`_
2016-09-22 12:15:20 +02:00
Get a task from the task server
2019-02-05 21:59:26 +01:00
`connect_to_taskserver <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L646>`_
2016-09-22 12:15:20 +02:00
Connect to the task server and obtain the worker ID
2019-02-05 21:59:26 +01:00
`disconnect_from_taskserver <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L694>`_
2016-09-22 12:15:20 +02:00
Disconnect from the task server
2019-02-05 21:59:26 +01:00
`end_parallel_job <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L597>`_
2016-09-22 12:15:20 +02:00
End a new parallel job with name 'name'. The slave tasks execute subroutine 'slave'
2019-02-05 21:59:26 +01:00
`end_zmq_pair_socket <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L434>`_
2016-09-22 12:15:20 +02:00
Terminate socket on which the results are sent.
2019-02-05 21:59:26 +01:00
`end_zmq_pull_socket <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L454>`_
2016-09-22 12:15:20 +02:00
Terminate socket on which the results are sent.
2019-02-05 21:59:26 +01:00
`end_zmq_push_socket <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L480>`_
2016-09-22 12:15:20 +02:00
Terminate socket on which the results are sent.
2019-02-05 21:59:26 +01:00
`end_zmq_sub_socket <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L414>`_
2016-11-01 23:06:05 +01:00
Terminate socket on which the results are sent.
2019-02-05 21:59:26 +01:00
`end_zmq_to_qp_run_socket <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L1007>`_
2016-09-22 12:15:20 +02:00
Terminate the socket from the application to qp_run
2019-02-05 21:59:26 +01:00
`get_task_from_taskserver <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L871>`_
2016-09-22 12:15:20 +02:00
Get a task from the task server
2019-02-05 21:59:26 +01:00
`get_tasks_from_taskserver <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L933>`_
Get multiple tasks from the task server
`new_parallel_job <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L516>`_
2016-09-22 12:15:20 +02:00
Start a new parallel job with name 'name'. The slave tasks execute subroutine 'slave'
2019-02-05 21:59:26 +01:00
`new_zmq_pair_socket <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L169>`_
2016-09-22 12:15:20 +02:00
Socket on which the collector and the main communicate
2019-02-05 21:59:26 +01:00
`new_zmq_pull_socket <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L229>`_
2016-09-22 12:15:20 +02:00
Socket on which the results are sent. If thread is 1, use inproc
2019-02-05 21:59:26 +01:00
`new_zmq_push_socket <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L310>`_
2016-09-22 12:15:20 +02:00
Socket on which the results are sent. If thread is 1, use inproc
2019-02-05 21:59:26 +01:00
`new_zmq_sub_socket <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L373>`_
2016-11-01 23:06:05 +01:00
Socket to read the state published by the Task server
2019-02-05 21:59:26 +01:00
`new_zmq_to_qp_run_socket <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L131>`_
2016-09-22 12:15:20 +02:00
Socket on which the qp_run process replies
2017-10-27 12:20:00 +02:00
`qp_run_address <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L16>`_
2015-12-04 20:02:35 +01:00
Address of the qp_run socket
Example : tcp://130.120.229.139:12345
2019-02-05 21:59:26 +01:00
`reset_zmq_addresses <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L68>`_
2016-11-01 23:06:05 +01:00
Socket which pulls the results (2)
2016-09-22 12:15:20 +02:00
2019-02-05 21:59:26 +01:00
`switch_qp_run_to_master <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L85>`_
2016-09-22 12:15:20 +02:00
Address of the master qp_run socket
Example : tcp://130.120.229.139:12345
2019-02-05 21:59:26 +01:00
`task_done_to_taskserver <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L799>`_
2016-09-22 12:15:20 +02:00
Get a task from the task server
2019-02-05 21:59:26 +01:00
`tasks_done_to_taskserver <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L830>`_
Get a task from the task server
`wait_for_next_state <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L1111>`_
2016-11-01 23:06:05 +01:00
Undocumented
2019-02-05 21:59:26 +01:00
`wait_for_state <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L1135>`_
2016-11-01 23:06:05 +01:00
Wait for the ZMQ state to be ready
2019-02-05 21:59:26 +01:00
`wait_for_states <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L1163>`_
2016-11-01 23:06:05 +01:00
Wait for the ZMQ state to be ready
2019-02-05 21:59:26 +01:00
`zmq_abort <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L771>`_
2017-10-27 12:20:00 +02:00
Aborts a running parallel computation
`zmq_context <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L4>`_
2015-12-04 20:02:35 +01:00
Context for the ZeroMQ library
2019-02-05 21:59:26 +01:00
`zmq_delete_task <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L1030>`_
When a task is done, it has to be removed from the list of tasks on the qp_run
queue. This guarantees that the results have been received in the pull.
`zmq_delete_tasks <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L1067>`_
2016-09-22 12:15:20 +02:00
When a task is done, it has to be removed from the list of tasks on the qp_run
queue. This guarantees that the results have been received in the pull.
2015-12-04 20:02:35 +01:00
2019-02-05 21:59:26 +01:00
`zmq_get_dvector <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/put_get.irp.f#L39>`_
Get psi_coef from the qp_run scheduler
2017-10-27 12:20:00 +02:00
`zmq_lock <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L5>`_
Context for the ZeroMQ library
2019-02-05 21:59:26 +01:00
`zmq_port <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L118>`_
2016-09-22 12:15:20 +02:00
Return the value of the ZMQ port from the corresponding integer
2015-12-04 20:02:35 +01:00
2016-09-22 12:15:20 +02:00
2017-10-27 12:20:00 +02:00
`zmq_port_start <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L17>`_
2015-12-04 20:02:35 +01:00
Address of the qp_run socket
Example : tcp://130.120.229.139:12345
2019-02-05 21:59:26 +01:00
`zmq_put_dvector <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/put_get.irp.f#L1>`_
Put the X vector on the qp_run scheduler
`zmq_set_running <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L568>`_
2016-11-01 23:06:05 +01:00
Set the job to Running in QP-run
2019-02-05 21:59:26 +01:00
`zmq_socket_pair_inproc_address <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L46>`_
2015-12-04 20:02:35 +01:00
Socket which pulls the results (2)
2019-02-05 21:59:26 +01:00
`zmq_socket_pull_inproc_address <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L48>`_
2016-09-22 12:15:20 +02:00
Socket which pulls the results (2)
2015-12-04 20:02:35 +01:00
2019-02-05 21:59:26 +01:00
`zmq_socket_pull_tcp_address <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L45>`_
2016-09-22 12:15:20 +02:00
Socket which pulls the results (2)
2019-02-05 21:59:26 +01:00
`zmq_socket_push_inproc_address <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L49>`_
2016-09-22 12:15:20 +02:00
Socket which pulls the results (2)
2019-02-05 21:59:26 +01:00
`zmq_socket_push_tcp_address <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L47>`_
2016-09-22 12:15:20 +02:00
Socket which pulls the results (2)
2019-02-05 21:59:26 +01:00
`zmq_socket_sub_tcp_address <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L50>`_
2016-11-01 23:06:05 +01:00
Socket which pulls the results (2)
2019-02-05 21:59:26 +01:00
`zmq_state <http://github.com/LCPQ/quantum_package/tree/master/src/ZMQ/utils.irp.f#L508>`_
2016-09-22 12:15:20 +02:00
Threads executing work through the ZeroMQ interface
2015-12-04 20:02:35 +01:00