mindspore.hal.synchronize
=============================

.. py:function:: mindspore.hal.synchronize()

    同步当前设备上的所有流。(每个MindSpore进程只占用一个设备)