{"action":"created","issue":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1942","repository_url":"https://api.github.com/repos/arrayfire/arrayfire","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1942/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1942/comments","events_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1942/events","html_url":"https://github.com/arrayfire/arrayfire/issues/1942","id":262986740,"number":1942,"title":"Why JIT Complication Error?","user":{"login":"BookmanHan","id":501664,"avatar_url":"https://avatars2.githubusercontent.com/u/501664?v=4","gravatar_id":"","url":"https://api.github.com/users/BookmanHan","html_url":"https://github.com/BookmanHan","followers_url":"https://api.github.com/users/BookmanHan/followers","following_url":"https://api.github.com/users/BookmanHan/following{/other_user}","gists_url":"https://api.github.com/users/BookmanHan/gists{/gist_id}","starred_url":"https://api.github.com/users/BookmanHan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BookmanHan/subscriptions","organizations_url":"https://api.github.com/users/BookmanHan/orgs","repos_url":"https://api.github.com/users/BookmanHan/repos","events_url":"https://api.github.com/users/BookmanHan/events{/privacy}","received_events_url":"https://api.github.com/users/BookmanHan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-05T02:27:17Z","updated_at":"2017-10-08T18:26:49Z","closed_at":null,"author_association":"NONE","body":"I am sorry for always asking stupid questions, but I really work hard on it before asking.\r\n\r\nI encounter a JIT issue as below:\r\n```\r\nwhat():  ArrayFire Exception (Internal error:998):\r\nIn function std::vector<char> cuda::compileToPTX(const char*, std::string)\r\nIn file src/backend/cuda/jit.cpp:264\r\nNVRTC Error(6): NVRTC_ERROR_COMPILATION\r\n\r\nIn function void af::array::eval() const\r\nIn file src/api/cpp/array.cpp:956\r\n```\r\n\r\nMy codes are a bit complex.\r\nSimply, I implement a function, within which there are a lot of array operations then return an array.\r\n\r\nName the function as `af::array get();`\r\nWhen I use `auto a = get();`, there is no error.\r\nWhen I use `auto a = get() + get() + get();`, it's still normal.\r\n\r\nBut when I call this function more than there times, there comes up with the above exception.\r\n\r\nWhat is the problem?\r\nHow should I fix it?\r\n\r\nThanks a lot."},"comment":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/comments/335027697","html_url":"https://github.com/arrayfire/arrayfire/issues/1942#issuecomment-335027697","issue_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1942","id":335027697,"user":{"login":"pavanky","id":364829,"avatar_url":"https://avatars1.githubusercontent.com/u/364829?v=4","gravatar_id":"","url":"https://api.github.com/users/pavanky","html_url":"https://github.com/pavanky","followers_url":"https://api.github.com/users/pavanky/followers","following_url":"https://api.github.com/users/pavanky/following{/other_user}","gists_url":"https://api.github.com/users/pavanky/gists{/gist_id}","starred_url":"https://api.github.com/users/pavanky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavanky/subscriptions","organizations_url":"https://api.github.com/users/pavanky/orgs","repos_url":"https://api.github.com/users/pavanky/repos","events_url":"https://api.github.com/users/pavanky/events{/privacy}","received_events_url":"https://api.github.com/users/pavanky/received_events","type":"User","site_admin":false},"created_at":"2017-10-08T18:26:49Z","updated_at":"2017-10-08T18:26:49Z","author_association":"OWNER","body":"@BookmanHan Thanks for the code I'll try to reproduce it. If you are trying to create a reverse mode autodiff, I implemented something here using arrayfire: https://github.com/arrayfire/arrayfire-ml\r\n\r\nExamples can be seen here\r\n- https://github.com/arrayfire/arrayfire-ml/blob/master/examples/autograd.cpp\r\n- https://github.com/arrayfire/arrayfire-ml/blob/master/examples/xor.cpp"}}
{"actor":{"display_login":"pavanky"}}