forked from M-Labs/artiq
language: report special python IDs
This commit is contained in:
parent
7c6d64417d
commit
d13f3f4a13
@ -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
|
||||
|
@ -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)."""
|
||||
|
Loading…
Reference in New Issue
Block a user