{"action":"created","issue":{"url":"https://api.github.com/repos/ddigiorg/simple-cortex/issues/6","repository_url":"https://api.github.com/repos/ddigiorg/simple-cortex","labels_url":"https://api.github.com/repos/ddigiorg/simple-cortex/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ddigiorg/simple-cortex/issues/6/comments","events_url":"https://api.github.com/repos/ddigiorg/simple-cortex/issues/6/events","html_url":"https://github.com/ddigiorg/simple-cortex/pull/6","id":264128691,"number":6,"title":"arrNBoosts and arrNstates are already pointers","user":{"login":"cetex","id":3268506,"avatar_url":"https://avatars3.githubusercontent.com/u/3268506?v=4","gravatar_id":"","url":"https://api.github.com/users/cetex","html_url":"https://github.com/cetex","followers_url":"https://api.github.com/users/cetex/followers","following_url":"https://api.github.com/users/cetex/following{/other_user}","gists_url":"https://api.github.com/users/cetex/gists{/gist_id}","starred_url":"https://api.github.com/users/cetex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cetex/subscriptions","organizations_url":"https://api.github.com/users/cetex/orgs","repos_url":"https://api.github.com/users/cetex/repos","events_url":"https://api.github.com/users/cetex/events{/privacy}","received_events_url":"https://api.github.com/users/cetex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-10T07:46:04Z","updated_at":"2017-10-10T07:52:06Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ddigiorg/simple-cortex/pulls/6","html_url":"https://github.com/ddigiorg/simple-cortex/pull/6","diff_url":"https://github.com/ddigiorg/simple-cortex/pull/6.diff","patch_url":"https://github.com/ddigiorg/simple-cortex/pull/6.patch"},"body":"Don't take pointers to pointers (wrong) although both works on GCC 6.3.0 with intel-opencl"},"comment":{"url":"https://api.github.com/repos/ddigiorg/simple-cortex/issues/comments/335390731","html_url":"https://github.com/ddigiorg/simple-cortex/pull/6#issuecomment-335390731","issue_url":"https://api.github.com/repos/ddigiorg/simple-cortex/issues/6","id":335390731,"user":{"login":"cetex","id":3268506,"avatar_url":"https://avatars3.githubusercontent.com/u/3268506?v=4","gravatar_id":"","url":"https://api.github.com/users/cetex","html_url":"https://github.com/cetex","followers_url":"https://api.github.com/users/cetex/followers","following_url":"https://api.github.com/users/cetex/following{/other_user}","gists_url":"https://api.github.com/users/cetex/gists{/gist_id}","starred_url":"https://api.github.com/users/cetex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cetex/subscriptions","organizations_url":"https://api.github.com/users/cetex/orgs","repos_url":"https://api.github.com/users/cetex/repos","events_url":"https://api.github.com/users/cetex/events{/privacy}","received_events_url":"https://api.github.com/users/cetex/received_events","type":"User","site_admin":false},"created_at":"2017-10-10T07:52:05Z","updated_at":"2017-10-10T07:52:05Z","author_association":"CONTRIBUTOR","body":"@Thanh-Binh Just realized that this might be the problem, how does this work for you?\r\n\r\nIf this isn't enough and it crashes later on i'm guessing we also need to dereference the pointers here:\r\nhttps://github.com/cetex/simple-cortex/blob/891362ef6ef60b7e17489aad37304e9e26ff7221/source/cortex/area.cpp#L80-L81\r\n\r\n\t\tcs.getQueue().enqueueWriteBuffer(_bufferNBoosts, CL_TRUE, 0, _numbytesNBoosts, arrNBoosts);\r\n\t\tcs.getQueue().enqueueWriteBuffer(_bufferNStates, CL_TRUE, 0, _numbytesNStates, arrNStates);\r\n\r\nHere we're sending a pointer of arrNBoosts and arrNStates into enqueueWriteBuffer, if it crashes here could you try adding an asterisk before the two variables arrNBoosts and arrNStates so that we're sending the actual array into enqueueWriteBuffer instead of sending a pointer to the array?\r\nit should end up being looking like this:\r\n\t\tcs.getQueue().enqueueWriteBuffer(_bufferNBoosts, CL_TRUE, 0, _numbytesNBoosts, *arrNBoosts);\r\n\t\tcs.getQueue().enqueueWriteBuffer(_bufferNStates, CL_TRUE, 0, _numbytesNStates, *arrNStates);\r\n"}}
{"actor":{"display_login":"cetex"}}