forked from M-Labs/artiq
coredevice: fix execution of several kernels with attribute writeback
This commit is contained in:
parent
0190604ba0
commit
0233e50d47
|
@ -57,7 +57,6 @@ class Core:
|
||||||
self.comm.core = self
|
self.comm.core = self
|
||||||
self.target = target
|
self.target = target
|
||||||
self.compiler = nac3artiq.NAC3(target)
|
self.compiler = nac3artiq.NAC3(target)
|
||||||
self.embedding_map = EmbeddingMap()
|
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
self.comm.close()
|
self.comm.close()
|
||||||
|
@ -80,7 +79,8 @@ class Core:
|
||||||
self.compiler.compile_method_to_file(obj, name, args, file_output, embedding_map)
|
self.compiler.compile_method_to_file(obj, name, args, file_output, embedding_map)
|
||||||
|
|
||||||
def run(self, function, args, kwargs):
|
def run(self, function, args, kwargs):
|
||||||
kernel_library = self.compile(function, args, kwargs, self.embedding_map)
|
embedding_map = EmbeddingMap()
|
||||||
|
kernel_library = self.compile(function, args, kwargs, embedding_map)
|
||||||
if self.first_run:
|
if self.first_run:
|
||||||
self.comm.check_system_info()
|
self.comm.check_system_info()
|
||||||
self.first_run = False
|
self.first_run = False
|
||||||
|
@ -89,7 +89,7 @@ class Core:
|
||||||
|
|
||||||
self.comm.load(kernel_library)
|
self.comm.load(kernel_library)
|
||||||
self.comm.run()
|
self.comm.run()
|
||||||
self.comm.serve(self.embedding_map, symbolizer)
|
self.comm.serve(embedding_map, symbolizer)
|
||||||
|
|
||||||
@portable
|
@portable
|
||||||
def seconds_to_mu(self, seconds: float) -> int64:
|
def seconds_to_mu(self, seconds: float) -> int64:
|
||||||
|
|
Loading…
Reference in New Issue