Re: [ARTIQ] scans and generators on core device?

2017-10-20 Thread Sébastien Bourdeauducq via ARTIQ

On Friday, October 20, 2017 12:36 AM, Slichter, Daniel H. (Fed) wrote:

Judging from the absence of replies to this email, we will not
support generators on the core device nor MultiScanManager.

My main question with this is about time efficiency -- if you were to
go to the effort to support this on the core device
Note that scans can be supported on the device with just iterators and 
not generators (as explained in the issue).


Sébastien
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq


Re: [ARTIQ] scans and generators on core device?

2017-10-20 Thread Peter Zotov via ARTIQ

On 2017-10-19 16:36, Slichter, Daniel H. (Fed) via ARTIQ wrote:

Judging from the absence of replies to this email, we will not support
generators on the core device nor MultiScanManager.


My main question with this is about time efficiency -- if you were to
go to the effort to support this on the core device, will it end up
taking a lot longer (i.e. processor slack) than the current way of
just passing a list to the kernel which it can step through to scan
something?


Slightly slower for integer-only (after optimization) scans, and
quite a bit slower for FP scans, than just traversing the list.
However, compiling and loading very large lists as parts of kernels
is slow, so there's a spectrum from 1-10 steps (unrolled list
is clearly better) to 10,000-100,000 steps (generators are
clearly better), with some mixture of these in between.

--
Peter Zotov
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq