forked from M-Labs/artiq
1
0
Fork 0
Commit Graph

127 Commits

Author SHA1 Message Date
Sebastien Bourdeauducq 7d6ebabc1b reorganize core device communication code 2017-02-27 18:37:30 +08:00
Sebastien Bourdeauducq bd55436668 protocols: increase asyncio line limit. Closes #671 2017-02-17 20:46:23 +08:00
Sebastien Bourdeauducq dcea48a52d protocols/broadcast,sync_struct: add disconnect callback 2017-01-30 10:47:56 +08:00
Sebastien Bourdeauducq 3743633b04 Revert "pc_rpc: use ProactorEventLoop on Windows (#627)"
This reverts commit 7d4297b9bb.
2016-12-12 11:33:56 +08:00
Sebastien Bourdeauducq bc36bda94a perform RTIO init on comms CPU side 2016-12-09 14:16:55 +08:00
Sebastien Bourdeauducq 88ad054ab6 Merge branch 'drtio' 2016-12-03 23:25:17 +08:00
Sebastien Bourdeauducq 7d4297b9bb pc_rpc: use ProactorEventLoop on Windows (#627) 2016-11-24 10:19:13 +08:00
Sebastien Bourdeauducq 9acc7d135e gateware: common RTIO interface 2016-11-22 22:46:50 +08:00
Sebastien Bourdeauducq c7c8ad126f pc_rpc: raise AttributeError immediately for nonexistent RPC methods. Closes #534 2016-09-14 11:22:07 +08:00
whitequark 8a40871f30 protocols.pc_rpc: exclude kernel_invariants from proxying.
Fixes #531.
2016-08-03 04:59:17 +00:00
Robert Jördens c0d59140fe pc_rpc: increase firstcon_timeout to 1 s
let's see whether this is enough on windows:

http://buildbot.m-labs.hk/builders/artiq-win64-test/builds/258/steps/python_unittest/logs/stdio

test_attenuation (artiq.test.test_lda.TestLda) ... first connection attempt to ::1:3253[<class 'artiq.protocols.pc_rpc.AutoTarget'>] failed, retrying in the background
Traceback (most recent call last):
  File "c:\slave64\artiq-win64-test\build\artiq\protocols\pc_rpc.py", line 301, in __init__
    self.__coninit(firstcon_timeout)
  File "c:\slave64\artiq-win64-test\build\artiq\protocols\pc_rpc.py", line 317, in __coninit
    (self.__host, self.__port), timeout)
  File "c:\slave64\miniconda\envs\buildbot-artiq-win64-test-258\lib\socket.py", line 711, in create_connection
    raise err
  File "c:\slave64\miniconda\envs\buildbot-artiq-win64-test-258\lib\socket.py", line 702, in create_connection
    sock.connect(sa)
socket.timeout: timed out
2016-07-13 18:45:57 +02:00
Sebastien Bourdeauducq 1c32d4fb71 monkey-patch Python 3.5.2 to disable broken asyncio.base_events._ipaddr_info optimization (#506) 2016-07-13 11:35:16 +08:00
Sebastien Bourdeauducq c065b5866f require Python 3.5.2, remove monkey patches 2016-07-07 14:55:21 +08:00
whitequark 906db876a6 language: replace coredevice int with numpy.{int32,int64}.
Fixes #453.
2016-07-06 04:44:21 +00:00
Sebastien Bourdeauducq 033aa33c9e pyon: support slices 2016-06-15 19:18:46 +08:00
Sebastien Bourdeauducq 7fb6b3db21 protocols/broadcast: minor fixes 2016-05-25 10:32:36 -05:00
Sebastien Bourdeauducq 9dd7ea0bcd protocols: add broadcast (untested) 2016-05-22 17:20:39 -07:00
Sebastien Bourdeauducq 114b305203 use recommended asyncio.ensure_future instead of asyncio.Task 2016-05-22 16:36:29 -07:00
Robert Jördens fbd3db5753 pyon: move string escaping table, add more info in errors 2016-05-22 16:53:39 +02:00
Robert Jördens 9e681590cb pyon: ship ndarray data as bytes
this is about 3 times faster and since the encapsulating nparray() already
breaks json-compatibility, using a unicode string for json compatibility
is not necessary
2016-05-22 16:53:37 +02:00
Robert Jördens a9434d2e9f pyon: use dtype.str
* contains endianess, makes this portable
* it's shorter
* it's what the numpy array interfaces uses
* this is otherwise backwards and forwards compatible
2016-05-22 16:52:59 +02:00
Robert Jördens ec5eca0111 pyon: no float128 on windows 2016-04-24 15:44:48 +02:00
Robert Jördens 22946a0c2f pyon: complex types 2016-04-24 14:24:41 +02:00
Sebastien Bourdeauducq eb68ab9ad0 doc: remote execution 2016-04-06 19:13:41 +08:00
Sebastien Bourdeauducq aa61c29efb transfer Python builtin exceptions over pc_rpc and master/worker 2016-04-04 22:02:42 +08:00
Sebastien Bourdeauducq f860548396 protocols/pyon: minor cleanup 2016-04-04 21:34:37 +08:00
Sebastien Bourdeauducq 4ce00e3b7a protocols/remote_exec: add connect_global_rpc 2016-04-04 19:09:23 +08:00
Sebastien Bourdeauducq 059836c591 protocols/remote_exec: give access to controller_initial_namespace 2016-04-04 19:09:03 +08:00
Sebastien Bourdeauducq 69516136c4 protocols/pc_rpc: add get_local_host to clients 2016-04-04 19:07:08 +08:00
Sebastien Bourdeauducq 1a288e07cc protocols/remote_exec: simplify, use global namespace 2016-04-02 22:44:27 +08:00
Sebastien Bourdeauducq 67ab8dbfa5 protocols/pc_rpc: short_exc_info 2016-03-25 19:43:34 +08:00
Sebastien Bourdeauducq e9ca125976 protocols/remote_exec: fix call 2016-03-25 14:55:29 +08:00
Sebastien Bourdeauducq e6809397a3 protocols: add remote_exec 2016-03-24 00:49:02 +08:00
Sebastien Bourdeauducq 168113ce55 protocols/pc_rpc: support dynamic target creation 2016-03-23 15:13:56 +08:00
Sebastien Bourdeauducq 120db8ba08 protocols/pipe_ipc: raise line length limit 2016-03-23 15:12:29 +08:00
Sebastien Bourdeauducq 2cbe47e26f protocols/pc_rpc: document coroutine methods, support locking 2016-03-22 21:55:06 +08:00
Sebastien Bourdeauducq 8a6873cab2 analyzer: use EOP, flush pipeline on stop 2016-03-15 17:49:59 +08:00
Sebastien Bourdeauducq 579168f06f monkey-patch asyncio.proactor_events to handle ConnectionAbortedError on Windows. Closes #247 2016-03-10 15:11:10 +08:00
Sebastien Bourdeauducq 71105fd0d7 rtio: collision_error -> collision 2016-03-08 15:38:35 +08:00
Sebastien Bourdeauducq 946bd84b58 protocols/pc_rpc: support retrieving selected target 2016-03-02 11:45:31 +08:00
Sebastien Bourdeauducq b0526c3354 protocols/pipe_ipc: fix resource leak on Windows 2016-03-01 14:49:04 +08:00
Sebastien Bourdeauducq 9a6354b959 protocols/pc_rpc: raise asyncio line length limit for client 2016-02-22 13:04:21 +08:00
Sebastien Bourdeauducq 25f6afd08a protocols/asyncio_server: raise asyncio line length limit. Closes #285 2016-02-22 12:06:23 +08:00
Sebastien Bourdeauducq 8da455d5db protocols/sync_struct: raise asyncio line length limit 2016-02-22 02:11:36 +08:00
Sebastien Bourdeauducq 5f5427f51f protocols/pipe_ipc: work around race condition with loop.start_serving_pipe/close on Windows 2016-02-19 17:39:30 +01:00
Robert Jördens 055573a4af Merge branch 'subprocess-termination'
* subprocess-termination:
  test_ctlmgr: fix
  Client: add note about timeout sideeffects
  hardware_testbench: full shutdown sequence for controllers
  worker: flake8 style cleanup
  ctlmgr: fix import
  pc_rpc.Client: support socket timeouts
  subprocesses: unify termination logic
2016-02-14 22:28:11 +01:00
Sebastien Bourdeauducq 4a03335850 protocols/pipe_ipc: fix read transport resource leak
This caused the "Exception ignored in:" message on exit.
2016-02-11 17:12:05 +01:00
Robert Jördens 6434a9cd5f Merge branch 'master' into subprocess-termination
* master: (44 commits)
  Revert "conda: restrict binutils-or1k-linux dependency to linux."
  manual/installing: refresh
  use https for m-labs.hk
  gui/log: top cell alignment
  master/log: do not break lines
  conda: fix pyqt package name
  gui/applets: log warning if IPC address not in command
  applets: make sure pyqtgraph imports qt5
  applets: avoid argparse subparser mess
  examples/histogram: artiq -> artiq.experiment
  gui/applets: save dock UID in state
  setup.py: give up trying to check for PyQt
  setup.py: fix PyQt5 package name
  Use Qt5
  applets: fix error message text
  applets: handle dataset mutations
  applets: properly name docks to support state save/restore
  applets: clean shutdown
  protocols/pyon: set support
  protocols/pyon: remove FlatFileDB
  ...
2016-02-11 09:24:45 +01:00
Sebastien Bourdeauducq 8be0696b39 protocols/pyon: set support 2016-02-08 14:08:14 +01:00
Sebastien Bourdeauducq 8a912105cb protocols/pyon: remove FlatFileDB 2016-02-08 14:05:00 +01:00