{"action":"created","issue":{"url":"https://api.github.com/repos/HPCE/hpce-2016-cw6/issues/24","repository_url":"https://api.github.com/repos/HPCE/hpce-2016-cw6","labels_url":"https://api.github.com/repos/HPCE/hpce-2016-cw6/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/HPCE/hpce-2016-cw6/issues/24/comments","events_url":"https://api.github.com/repos/HPCE/hpce-2016-cw6/issues/24/events","html_url":"https://github.com/HPCE/hpce-2016-cw6/issues/24","id":193835676,"number":24,"title":"Kernel implementation of rendering works for rect and mesh topologies but not hex","user":{"login":"pierreazalbert","id":10864020,"avatar_url":"https://avatars.githubusercontent.com/u/10864020?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreazalbert","html_url":"https://github.com/pierreazalbert","followers_url":"https://api.github.com/users/pierreazalbert/followers","following_url":"https://api.github.com/users/pierreazalbert/following{/other_user}","gists_url":"https://api.github.com/users/pierreazalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreazalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreazalbert/subscriptions","organizations_url":"https://api.github.com/users/pierreazalbert/orgs","repos_url":"https://api.github.com/users/pierreazalbert/repos","events_url":"https://api.github.com/users/pierreazalbert/events{/privacy}","received_events_url":"https://api.github.com/users/pierreazalbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-06T17:33:22Z","updated_at":"2016-12-08T13:22:14Z","closed_at":null,"body":"I have transferred the code used to render each slice of the graph in a JPEG to an OpenCL kernel. For rect and mesh topologies, the output is correct, however for a hex shape, I get a very strange output: the image/animation has the same size as the reference one, but it contains two identical versions of the reference animation, squished into the reference size. Please have a look at the attached files, it will be easier to understand. The files attached ([heat.zip](https://github.com/HPCE/hpce-2016-cw6/files/634566/heat.zip)) were produced using the following commands:\r\n\r\n```\r\noctave src/tools/generate_heat_hex.m  > w/heat${SIZE}.graph\r\necho \"Executing Reference\"\r\ntime bin/ref/simulator --log-level 0 w/heat${SIZE}.graph w/stats${SIZE}.txt  w/heat${SIZE}.mjpeg\r\necho \"Executing Pierre\"\r\ntime bin/user/pva13/user_simulator_v0_p --log-level 0 w/heat${SIZE}.graph w/stats${SIZE}_user.txt  w/heat${SIZE}_user.mjpeg\r\n```\r\n\r\nand it the matlab script:\r\n\r\n```\r\nw=127;\r\nh=65;\r\npixW=min(256,w*3);\r\npixH=min(128,w*3);\r\nmaxTime=ceil(2*sqrt(w*h));\r\nspaceFrac = max(1, w*h/8192);\r\ntimeStep=min(1, floor( sqrt(w) ));\r\nminHeat=-8000;\r\nmaxHeat=+8000;\r\n```\r\n\r\nMy question is: is this likely to be a mistake in my code or something that I am not in control of? I don't really get why it works for rect and mesh but not for hex..."},"comment":{"url":"https://api.github.com/repos/HPCE/hpce-2016-cw6/issues/comments/265738306","html_url":"https://github.com/HPCE/hpce-2016-cw6/issues/24#issuecomment-265738306","issue_url":"https://api.github.com/repos/HPCE/hpce-2016-cw6/issues/24","id":265738306,"user":{"login":"pierreazalbert","id":10864020,"avatar_url":"https://avatars.githubusercontent.com/u/10864020?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreazalbert","html_url":"https://github.com/pierreazalbert","followers_url":"https://api.github.com/users/pierreazalbert/followers","following_url":"https://api.github.com/users/pierreazalbert/following{/other_user}","gists_url":"https://api.github.com/users/pierreazalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreazalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreazalbert/subscriptions","organizations_url":"https://api.github.com/users/pierreazalbert/orgs","repos_url":"https://api.github.com/users/pierreazalbert/repos","events_url":"https://api.github.com/users/pierreazalbert/events{/privacy}","received_events_url":"https://api.github.com/users/pierreazalbert/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T13:22:14Z","updated_at":"2016-12-08T13:22:14Z","body":"Fixed it, I was indexing some buffers using `[y*h+x]` instead of `[y*w+x]` ! Thanks a lot!"}}
{"actor":{"display_login":"pierreazalbert"}}