{"action":"created","issue":{"url":"https://api.github.com/repos/nengo/nengo_ocl/issues/64","labels_url":"https://api.github.com/repos/nengo/nengo_ocl/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/nengo/nengo_ocl/issues/64/comments","events_url":"https://api.github.com/repos/nengo/nengo_ocl/issues/64/events","html_url":"https://github.com/nengo/nengo_ocl/pull/64","id":69645455,"number":64,"title":"Fixed 'EOF' error on OS X","user":{"login":"hunse","id":1952250,"avatar_url":"https://avatars.githubusercontent.com/u/1952250?v=3","gravatar_id":"","url":"https://api.github.com/users/hunse","html_url":"https://github.com/hunse","followers_url":"https://api.github.com/users/hunse/followers","following_url":"https://api.github.com/users/hunse/following{/other_user}","gists_url":"https://api.github.com/users/hunse/gists{/gist_id}","starred_url":"https://api.github.com/users/hunse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hunse/subscriptions","organizations_url":"https://api.github.com/users/hunse/orgs","repos_url":"https://api.github.com/users/hunse/repos","events_url":"https://api.github.com/users/hunse/events{/privacy}","received_events_url":"https://api.github.com/users/hunse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nengo/nengo_ocl/labels/needs%20review","name":"needs review","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"jgosmann","id":850157,"avatar_url":"https://avatars.githubusercontent.com/u/850157?v=3","gravatar_id":"","url":"https://api.github.com/users/jgosmann","html_url":"https://github.com/jgosmann","followers_url":"https://api.github.com/users/jgosmann/followers","following_url":"https://api.github.com/users/jgosmann/following{/other_user}","gists_url":"https://api.github.com/users/jgosmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jgosmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgosmann/subscriptions","organizations_url":"https://api.github.com/users/jgosmann/orgs","repos_url":"https://api.github.com/users/jgosmann/repos","events_url":"https://api.github.com/users/jgosmann/events{/privacy}","received_events_url":"https://api.github.com/users/jgosmann/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-20T18:02:28Z","updated_at":"2015-04-21T02:01:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nengo/nengo_ocl/pulls/64","html_url":"https://github.com/nengo/nengo_ocl/pull/64","diff_url":"https://github.com/nengo/nengo_ocl/pull/64.diff","patch_url":"https://github.com/nengo/nengo_ocl/pull/64.patch"},"body":"See issue #51 for a full description of the error. The fix is to\r\nadd a scalar argument to the dummy kernel used by `plan.py:Marker`.\r\n\r\nHopefully this works. @jgosmann, can you check and make sure this fixes the problem on OS X?"},"comment":{"url":"https://api.github.com/repos/nengo/nengo_ocl/issues/comments/94611348","html_url":"https://github.com/nengo/nengo_ocl/pull/64#issuecomment-94611348","issue_url":"https://api.github.com/repos/nengo/nengo_ocl/issues/64","id":94611348,"user":{"login":"jgosmann","id":850157,"avatar_url":"https://avatars.githubusercontent.com/u/850157?v=3","gravatar_id":"","url":"https://api.github.com/users/jgosmann","html_url":"https://github.com/jgosmann","followers_url":"https://api.github.com/users/jgosmann/followers","following_url":"https://api.github.com/users/jgosmann/following{/other_user}","gists_url":"https://api.github.com/users/jgosmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jgosmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgosmann/subscriptions","organizations_url":"https://api.github.com/users/jgosmann/orgs","repos_url":"https://api.github.com/users/jgosmann/repos","events_url":"https://api.github.com/users/jgosmann/events{/privacy}","received_events_url":"https://api.github.com/users/jgosmann/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T02:01:27Z","updated_at":"2015-04-21T02:01:27Z","body":"That fixes the original \"No kernels or only kernel prototypes found when build executable.\" error. Now everything fails with \"LogicError: clEnqueueNDRangeKernel failed: invalid work group size\".\r\n\r\n```\r\n____________ test.nengo.tests.test_connection.test_slicing_function ____________\r\n\r\nSimulator = <function OclSimulator at 0x10dd8c5f0>\r\nplt = <nengo.utils.testing.Mock object at 0x10ec956d0>, seed = 514211999\r\n\r\n    def test_slicing_function(Simulator, plt, seed):\r\n        \"\"\"Test using a pre-slice and a function\"\"\"\r\n        N = 300\r\n        f_in = lambda t: [np.cos(3*t), np.sin(3*t)]\r\n        f_x = lambda x: [x, -x**2]\r\n\r\n        with nengo.Network(seed=seed) as model:\r\n            u = nengo.Node(output=f_in)\r\n            a = nengo.Ensemble(N, 2, radius=np.sqrt(2))\r\n            b = nengo.Ensemble(N, 2, radius=np.sqrt(2))\r\n            nengo.Connection(u, a)\r\n            nengo.Connection(a[1], b, function=f_x)\r\n\r\n            up = nengo.Probe(u, synapse=0.03)\r\n            bp = nengo.Probe(b, synapse=0.03)\r\n\r\n        sim = Simulator(model)\r\n>       sim.run(1.)\r\n\r\n../nengo/nengo/tests/test_connection.py:511:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\nnengo_ocl/sim_npy.py:850: in run\r\n    self.run_steps(steps)\r\nnengo_ocl/sim_ocl.py:342: in run_steps\r\n    self._dag.call_n_times(B)\r\nnengo_ocl/plan.py:138: in call_n_times\r\n    last_ev, all_evs = self.enqueue_n_times(n)\r\nnengo_ocl/plan.py:152: in enqueue_n_times\r\n    return self._enqueue_n_times_serial(n)\r\nnengo_ocl/plan.py:159: in _enqueue_n_times_serial\r\n    ev = plan.enqueue()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <nengo_ocl.plan.Plan object at 0x10f320110>, wait_for = None\r\n\r\n    def enqueue(self, wait_for=None):\r\n        ev = cl.enqueue_nd_range_kernel(\r\n            self.queue, self.kern, self.gsize, self.lsize,\r\n>           wait_for=wait_for)\r\nE       LogicError: clEnqueueNDRangeKernel failed: invalid work group size\r\n\r\nnengo_ocl/plan.py:86: LogicError\r\n```"}}