{"action":"created","issue":{"url":"https://api.github.com/repos/thrust/thrust/issues/902","repository_url":"https://api.github.com/repos/thrust/thrust","labels_url":"https://api.github.com/repos/thrust/thrust/issues/902/labels{/name}","comments_url":"https://api.github.com/repos/thrust/thrust/issues/902/comments","events_url":"https://api.github.com/repos/thrust/thrust/issues/902/events","html_url":"https://github.com/thrust/thrust/issues/902","id":283496930,"number":902,"title":"`iterator_category_to_system` returns `host_system_tag` for `input_device_iterator_tag` instead of `device_system_tag`","user":{"login":"dawagnbr","id":15707432,"avatar_url":"https://avatars0.githubusercontent.com/u/15707432?v=4","gravatar_id":"","url":"https://api.github.com/users/dawagnbr","html_url":"https://github.com/dawagnbr","followers_url":"https://api.github.com/users/dawagnbr/followers","following_url":"https://api.github.com/users/dawagnbr/following{/other_user}","gists_url":"https://api.github.com/users/dawagnbr/gists{/gist_id}","starred_url":"https://api.github.com/users/dawagnbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawagnbr/subscriptions","organizations_url":"https://api.github.com/users/dawagnbr/orgs","repos_url":"https://api.github.com/users/dawagnbr/repos","events_url":"https://api.github.com/users/dawagnbr/events{/privacy}","received_events_url":"https://api.github.com/users/dawagnbr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-20T09:21:03Z","updated_at":"2018-02-13T01:38:15Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI was trying to design my own iterators to make them compatible with thrust. I stumbled across some problems and dug inside the code. Ultimately, it seems that the following statement fails to compile:\r\n\r\nstatic_assert(std::is_same<thrust::detail::iterator_category_to_system<thrust::input_device_iterator_tag>::type, thrust::device_system_tag>::value, \"test\");\r\n\r\nWhile the following passes:\r\n\r\nstatic_assert(std::is_same<thrust::detail::iterator_category_to_system<thrust::input_device_iterator_tag>::type, thrust::host_system_tag>::value, \"test\");\r\n\r\nThat is not really surprising given the code of iterator_category_to_system and the fact that input_device_iterator_tag actually inherits from std::input_iterator_tag, which is just another name for input_host_iterator_tag (see iterator_categories.h).\r\n\r\nAm I missing something or there is a bug there?\r\n\r\nNote that all classes inheriting from thrust::iterator_adapter seem to be fine. Still trying to figure out why.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/thrust/thrust/issues/comments/365122775","html_url":"https://github.com/thrust/thrust/issues/902#issuecomment-365122775","issue_url":"https://api.github.com/repos/thrust/thrust/issues/902","id":365122775,"user":{"login":"brycelelbach","id":398194,"avatar_url":"https://avatars2.githubusercontent.com/u/398194?v=4","gravatar_id":"","url":"https://api.github.com/users/brycelelbach","html_url":"https://github.com/brycelelbach","followers_url":"https://api.github.com/users/brycelelbach/followers","following_url":"https://api.github.com/users/brycelelbach/following{/other_user}","gists_url":"https://api.github.com/users/brycelelbach/gists{/gist_id}","starred_url":"https://api.github.com/users/brycelelbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycelelbach/subscriptions","organizations_url":"https://api.github.com/users/brycelelbach/orgs","repos_url":"https://api.github.com/users/brycelelbach/repos","events_url":"https://api.github.com/users/brycelelbach/events{/privacy}","received_events_url":"https://api.github.com/users/brycelelbach/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T01:38:15Z","updated_at":"2018-02-13T01:38:15Z","author_association":"NONE","body":"Yah, this is not good, at all. I'm not sure the impact but this could potentially be causing parts of Thrust to dispatch to host execution instead of device execution. "}}
{"actor":{"display_login":"brycelelbach"}}