{"action":"created","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/4451","labels_url":"https://api.github.com/repos/scipy/scipy/issues/4451/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/4451/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/4451/events","html_url":"https://github.com/scipy/scipy/pull/4451","id":55087665,"number":4451,"title":"ENH: vectorize distance loops with gcc","user":{"login":"juliantaylor","id":542663,"avatar_url":"https://avatars.githubusercontent.com/u/542663?v=3","gravatar_id":"","url":"https://api.github.com/users/juliantaylor","html_url":"https://github.com/juliantaylor","followers_url":"https://api.github.com/users/juliantaylor/followers","following_url":"https://api.github.com/users/juliantaylor/following{/other_user}","gists_url":"https://api.github.com/users/juliantaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/juliantaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliantaylor/subscriptions","organizations_url":"https://api.github.com/users/juliantaylor/orgs","repos_url":"https://api.github.com/users/juliantaylor/repos","events_url":"https://api.github.com/users/juliantaylor/events{/privacy}","received_events_url":"https://api.github.com/users/juliantaylor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scipy/scipy/labels/scipy.spatial","name":"scipy.spatial","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-01-21T22:33:57Z","updated_at":"2015-01-24T23:37:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scipy/scipy/pulls/4451","html_url":"https://github.com/scipy/scipy/pull/4451","diff_url":"https://github.com/scipy/scipy/pull/4451.diff","patch_url":"https://github.com/scipy/scipy/pull/4451.patch"},"body":"add compiler flags necessary to enable auto-vectorization of distance\r\nloops with gcc.\r\n\r\nWorks quite fine with recent gcc's without adding any more C code that is so frowned upon."},"comment":{"url":"https://api.github.com/repos/scipy/scipy/issues/comments/71343067","html_url":"https://github.com/scipy/scipy/pull/4451#issuecomment-71343067","issue_url":"https://api.github.com/repos/scipy/scipy/issues/4451","id":71343067,"user":{"login":"larsmans","id":335383,"avatar_url":"https://avatars.githubusercontent.com/u/335383?v=3","gravatar_id":"","url":"https://api.github.com/users/larsmans","html_url":"https://github.com/larsmans","followers_url":"https://api.github.com/users/larsmans/followers","following_url":"https://api.github.com/users/larsmans/following{/other_user}","gists_url":"https://api.github.com/users/larsmans/gists{/gist_id}","starred_url":"https://api.github.com/users/larsmans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsmans/subscriptions","organizations_url":"https://api.github.com/users/larsmans/orgs","repos_url":"https://api.github.com/users/larsmans/repos","events_url":"https://api.github.com/users/larsmans/events{/privacy}","received_events_url":"https://api.github.com/users/larsmans/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T23:37:57Z","updated_at":"2015-01-24T23:37:57Z","body":"Sure, but what I meant was that I would accept having to write\r\n\r\n```c\r\nSIMD_PRAGMA\r\nfor (i = 0; i < n; i++) {\r\n    /* work work work */\r\n}\r\n```\r\n\r\nabove every loop, but not\r\n\r\n```c\r\n#if defined(__INTEL_COMPILER) || __GNUC__ >= 5 and HAVE_CILK_PLUS\r\n# pragma simd\r\n#elif defined _OPENMP\r\n# pragma omp simd\r\n#elif defined MSC_VER\r\n# pragma whatever\r\n#endif\r\nfor (i = 0; i < n; i++) {\r\n    /* what were we doing again? */\r\n}\r\n```"}}