{"action":"created","issue":{"url":"https://api.github.com/repos/HPCE/hpce-2017-cw3/issues/56","repository_url":"https://api.github.com/repos/HPCE/hpce-2017-cw3","labels_url":"https://api.github.com/repos/HPCE/hpce-2017-cw3/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/HPCE/hpce-2017-cw3/issues/56/comments","events_url":"https://api.github.com/repos/HPCE/hpce-2017-cw3/issues/56/events","html_url":"https://github.com/HPCE/hpce-2017-cw3/issues/56","id":269567440,"number":56,"title":"Problem Making Isolation Clean","user":{"login":"xAffinity","id":25639513,"avatar_url":"https://avatars2.githubusercontent.com/u/25639513?v=4","gravatar_id":"","url":"https://api.github.com/users/xAffinity","html_url":"https://github.com/xAffinity","followers_url":"https://api.github.com/users/xAffinity/followers","following_url":"https://api.github.com/users/xAffinity/following{/other_user}","gists_url":"https://api.github.com/users/xAffinity/gists{/gist_id}","starred_url":"https://api.github.com/users/xAffinity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xAffinity/subscriptions","organizations_url":"https://api.github.com/users/xAffinity/orgs","repos_url":"https://api.github.com/users/xAffinity/repos","events_url":"https://api.github.com/users/xAffinity/events{/privacy}","received_events_url":"https://api.github.com/users/xAffinity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-30T11:33:39Z","updated_at":"2017-10-30T17:06:46Z","closed_at":null,"author_association":"NONE","body":"In the part on making isolation clean, I have defined the following parameters in void kernel_xy\r\n\r\n`void kernel_xy(uint32_t x, uint32_t y, uint32_t w, const float *world_state, const uint32_t *world_properties,float *buffer, float inner, float outer ){\r\n\tunsigned index=y*w + x;\r\n\t\r\n\t... // Rest of code\r\n}`\r\n\r\nand have called them as follows \r\n\r\n`kernel_xy(x, y, w, &world.state[0], (const uint32_t *)&world.properties[0], &buffer[0],  inner,outer);`\r\n\r\nas instructed in the cw.\r\n\r\nHowever, when i try to compile, the following errors keep on showing: \r\n\r\n`g++ -I include -W -Wall -std=c++11 -O3 -o bin/ksy14/step_world_v2_function src/ksy14/step_world_v2_function.cpp src/heat.cpp  -lOpenCL\r\nsrc/ksy14/step_world_v2_function.cpp: In function ‘void hpce::ksy14::kernel_xy(uint32_t, uint32_t, uint32_t, const float*, const uint32_t*, float*, float, float)’:\r\nsrc/ksy14/step_world_v2_function.cpp:18:9: error: ‘world’ was not declared in this scope\r\n     if((world.properties[index] & Cell_Fixed) || (world.properties[index] & Cel\r\n         ^\r\nsrc/ksy14/step_world_v2_function.cpp: At global scope:\r\nsrc/ksy14/step_world_v2_function.cpp:14:65: warning: unused parameter ‘world_state’ [-Wunused-parameter]\r\n void kernel_xy(uint32_t x, uint32_t y, uint32_t w, const float *world_state, co\r\n                                                                 ^\r\nsrc/ksy14/step_world_v2_function.cpp:14:94: warning: unused parameter ‘world_properties’ [-Wunused-parameter]\r\n , uint32_t y, uint32_t w, const float *world_state, const uint32_t *world_prope\r\n                                                                     ^\r\nmakefile:11: recipe for target 'bin/ksy14/step_world_v2_function' failed\r\nmake: *** [bin/ksy14/step_world_v2_function] Error 1\r\n`\r\nNot sure why its not detecting world_properties and world_state and its saying that world is not declared because of this.\r\n\r\nCould be a basic mistake but wonder if anyone has this same issue or know the problem?\r\n\r\nThanks.\r\n\r\n\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/HPCE/hpce-2017-cw3/issues/comments/340513930","html_url":"https://github.com/HPCE/hpce-2017-cw3/issues/56#issuecomment-340513930","issue_url":"https://api.github.com/repos/HPCE/hpce-2017-cw3/issues/56","id":340513930,"user":{"login":"xAffinity","id":25639513,"avatar_url":"https://avatars2.githubusercontent.com/u/25639513?v=4","gravatar_id":"","url":"https://api.github.com/users/xAffinity","html_url":"https://github.com/xAffinity","followers_url":"https://api.github.com/users/xAffinity/followers","following_url":"https://api.github.com/users/xAffinity/following{/other_user}","gists_url":"https://api.github.com/users/xAffinity/gists{/gist_id}","starred_url":"https://api.github.com/users/xAffinity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xAffinity/subscriptions","organizations_url":"https://api.github.com/users/xAffinity/orgs","repos_url":"https://api.github.com/users/xAffinity/repos","events_url":"https://api.github.com/users/xAffinity/events{/privacy}","received_events_url":"https://api.github.com/users/xAffinity/received_events","type":"User","site_admin":false},"created_at":"2017-10-30T17:06:46Z","updated_at":"2017-10-30T17:06:46Z","author_association":"NONE","body":"@ppp2211 Thanks for the prompt reply.\r\n\r\nSolved it with your solution  :)"}}
{"actor":{"display_login":"xAffinity"}}