sb0 changed the topic of #m-labs to: https://m-labs.hk :: Logs http://irclog.whitequark.org/m-labs :: Due to spam bots, only registered users can talk. See: https://freenode.net/kb/answer/registration
<GitHub-m-labs> [artiq] sbourdeauducq commented on issue #1133: Note that the DACs are not properly synchronized with SC1:... https://github.com/m-labs/artiq/issues/1133#issuecomment-413069231
<GitHub-m-labs> [artiq] sbourdeauducq commented on issue #1133: Note that the DACs are not properly synchronized with SC1:... https://github.com/m-labs/artiq/issues/1133#issuecomment-413069231
strengthen has joined #m-labs
strengthen has quit [Killed (Sigyn (Spam is off topic on freenode.))]
depleted has joined #m-labs
depleted has quit [Remote host closed the connection]
<GitHub-m-labs> [artiq] sbourdeauducq commented on issue #1128: The current code isn't optimized (e.g. a lot of it is in plain - slow - interpreted Python), so it is certainly possible to speed it up. But someone has to study and implement the best ways to do it, it's not trivial. https://github.com/m-labs/artiq/issues/1128#issuecomment-413082027
<GitHub-m-labs> [artiq] sbourdeauducq commented on issue #1126: Other programs running on your machine - is this Windows? Network problems? Have you reproduced it with artiq_compile? https://github.com/m-labs/artiq/issues/1126#issuecomment-413082291
_whitelogger has joined #m-labs
October has joined #m-labs
October has quit [Remote host closed the connection]
<GitHub-m-labs> [artiq] sbourdeauducq commented on issue #1080: @gkasprow What was the problem? Why was it not found when measuring the clocks? https://github.com/m-labs/artiq/issues/1080#issuecomment-413090264
<whitequark> rjo: rustup update nightly, then `cargo rustc -- --emit=asm -Z asm-comments`
<whitequark> it now has comments like: @DEBUG_VALUE: mask <- $r2
Chords27 has joined #m-labs
Chords27 has quit [Remote host closed the connection]
<whitequark> rjo: so I figured out what's happening
<whitequark> afaict, rust/llvm lift the x slice in macc() to an array, then read the entire array into an LLVM register, then legalize it into many architecture registers, then spill them because the architecture doesn't have so many of them
<whitequark> mark IIR::apply and FIR::update with #[inline(never)] and take a look at the assembly
<whitequark> I might be wrong but it looks much nicer from here
lostlabyrinth24 has joined #m-labs
lostlabyrinth24 has quit [Remote host closed the connection]
<whitequark> rjo: ok nevermind, I'm wrong
acerbic13 has joined #m-labs
acerbic13 has quit [K-Lined]
rohitksingh has joined #m-labs
rohitksingh has quit [Client Quit]
sb0 has quit [Ping timeout: 272 seconds]
rohitksingh has joined #m-labs
rohitksingh has quit [Quit: Leaving.]
rohitksingh has joined #m-labs
<whitequark> rjo: ok, I was *almost* right
<whitequark> what it does is not just reads the entire array into an LLVM register, but rather unrolls the loop
<whitequark> different path, same semantics
rohitksingh has quit [Quit: Leaving.]
rohitksingh has joined #m-labs
<whitequark> rjo: unfortunately, fixing this is really hard
<whitequark> not only doesn't rustc expose any knobs to tune the behavior of optimizer, but you probably *want* loop unrolling here
<whitequark> judging by the #[inline(always)], anyway
<whitequark> so the root cause is the optimizer having no insight into the register allocator, and there's no good fix for that
<whitequark> actually, I have an idea
cwre has joined #m-labs
<rjo> whitequark: right. i definitely want loop unrolling.
rohitksingh has quit [Quit: Leaving.]
cwre has quit [Remote host closed the connection]
<rjo> whitequark: yes. inline=never on macc is more like the code i am looking for.
<whitequark> rjo: is this sufficient or should I continue looking?
<whitequark> code sinking didn't work on this code, but I have a few ideas left
<rjo> whitequark: not terribly important. the insight that is not my fault and that is is tricky to fix but should be fixable is good enough.
<rjo> whitequark: thanks a lot.
<whitequark> rjo: ack.
<whitequark> rjo: wait, you said inline(never) on macc
<whitequark> that will unnecessarily pessimize the code
<whitequark> rjo: what is the "width" "shift" and "offset" fields in FIR/IIR?
<whitequark> if you explain their semantics I think I can show you a way to write this that's nicer
<rjo> whitequark: yes. i tried inline(never) on macc _or_ on appply/update.
<rjo> both are ok-ish code. on macc it doesn't unroll the loop.
<rjo> and both are actually slower than the original code.
<whitequark> ah, amusing.
<whitequark> but that's to be expected
<whitequark> rjo: I imagine you want macc to be compile-time generic over width
<whitequark> you can't do that with const generics (because they don't exist) but you can do something with associated constants, to not rely on optimizer propagating that
rohitksingh has joined #m-labs
<whitequark> though I guess not having width known at compile time isn't very expensive
<rjo> macc(y0, x, a, width, shift) = clip((y0 + dot(x, a)) >> shift, -(1<<mask), (1<<mask) - 1)
<rjo> whitequark: yes. const generics would be nice. but i can live fine without here.
rohitksingh has quit [Client Quit]
<rjo> that's what macc is supposed to do.
<rjo> hmm.
<rjo> whitequark: width can actually go away. it'll always be 16-1
sb0 has joined #m-labs
acathla` is now known as acathla
rohitksingh has joined #m-labs
rohitksingh has quit [Client Quit]
cr1901_modern has quit [Read error: Connection reset by peer]
rohitksingh has joined #m-labs
rohitksingh has quit [Client Quit]
larsc has quit [Ping timeout: 248 seconds]
wolfspraul has quit [Read error: Connection reset by peer]
lars_ has joined #m-labs
lars_ is now known as larsc
ynyounuo18 has joined #m-labs
ynyounuo18 has quit [Remote host closed the connection]
rohitksingh has joined #m-labs
rohitksingh has quit [Client Quit]
<GitHub-m-labs> [artiq] jordens commented on issue #1133: @marmeladapk referring to your experiment above and assuming you are running this on a fresh boot (with the default values of accumulator auto clear), the phase of SAWG channel `n` should be `2*pi*f*(t + n*dt)` up to a common constant. With `f=7*MHz` and `dt=2*ms` and for all the frequency values you give above that phase is zero modulo `2*pi`. I.e. you for those values
sb0 has quit [Quit: Leaving]
rohitksingh has joined #m-labs
X-Scale has quit [Ping timeout: 272 seconds]
nhandler19 has joined #m-labs
nhandler19 has quit [Remote host closed the connection]
rohitksingh has quit [Quit: Leaving.]
Metacity13 has joined #m-labs
Metacity13 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
ThiefMaster18 has joined #m-labs
ThiefMaster18 has quit [Remote host closed the connection]
ldunn21 has joined #m-labs
ldunn21 has quit [Remote host closed the connection]
sb0 has joined #m-labs
jackmcbarn5 has joined #m-labs
jackmcbarn5 has quit [Remote host closed the connection]
felco26 has joined #m-labs
felco26 has quit [Remote host closed the connection]
timeless4 has joined #m-labs
timeless4 has quit [Remote host closed the connection]
c0ded has joined #m-labs
c0ded has quit [Remote host closed the connection]
Caraway29 has joined #m-labs
Caraway29 has quit [Remote host closed the connection]
cr1901_modern has joined #m-labs
X-Scale has joined #m-labs
if`m has joined #m-labs
if`m has quit [Remote host closed the connection]
Deusdeorum29 has joined #m-labs
Deusdeorum29 has quit [Remote host closed the connection]
<GitHub-m-labs> [artiq] jbqubit commented on issue #1126: No network problems that I've seen. Running Ubuntu with Linux kernel 4.15.0-30. ... https://github.com/m-labs/artiq/issues/1126#issuecomment-413239797
rohitksingh has joined #m-labs
<GitHub-m-labs> [artiq] sbourdeauducq commented on issue #1126: They are not silently dropped, you get a compilation error if you attempt RPCs. https://github.com/m-labs/artiq/issues/1126#issuecomment-413243724
rohitksingh has quit [Quit: Leaving.]
<GitHub-m-labs> [artiq] sbourdeauducq commented on issue #1126: Likely the "pauses" are in the compiler, or the rest of the Python program on the PC, or in your network. Try profiling artiq_run plus checking wireshark traces for problems. https://github.com/m-labs/artiq/issues/1126#issuecomment-413245542
<GitHub-m-labs> [artiq] jbqubit commented on issue #1126: @sbourdeauducq Have you tried my code? If you can't reproduce I'll look to a problem that's unique to my setup. https://github.com/m-labs/artiq/issues/1126#issuecomment-413253000
<GitHub-m-labs> [artiq] sbourdeauducq pushed 3 new commits to nix: https://github.com/m-labs/artiq/compare/ec97d636170f...0b1ce0ea3236
<GitHub-m-labs> artiq/nix 0b1ce0e Sebastien Bourdeauducq: nix: use original pyqtgraph and pyserial
<GitHub-m-labs> artiq/nix 487720d Sebastien Bourdeauducq: nix: remove sphinx (used for building doc, not running ARTIQ)
<GitHub-m-labs> artiq/nix 7003835 Sebastien Bourdeauducq: nix: update license
Guest83260 has joined #m-labs
Guest83260 has quit [Remote host closed the connection]
<GitHub-m-labs> [artiq] sbourdeauducq pushed 1 new commit to nix: https://github.com/m-labs/artiq/commit/73cf071b1a88dabcfead6e9c8b1536b4d49c1d09
<GitHub-m-labs> artiq/nix 73cf071 Sebastien Bourdeauducq: nix: update LLVM and llvmlite, remove clang (not needed for running)
<GitHub-m-labs> [artiq] jbqubit commented on issue #675: @hartytp Yes, this is funded. The contract calls for "SAWG monitoring and injection (sum only)." The detail is provided in the artiq-hardware writeup written with @jordens. [L195-6](https://github.com/m-labs/artiq-hardware/blob/1cec6224bfaf148cba14a5a1f69f537966d6887b/artiq_hardware.tex#L195)... https://github.com/m-labs/artiq/issues/675#issuecomment-413283781
insidious23 has joined #m-labs
Torgeir has joined #m-labs
insidious23 has quit [Remote host closed the connection]
Torgeir has quit [Remote host closed the connection]
<GitHub-m-labs> [artiq] vmsch commented on issue #1110: Sorry for the slow reply.... https://github.com/m-labs/artiq/issues/1110#issuecomment-413297439
edef has quit [Remote host closed the connection]
edef has joined #m-labs
<GitHub-m-labs> [artiq] hartytp commented on issue #675: @jbqubit in the original SU-servo contract I allocated funds for moninj support. However, on more detailed discussion with @jordens, it turned out that moninj support was going to be a lot more work than I'd anticipated. Discussing this with the other ARTIQ-users at Oxford, we agreed that, given the workflow we have in our experiments, SU-servo moninj wasn't going to be
<cr1901_modern> So I take it you like nix, sb0 :P
smidlers0 has joined #m-labs
smidlers0 has quit [Remote host closed the connection]
<GitHub-m-labs> [artiq] philipkent opened issue #1134: Connection reset by peer error breaks DDS/TTL panel https://github.com/m-labs/artiq/issues/1134
<GitHub-m-labs> [artiq] jbqubit commented on issue #801: This was funded 4/18/2017. The implementation detail is provided in the artiq-hardware writeup written with @jordens. [L245](https://github.com/m-labs/artiq-hardware/blob/1cec6224bfaf148cba14a5a1f69f537966d6887b/artiq_hardware.tex#L245) Here's a rendered version. ... https://github.com/m-labs/artiq/issues/801#issuecomment-413330645
little-dude has joined #m-labs
eNigmaFx28 has joined #m-labs
eNigmaFx28 has quit [Remote host closed the connection]
tomek12 has joined #m-labs
tomek12 has quit [Ping timeout: 260 seconds]
<GitHub-m-labs> [artiq] jbqubit commented on issue #675: The only problem I'm aware of with moninj has to do with the GUI layout. An analysis of the resource consumption of moninj in a new Issue would help clarify the situation. https://github.com/m-labs/artiq/issues/675#issuecomment-413351007
hjr3 has quit [Ping timeout: 240 seconds]
hjr3 has joined #m-labs
<GitHub-m-labs> [artiq] sbourdeauducq commented on issue #1134: Is restarting the dashboard sufficient or do you *have* to restart the core device as well?... https://github.com/m-labs/artiq/issues/1134#issuecomment-413376935
<GitHub-m-labs> [artiq] sbourdeauducq commented on issue #1134: Is restarting the dashboard sufficient or do you *have* to restart the core device as well? Most certainly, you don't have to restart the master.... https://github.com/m-labs/artiq/issues/1134#issuecomment-413376935
<GitHub-m-labs> [artiq] sbourdeauducq commented on issue #1134: Is restarting the dashboard sufficient or do you *have* to restart the core device as well? Most certainly, you don't have to restart the master.... https://github.com/m-labs/artiq/issues/1134#issuecomment-413376935