Charm4py v1.0 released #190
matthiasdiener
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@juanjgalvez
Sep 15 2019
Charm4py started development two years ago. Today we are happy to announce the release of version 1.0. This marks an important milestone, containing many improvements that simplify how Charm4py programs are written. The documentation has been heavily updated, and contains an introduction with examples and a tutorial that should help get up to speed.
Some of the highlights of the release are:
@coro
decorator. Coroutines simplify concurrent programming when used with Futures and Channels.g = Group(MyChare, onPEs=[0,4,8...])
.-Added
charm.wait(awaitables)
that waits for the given objects to become ready (works for futures and channels).charm.iwait(awaitables)
that iteratively yields objects as they become ready (works for futures and channels).Added ARM support (tested on Raspberry Pi 3 B+).
someproxy[3].somemethod
is a valid callback that can be sent (requires Python 3+).ret=True
keyword argument now has the same semantics for broadcast calls as for point-to-point calls: the future will receive the return values. For the broadcast case, it will be a list of return values (of all the called elements), sorted by element index.awaitable
keyword argument to proxy calls, to wait for completion without sending return values to the caller.charm.updateGlobals(dict, module_name)
is a remote method that can be called to update global values on any PE at any time (typically used as a broadcast call). It has the same rules and semantics as any other proxy call, so it can be waited upon.awaitable=True
orret=True
) and an exception happens in the remote method, it is propagated to the caller.migrated
that applications can redefine to get notified when a chare has migrated.Chare.setMigratable(bool)
to indicate whether a chare that is part of an Array can be migrated or not.Beta Was this translation helpful? Give feedback.
All reactions