{"action":"created","issue":{"url":"https://api.github.com/repos/libocca/occa/issues/180","repository_url":"https://api.github.com/repos/libocca/occa","labels_url":"https://api.github.com/repos/libocca/occa/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/libocca/occa/issues/180/comments","events_url":"https://api.github.com/repos/libocca/occa/issues/180/events","html_url":"https://github.com/libocca/occa/issues/180","id":345554412,"node_id":"MDU6SXNzdWUzNDU1NTQ0MTI=","number":180,"title":"Feature request: add option to stop parser for replacing defined variables with their values","user":{"login":"tcew","id":6844506,"node_id":"MDQ6VXNlcjY4NDQ1MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/6844506?v=4","gravatar_id":"","url":"https://api.github.com/users/tcew","html_url":"https://github.com/tcew","followers_url":"https://api.github.com/users/tcew/followers","following_url":"https://api.github.com/users/tcew/following{/other_user}","gists_url":"https://api.github.com/users/tcew/gists{/gist_id}","starred_url":"https://api.github.com/users/tcew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcew/subscriptions","organizations_url":"https://api.github.com/users/tcew/orgs","repos_url":"https://api.github.com/users/tcew/repos","events_url":"https://api.github.com/users/tcew/events{/privacy}","received_events_url":"https://api.github.com/users/tcew/received_events","type":"User","site_admin":false},"labels":[{"id":873536407,"node_id":"MDU6TGFiZWw4NzM1MzY0MDc=","url":"https://api.github.com/repos/libocca/occa/labels/Question","name":"Question","color":"ceeeee","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-07-29T19:04:51Z","updated_at":"2018-07-30T13:39:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently if p_N is defined to 5 then when a kernel is parsed and output all instances of p_N are replaced by 5. \r\n\r\nIt would be useful to add a parser option so that the #defines are included in the generated source code, and the compilers variables like p_N are left in the generated source code.\r\n\r\nThis will make the generated code a lot easier to read."},"comment":{"url":"https://api.github.com/repos/libocca/occa/issues/comments/408866541","html_url":"https://github.com/libocca/occa/issues/180#issuecomment-408866541","issue_url":"https://api.github.com/repos/libocca/occa/issues/180","id":408866541,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODg2NjU0MQ==","user":{"login":"tcew","id":6844506,"node_id":"MDQ6VXNlcjY4NDQ1MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/6844506?v=4","gravatar_id":"","url":"https://api.github.com/users/tcew","html_url":"https://github.com/tcew","followers_url":"https://api.github.com/users/tcew/followers","following_url":"https://api.github.com/users/tcew/following{/other_user}","gists_url":"https://api.github.com/users/tcew/gists{/gist_id}","starred_url":"https://api.github.com/users/tcew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcew/subscriptions","organizations_url":"https://api.github.com/users/tcew/orgs","repos_url":"https://api.github.com/users/tcew/repos","events_url":"https://api.github.com/users/tcew/events{/privacy}","received_events_url":"https://api.github.com/users/tcew/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T13:39:43Z","updated_at":"2018-07-30T13:39:43Z","author_association":"CONTRIBUTOR","body":"I agree that for debugging this would be a true bonus - nice idea !\r\n\r\nI should have been clearer about the reasoning behind this request: one important use case I envision for the new code generation tools in OCCA 1.0 is as a translator from OKL to native threading language for non-OCCA applications. In that case it will be important to preserve readability as the generated CUDA/OpenCL/HIP/OpenMP code will be separated from the OKL code."}}
{"actor":{"display_login":"tcew"}}