{"action":"created","issue":{"url":"https://api.github.com/repos/clang-ykt/clang/issues/17","repository_url":"https://api.github.com/repos/clang-ykt/clang","labels_url":"https://api.github.com/repos/clang-ykt/clang/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/clang-ykt/clang/issues/17/comments","events_url":"https://api.github.com/repos/clang-ykt/clang/issues/17/events","html_url":"https://github.com/clang-ykt/clang/issues/17","id":260816016,"number":17,"title":"Offload failing when using omp target nvptx64-nvidia-cuda inside a library","user":{"login":"matheusmortatti","id":9489234,"avatar_url":"https://avatars0.githubusercontent.com/u/9489234?v=4","gravatar_id":"","url":"https://api.github.com/users/matheusmortatti","html_url":"https://github.com/matheusmortatti","followers_url":"https://api.github.com/users/matheusmortatti/followers","following_url":"https://api.github.com/users/matheusmortatti/following{/other_user}","gists_url":"https://api.github.com/users/matheusmortatti/gists{/gist_id}","starred_url":"https://api.github.com/users/matheusmortatti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matheusmortatti/subscriptions","organizations_url":"https://api.github.com/users/matheusmortatti/orgs","repos_url":"https://api.github.com/users/matheusmortatti/repos","events_url":"https://api.github.com/users/matheusmortatti/events{/privacy}","received_events_url":"https://api.github.com/users/matheusmortatti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-27T01:11:28Z","updated_at":"2017-09-27T17:15:43Z","closed_at":null,"author_association":"NONE","body":"When using omp target nvptx64-nvidia-cuda inside a file that gets compiled into a library, the offload doesn't happen properly.\r\n\r\nYou can see the results when using nvprof and cuda-memcheck here https://gist.github.com/matheusmortatti/99c94640c69d873ef6a9e3c40431c2f6 and here https://gist.github.com/matheusmortatti/b52463748deab9c2b7812205faacb070\r\n\r\nThis looks similar to issue #16.\r\n\r\nYou can test this by downloading this repository https://github.com/matheusmortatti/omptarget_mat-mul ,running cmake with the clang-ykt compiler and then typing \"make\"."},"comment":{"url":"https://api.github.com/repos/clang-ykt/clang/issues/comments/332592118","html_url":"https://github.com/clang-ykt/clang/issues/17#issuecomment-332592118","issue_url":"https://api.github.com/repos/clang-ykt/clang/issues/17","id":332592118,"user":{"login":"doru1004","id":1168486,"avatar_url":"https://avatars0.githubusercontent.com/u/1168486?v=4","gravatar_id":"","url":"https://api.github.com/users/doru1004","html_url":"https://github.com/doru1004","followers_url":"https://api.github.com/users/doru1004/followers","following_url":"https://api.github.com/users/doru1004/following{/other_user}","gists_url":"https://api.github.com/users/doru1004/gists{/gist_id}","starred_url":"https://api.github.com/users/doru1004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doru1004/subscriptions","organizations_url":"https://api.github.com/users/doru1004/orgs","repos_url":"https://api.github.com/users/doru1004/repos","events_url":"https://api.github.com/users/doru1004/events{/privacy}","received_events_url":"https://api.github.com/users/doru1004/received_events","type":"User","site_admin":false},"created_at":"2017-09-27T17:15:43Z","updated_at":"2017-09-27T17:15:43Z","author_association":"NONE","body":"I haven't tried your example but by the sounds of it you compile and/or link differently when you go via cmake. I would ensure that cmake performs exactly the same commands you do in your initial by-hand compilation. \r\n"}}
{"actor":{"display_login":"doru1004"}}