{"action":"created","issue":{"url":"https://api.github.com/repos/Theano/libgpuarray/issues/27","labels_url":"https://api.github.com/repos/Theano/libgpuarray/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/Theano/libgpuarray/issues/27/comments","events_url":"https://api.github.com/repos/Theano/libgpuarray/issues/27/events","html_url":"https://github.com/Theano/libgpuarray/issues/27","id":49604493,"number":27,"title":"Debug printout of non-working kernels","user":{"login":"mdda","id":362532,"avatar_url":"https://avatars.githubusercontent.com/u/362532?v=3","gravatar_id":"","url":"https://api.github.com/users/mdda","html_url":"https://github.com/mdda","followers_url":"https://api.github.com/users/mdda/followers","following_url":"https://api.github.com/users/mdda/following{/other_user}","gists_url":"https://api.github.com/users/mdda/gists{/gist_id}","starred_url":"https://api.github.com/users/mdda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdda/subscriptions","organizations_url":"https://api.github.com/users/mdda/orgs","repos_url":"https://api.github.com/users/mdda/repos","events_url":"https://api.github.com/users/mdda/events{/privacy}","received_events_url":"https://api.github.com/users/mdda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-20T19:02:47Z","updated_at":"2015-07-13T16:44:12Z","closed_at":"2015-07-13T16:44:12Z","body":"I've been puzzling over getting some OpenCL tests (and then Ops, I guess) working on theano.sandbox.gpuarray.  But sometimes/often, I'm getting \"GpuArrayException: Program build failure\" errors.\r\n\r\nWould the project be interested in a pull request that outputs something like the following?\r\n\r\n```\r\n:38:52: error: must specify '#pragma OPENCL EXTENSION cl_khr_fp64: enable' before using 'double'\r\nKERNEL void reduk(const unsigned int n, GLOBAL_MEM ga_double * out\r\n                                                   ^\r\n:30:19: note: instantiated from:\r\n#define ga_double double\r\n                  ^\r\n\r\n// source.section[0].length=940\r\n0001   #define local_barrier() barrier(CLK_LOCAL_MEM_FENCE)\r\n0002   #define WHITHIN_KERNEL /* empty */\r\n...\r\n0028   #define ga_ulong ulong\r\n0029   #define ga_float float\r\n0030   #define ga_double double\r\n0031   #define ga_half half\r\n0032   #define ga_size ulong\r\n// source.section[1].length=2087\r\n0033   \r\n0034   \r\n0035   \r\n0036   #define REDUCE(a, b) (a + b)\r\n0037   \r\n0038   KERNEL void reduk(const unsigned int n, GLOBAL_MEM ga_double * out\r\n0039                       , const unsigned int dim0\r\n0040                       , const unsigned int dim1\r\n0041                       , GLOBAL_MEM ga_float * a_data\r\n0042                       , const unsigned int a_offset\r\n0043                       , const int a_str_0\r\n0044                       , const int a_str_1\r\n0045   ) {\r\n0046     LOCAL_MEM ga_double ldata[1024];\r\n0047     const unsigned int lid = LID_0;\r\n0048     unsigned int i;\r\n0049     GLOBAL_MEM char *tmp;\r\n0050   \r\n...\r\n```\r\n\r\n(\"...\" added manually for brevity)\r\n\r\nI guess that this also highlights other issues (but one thing at a time)\r\n"},"comment":{"url":"https://api.github.com/repos/Theano/libgpuarray/issues/comments/120990148","html_url":"https://github.com/Theano/libgpuarray/issues/27#issuecomment-120990148","issue_url":"https://api.github.com/repos/Theano/libgpuarray/issues/27","id":120990148,"user":{"login":"abergeron","id":1002504,"avatar_url":"https://avatars.githubusercontent.com/u/1002504?v=3","gravatar_id":"","url":"https://api.github.com/users/abergeron","html_url":"https://github.com/abergeron","followers_url":"https://api.github.com/users/abergeron/followers","following_url":"https://api.github.com/users/abergeron/following{/other_user}","gists_url":"https://api.github.com/users/abergeron/gists{/gist_id}","starred_url":"https://api.github.com/users/abergeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abergeron/subscriptions","organizations_url":"https://api.github.com/users/abergeron/orgs","repos_url":"https://api.github.com/users/abergeron/repos","events_url":"https://api.github.com/users/abergeron/events{/privacy}","received_events_url":"https://api.github.com/users/abergeron/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T16:44:12Z","updated_at":"2015-07-13T16:44:12Z","body":"I think this was done in #28 "}}