{"action":"created","issue":{"url":"https://api.github.com/repos/zdevito/terra/issues/278","repository_url":"https://api.github.com/repos/zdevito/terra","labels_url":"https://api.github.com/repos/zdevito/terra/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/zdevito/terra/issues/278/comments","events_url":"https://api.github.com/repos/zdevito/terra/issues/278/events","html_url":"https://github.com/zdevito/terra/pull/278","id":323424204,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg4Mjg2NzI0","number":278,"title":"Handle libdevice properly on CUDA 9.0+","user":{"login":"manopapad","id":215728,"node_id":"MDQ6VXNlcjIxNTcyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/215728?v=4","gravatar_id":"","url":"https://api.github.com/users/manopapad","html_url":"https://github.com/manopapad","followers_url":"https://api.github.com/users/manopapad/followers","following_url":"https://api.github.com/users/manopapad/following{/other_user}","gists_url":"https://api.github.com/users/manopapad/gists{/gist_id}","starred_url":"https://api.github.com/users/manopapad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manopapad/subscriptions","organizations_url":"https://api.github.com/users/manopapad/orgs","repos_url":"https://api.github.com/users/manopapad/repos","events_url":"https://api.github.com/users/manopapad/events{/privacy}","received_events_url":"https://api.github.com/users/manopapad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-15T23:59:35Z","updated_at":"2018-06-24T21:51:53Z","closed_at":"2018-05-18T17:35:04Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/zdevito/terra/pulls/278","html_url":"https://github.com/zdevito/terra/pull/278","diff_url":"https://github.com/zdevito/terra/pull/278.diff","patch_url":"https://github.com/zdevito/terra/pull/278.patch"},"body":"When `saveobj`-ing a CUDA module, Terra will now automatically find libdevice (an LLVM bitcode library that contains math functions for GPUs) and link it in. Because we now set the correct target for CUDA modules, LLVM knows to run the appropriate passes (in particular NVVMReflect, which will desugar the `__nvvm_reflect` pseudo-instruction, which is used in libdevice for CUDA versions 9.0 and up).\r\n\r\nThe user (still) needs to manually `linkllvm` libdevice, if they want to run CUDA code on the terra process."},"comment":{"url":"https://api.github.com/repos/zdevito/terra/issues/comments/399790307","html_url":"https://github.com/zdevito/terra/pull/278#issuecomment-399790307","issue_url":"https://api.github.com/repos/zdevito/terra/issues/278","id":399790307,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTc5MDMwNw==","user":{"login":"chichengumich","id":24358464,"node_id":"MDQ6VXNlcjI0MzU4NDY0","avatar_url":"https://avatars2.githubusercontent.com/u/24358464?v=4","gravatar_id":"","url":"https://api.github.com/users/chichengumich","html_url":"https://github.com/chichengumich","followers_url":"https://api.github.com/users/chichengumich/followers","following_url":"https://api.github.com/users/chichengumich/following{/other_user}","gists_url":"https://api.github.com/users/chichengumich/gists{/gist_id}","starred_url":"https://api.github.com/users/chichengumich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chichengumich/subscriptions","organizations_url":"https://api.github.com/users/chichengumich/orgs","repos_url":"https://api.github.com/users/chichengumich/repos","events_url":"https://api.github.com/users/chichengumich/events{/privacy}","received_events_url":"https://api.github.com/users/chichengumich/received_events","type":"User","site_admin":false},"created_at":"2018-06-24T21:51:53Z","updated_at":"2018-06-24T21:51:53Z","author_association":"NONE","body":"Hi, I was trying to compile terra with CUDA 9.0 and llvm 3.8. The compliation went through without any error. However, when I tried to run cudahello.t, it returns\r\n```\r\ncudahello.t:21: cuModuleGetFunction: cuda reported error 500\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t[string \"<string>\"]:247: in function 'cudacompile'\r\n\tcudahello.t:21: in main chunk\r\n```\r\nIs there any solution?"}}
{"actor":{"display_login":"chichengumich"}}