{"action":"closed","issue":{"url":"https://api.github.com/repos/libocca/occa/issues/215","repository_url":"https://api.github.com/repos/libocca/occa","labels_url":"https://api.github.com/repos/libocca/occa/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/libocca/occa/issues/215/comments","events_url":"https://api.github.com/repos/libocca/occa/issues/215/events","html_url":"https://github.com/libocca/occa/issues/215","id":365880778,"node_id":"MDU6SXNzdWUzNjU4ODA3Nzg=","number":215,"title":"Question: occa::properties FP32 define promoted to FP64 in kernel gen ?","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":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-02T12:47:02Z","updated_at":"2018-12-30T15:49:35Z","closed_at":"2018-12-30T15:49:35Z","author_association":"CONTRIBUTOR","body":"I am using \r\n\r\n```cpp\r\nkernelInfo[\"defines/\" \"p_half\"]= p_half;\r\nkernelInfo[\"defines/\" \"p_third\"]= p_third;\r\n```\r\n\r\nwhere p_third is a float variable for 1.f/3\r\n\r\nWhen used in a kernel this code is generated:\r\n\r\n```cpp\r\n const float S11 = 5.0000000000000000e-01 * (dudx + dudx) - 3.3333334326744080e-01 * divV;\r\n```\r\n\r\nNote that it has promoted these compiler constants to double precision. \r\n\r\nQuestion: is this expected behavior ?\r\n"}}
{"actor":{"display_login":"dmed256"}}