1
0
forked from M-Labs/artiq

language: report special python IDs

This commit is contained in:
occheung 2025-02-10 11:06:58 +08:00 committed by Sébastien Bourdeauducq
parent 7c6d64417d
commit d13f3f4a13
2 changed files with 7 additions and 0 deletions

View File

@ -109,6 +109,7 @@ class Core:
self.compiler.analyze(
core_language._registered_functions,
core_language._registered_classes,
core_language._special_ids,
core_language._registered_modules
)
self.analyzed = True

View File

@ -227,6 +227,12 @@ parallel = _ParallelContextManager()
legacy_parallel = _ParallelContextManager()
sequential = _SequentialContextManager()
_special_ids = {
"parallel": id(parallel),
"legacy_parallel": id(legacy_parallel),
"sequential": id(sequential),
}
def delay_mu(duration):
"""Increases the RTIO time by the given amount (in machine units)."""