dedalus.tools.parallel ====================== .. py:module:: dedalus.tools.parallel .. autoapi-nested-parse:: Tools for running in parallel. Module Contents --------------- .. py:class:: ProfileWrapper(stats) Pickleable wrapper for cProfile.Profile for use with pstats.Stats .. py:method:: create_stats() .. py:attribute:: stats .. py:class:: RotateProcesses(comm=MPI.COMM_WORLD) Context manager for rotating execution between MPI processes. :Parameters: **comm** (*MPI communicator, optional*) .. py:attribute:: comm .. py:attribute:: rank .. py:attribute:: size .. py:class:: Sync(comm=MPI.COMM_WORLD, enter=True, exit=True) Context manager for synchronizing MPI processes. :Parameters: * **enter** (*boolean, optional*) -- Apply MPI barrier on entering context. Default: True * **exit** (*boolean, optional*) -- Apply MPI barrier on exiting context. Default: True .. py:attribute:: comm .. py:attribute:: enter :value: True .. py:attribute:: exit :value: True .. py:function:: parallel_mkdir(path, comm=MPI.COMM_WORLD) Create a directory from root process.