{"action":"created","issue":{"url":"https://api.github.com/repos/VcDevel/Vc/issues/76","labels_url":"https://api.github.com/repos/VcDevel/Vc/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/VcDevel/Vc/issues/76/comments","events_url":"https://api.github.com/repos/VcDevel/Vc/issues/76/events","html_url":"https://github.com/VcDevel/Vc/issues/76","id":117557360,"number":76,"title":"Vc offloading on Xeon Phi","user":{"login":"mzyzak","id":15905984,"avatar_url":"https://avatars.githubusercontent.com/u/15905984?v=3","gravatar_id":"","url":"https://api.github.com/users/mzyzak","html_url":"https://github.com/mzyzak","followers_url":"https://api.github.com/users/mzyzak/followers","following_url":"https://api.github.com/users/mzyzak/following{/other_user}","gists_url":"https://api.github.com/users/mzyzak/gists{/gist_id}","starred_url":"https://api.github.com/users/mzyzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzyzak/subscriptions","organizations_url":"https://api.github.com/users/mzyzak/orgs","repos_url":"https://api.github.com/users/mzyzak/repos","events_url":"https://api.github.com/users/mzyzak/events{/privacy}","received_events_url":"https://api.github.com/users/mzyzak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/VcDevel/Vc/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/VcDevel/Vc/milestones/3","html_url":"https://github.com/VcDevel/Vc/milestones/Vc%202.0","labels_url":"https://api.github.com/repos/VcDevel/Vc/milestones/3/labels","id":1208961,"number":3,"title":"Vc 2.0","description":null,"creator":{"login":"mattkretz","id":3306474,"avatar_url":"https://avatars.githubusercontent.com/u/3306474?v=3","gravatar_id":"","url":"https://api.github.com/users/mattkretz","html_url":"https://github.com/mattkretz","followers_url":"https://api.github.com/users/mattkretz/followers","following_url":"https://api.github.com/users/mattkretz/following{/other_user}","gists_url":"https://api.github.com/users/mattkretz/gists{/gist_id}","starred_url":"https://api.github.com/users/mattkretz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattkretz/subscriptions","organizations_url":"https://api.github.com/users/mattkretz/orgs","repos_url":"https://api.github.com/users/mattkretz/repos","events_url":"https://api.github.com/users/mattkretz/events{/privacy}","received_events_url":"https://api.github.com/users/mattkretz/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2015-07-15T10:31:15Z","updated_at":"2015-11-18T15:33:19Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-11-18T10:24:44Z","updated_at":"2015-11-18T15:35:36Z","closed_at":null,"body":"Dear Matthias,\r\n\r\ncan you please implement a possibility for Vc functionality offloading to the Intel Xeon Phi? Here is a code example which I tried to offload:\r\n```\r\n#include \"iostream\"\r\n#include <omp.h>\r\n#include \"Vc/Vc\"\r\nusing ::Vc::int_v;\r\n\r\n__declspec( target(mic) ) void Increment(int& i)\r\n{\r\n  int_v n(i);\r\n  n++;\r\n  i = n[0];\r\n}\r\n\r\nint main()\r\n{\r\n  int nProc;\r\n  int n = 0;\r\n  Increment(n);\r\n  \r\n  #pragma offload target(mic) inout(n)\r\n  {\r\n    Increment(n);\r\n    nProc = omp_get_num_procs();\r\n  }\r\n  \r\n  std::cout << \"N cores on MIC: \" << nProc << std::endl;\r\n  std::cout << \"n: \" << n << std::endl;\r\n \r\n  return 0;\r\n}\r\n```\r\n\r\nWith best regards\r\nMaksym"},"comment":{"url":"https://api.github.com/repos/VcDevel/Vc/issues/comments/157751011","html_url":"https://github.com/VcDevel/Vc/issues/76#issuecomment-157751011","issue_url":"https://api.github.com/repos/VcDevel/Vc/issues/76","id":157751011,"user":{"login":"mattkretz","id":3306474,"avatar_url":"https://avatars.githubusercontent.com/u/3306474?v=3","gravatar_id":"","url":"https://api.github.com/users/mattkretz","html_url":"https://github.com/mattkretz","followers_url":"https://api.github.com/users/mattkretz/followers","following_url":"https://api.github.com/users/mattkretz/following{/other_user}","gists_url":"https://api.github.com/users/mattkretz/gists{/gist_id}","starred_url":"https://api.github.com/users/mattkretz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattkretz/subscriptions","organizations_url":"https://api.github.com/users/mattkretz/orgs","repos_url":"https://api.github.com/users/mattkretz/repos","events_url":"https://api.github.com/users/mattkretz/events{/privacy}","received_events_url":"https://api.github.com/users/mattkretz/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T15:35:36Z","updated_at":"2015-11-18T15:35:36Z","body":"Thanks for the test case. I'll try to look into this, but no promises on a timeline yet. But like we discussed, you should try annotating the MIC headers and see whether you can get further. If you do, feel free to contribute your changes!"}}