{"action":"created","issue":{"url":"https://api.github.com/repos/bh107/bohrium/issues/44","labels_url":"https://api.github.com/repos/bh107/bohrium/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/bh107/bohrium/issues/44/comments","events_url":"https://api.github.com/repos/bh107/bohrium/issues/44/events","html_url":"https://github.com/bh107/bohrium/issues/44","id":104482573,"number":44,"title":"Sending single element arrays into Bohrium causes errors with CPU VE","user":{"login":"kenkendk","id":1510755,"avatar_url":"https://avatars.githubusercontent.com/u/1510755?v=3","gravatar_id":"","url":"https://api.github.com/users/kenkendk","html_url":"https://github.com/kenkendk","followers_url":"https://api.github.com/users/kenkendk/followers","following_url":"https://api.github.com/users/kenkendk/following{/other_user}","gists_url":"https://api.github.com/users/kenkendk/gists{/gist_id}","starred_url":"https://api.github.com/users/kenkendk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenkendk/subscriptions","organizations_url":"https://api.github.com/users/kenkendk/orgs","repos_url":"https://api.github.com/users/kenkendk/repos","events_url":"https://api.github.com/users/kenkendk/events{/privacy}","received_events_url":"https://api.github.com/users/kenkendk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"safl","id":608657,"avatar_url":"https://avatars.githubusercontent.com/u/608657?v=3","gravatar_id":"","url":"https://api.github.com/users/safl","html_url":"https://github.com/safl","followers_url":"https://api.github.com/users/safl/followers","following_url":"https://api.github.com/users/safl/following{/other_user}","gists_url":"https://api.github.com/users/safl/gists{/gist_id}","starred_url":"https://api.github.com/users/safl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safl/subscriptions","organizations_url":"https://api.github.com/users/safl/orgs","repos_url":"https://api.github.com/users/safl/repos","events_url":"https://api.github.com/users/safl/events{/privacy}","received_events_url":"https://api.github.com/users/safl/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-09-02T13:34:31Z","updated_at":"2015-10-22T12:09:52Z","closed_at":null,"body":"Can be done with NumPy:\r\n\r\n```\r\nimport numpy as np\r\n\r\nm = np.empty(1, )\r\nm[0] = np.float32(0.5)\r\n\r\nprint np.add.reduce(np.arange(10, dtype=np.float32) * m)\r\n# Output is 0.0, expected 22.5\r\n\r\nprint np.add.reduce(np.arange(10, dtype=np.float32) * np.float32(0.5))\r\n# Output is 22.5\r\n```"},"comment":{"url":"https://api.github.com/repos/bh107/bohrium/issues/comments/150201986","html_url":"https://github.com/bh107/bohrium/issues/44#issuecomment-150201986","issue_url":"https://api.github.com/repos/bh107/bohrium/issues/44","id":150201986,"user":{"login":"madsbk","id":1041088,"avatar_url":"https://avatars.githubusercontent.com/u/1041088?v=3","gravatar_id":"","url":"https://api.github.com/users/madsbk","html_url":"https://github.com/madsbk","followers_url":"https://api.github.com/users/madsbk/followers","following_url":"https://api.github.com/users/madsbk/following{/other_user}","gists_url":"https://api.github.com/users/madsbk/gists{/gist_id}","starred_url":"https://api.github.com/users/madsbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madsbk/subscriptions","organizations_url":"https://api.github.com/users/madsbk/orgs","repos_url":"https://api.github.com/users/madsbk/repos","events_url":"https://api.github.com/users/madsbk/events{/privacy}","received_events_url":"https://api.github.com/users/madsbk/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T12:09:52Z","updated_at":"2015-10-22T12:09:52Z","body":"Shape: [10], [10]\r\nscalar: false\r\nSweeps:\r\nInput views:\r\n3:[ Dims: 1 Start: 0 Shape: 10 Stride: 0 Base=>[ Addr: 0x1831e40 Type: BH_UINT64 #elem: 1 Data: (nil) ]]\r\nOutput views:\r\n4:[ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b5af50 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\nParameters:\r\n[3][ Addr: 0x1831e40 Type: BH_UINT64 #elem: 1 Data: (nil) ]\r\n[4][ Addr: 0x1b5af50 Type: BH_UINT64 #elem: 10 Data: (nil) ]\r\nConstants:\r\n[ CONST(BH_UINT64)=1 ]\r\n[ CONST(BH_UINT64)=0 ]\r\nTemp base-arrays:\r\n[ Addr: 0x1b56bc0 Type: BH_UINT64 #elem: 10 Data: (nil) ]\r\n[ Addr: 0x1b8df80 Type: BH_UINT64 #elem: 10 Data: (nil) ]\r\n[ Addr: 0x1b956e0 Type: BH_UINT64 #elem: 10 Data: (nil) ]\r\nFree base-arrays:\r\n[ Addr: 0x1b7ffe0 Type: BH_UINT64 #elem: 10 Data: (nil) ]\r\nDiscard base-arrays:\r\n[ Addr: 0x1b7ffe0 Type: BH_UINT64 #elem: 10 Data: (nil) ]\r\nSync base-arrays:\r\n[1] BH_RANGE OPS=1{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b956e0 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\n}\r\n[2] BH_FREE OPS=1{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b7ffe0 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\n}\r\n[3] BH_DISCARD OPS=1{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b7ffe0 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\n}\r\n[4] BH_MULTIPLY OPS=3{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b8df80 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\nOP1 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b956e0 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\nOP2 [ CONST(BH_UINT64)=1 ]\r\n}\r\n[5] BH_FREE OPS=1{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b956e0 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\n}\r\n[6] BH_DISCARD OPS=1{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b956e0 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\n}\r\n[7] BH_ADD OPS=3{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b56bc0 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\nOP1 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b8df80 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\nOP2 [ CONST(BH_UINT64)=0 ]\r\n}\r\n[8] BH_FREE OPS=1{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b8df80 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\n}\r\n[9] BH_DISCARD OPS=1{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b8df80 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\n}\r\n[10] BH_ADD OPS=3{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b5af50 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\nOP1 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b56bc0 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\nOP2 [ Dims: 1 Start: 0 Shape: 10 Stride: 0 Base=>[ Addr: 0x1831e40 Type: BH_UINT64 #elem: 1 Data: (nil) ]]\r\n}\r\n[11] BH_FREE OPS=1{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b56bc0 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\n}\r\n[12] BH_DISCARD OPS=1{\r\nOP0 [ Dims: 1 Start: 0 Shape: 10 Stride: 1 Base=>[ Addr: 0x1b56bc0 Type: BH_UINT64 #elem: 10 Data: (nil) ]]\r\n}"}}