Skip to content

Commit

Permalink
docs: subkernels can call other subkernels now
Browse files Browse the repository at this point in the history
  • Loading branch information
Spaqin committed Dec 13, 2023
1 parent f408c4b commit 03023f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions artiq/language/core.py
Expand Up @@ -72,8 +72,8 @@ def subkernel(arg=None, destination=0, flags={}):
Subkernels behave similarly to kernels, with few key differences:
- they are started from main kernels,
- they do not support RPCs, or running subsequent subkernels on other devices,
- but they can call other kernels or subkernels with the same destination.
- they do not support RPCs,
- but they can call other kernels or subkernels.
Subkernels can accept arguments and return values. However, they must be fully
annotated with ARTIQ types.
Expand Down
4 changes: 2 additions & 2 deletions doc/manual/getting_started_core.rst
Expand Up @@ -275,7 +275,7 @@ Subkernels refer to kernels running on a satellite device. This allows you to of

Subkernels behave in most part as regular kernels, they accept arguments and can return values. However, there are few caveats:

- they do not support RPCs or calling subsequent subkernels on other devices,
- they do not support RPCs,
- they do not support DRTIO,
- their return value must be fully annotated with an ARTIQ type,
- their arguments should be annotated, and only basic ARTIQ types are supported,
Expand Down Expand Up @@ -310,7 +310,7 @@ Subkernels are compiled after the main kernel, and then immediately uploaded to

While ``self`` is accepted as an argument for subkernels, it is embedded into the compiled data. Any changes made by the main kernel or other subkernels, will not be available.

Subkernels can call other kernels and subkernels, if they're within the same destination. For a more complex example: ::
Subkernels can call other kernels and subkernels. For a more complex example: ::

from artiq.experiment import *

Expand Down

0 comments on commit 03023f6

Please sign in to comment.