{"action":"created","issue":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/995","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/995/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/995/comments","events_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/995/events","html_url":"https://github.com/arrayfire/arrayfire/issues/995","id":106054333,"number":995,"title":"opencl sort_by_key and sort_index failing intermittently","user":{"login":"9prady9","id":3270458,"avatar_url":"https://avatars.githubusercontent.com/u/3270458?v=3","gravatar_id":"","url":"https://api.github.com/users/9prady9","html_url":"https://github.com/9prady9","followers_url":"https://api.github.com/users/9prady9/followers","following_url":"https://api.github.com/users/9prady9/following{/other_user}","gists_url":"https://api.github.com/users/9prady9/gists{/gist_id}","starred_url":"https://api.github.com/users/9prady9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9prady9/subscriptions","organizations_url":"https://api.github.com/users/9prady9/orgs","repos_url":"https://api.github.com/users/9prady9/repos","events_url":"https://api.github.com/users/9prady9/events{/privacy}","received_events_url":"https://api.github.com/users/9prady9/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arrayfire/arrayfire/labels/bug","name":"bug","color":"FF0000"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/arrayfire/arrayfire/milestones/10","html_url":"https://github.com/arrayfire/arrayfire/milestones/3.3.0","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/milestones/10/labels","id":1405204,"number":10,"title":"3.3.0","description":"- Thread safety\r\n- Parallel CPU\r\n- Sparse support\r\n- Bug Fixes","creator":{"login":"9prady9","id":3270458,"avatar_url":"https://avatars.githubusercontent.com/u/3270458?v=3","gravatar_id":"","url":"https://api.github.com/users/9prady9","html_url":"https://github.com/9prady9","followers_url":"https://api.github.com/users/9prady9/followers","following_url":"https://api.github.com/users/9prady9/following{/other_user}","gists_url":"https://api.github.com/users/9prady9/gists{/gist_id}","starred_url":"https://api.github.com/users/9prady9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9prady9/subscriptions","organizations_url":"https://api.github.com/users/9prady9/orgs","repos_url":"https://api.github.com/users/9prady9/repos","events_url":"https://api.github.com/users/9prady9/events{/privacy}","received_events_url":"https://api.github.com/users/9prady9/received_events","type":"User","site_admin":false},"open_issues":54,"closed_issues":24,"state":"open","created_at":"2015-11-10T19:04:05Z","updated_at":"2016-01-09T10:05:12Z","due_on":"2016-02-15T05:00:00Z","closed_at":null},"comments":6,"created_at":"2015-09-11T17:10:20Z","updated_at":"2016-01-10T05:15:51Z","closed_at":null,"body":"uncomment the following tests after the issues is fixed:\r\n```\r\ndiff --git a/test/sort_by_key.cpp b/test/sort_by_key.cpp\r\nindex 4f817aa..35bbc97 100644\r\n--- a/test/sort_by_key.cpp\r\n+++ b/test/sort_by_key.cpp\r\n@@ -115,9 +115,10 @@ void sortTest(string pTestFile, const bool dir, const unsigned resultIdx0, const\r\n     SORT_INIT(Sort10x10True,  sort_by_key_2D,    true,  0, 1);\r\n     SORT_INIT(Sort10x10False, sort_by_key_2D,    false, 2, 3);\r\n     SORT_INIT(Sort1000True,   sort_by_key_1000,  true,  0, 1);\r\n-    SORT_INIT(Sort1000False,  sort_by_key_1000,  false, 2, 3);\r\n     SORT_INIT(SortMedTrue,    sort_by_key_med,   true,  0, 1);\r\n-    SORT_INIT(SortMedFalse,   sort_by_key_med,   false, 2, 3);\r\n+    // FIXME: below two tests are disabled temporarily until issue#995 is fixed\r\n+    //SORT_INIT(Sort1000False,  sort_by_key_1000,  false, 2, 3);\r\n+    //SORT_INIT(SortMedFalse,   sort_by_key_med,   false, 2, 3);\r\n     // Takes too much time in current implementation. Enable when everything is parallel\r\n     //SORT_INIT(SortLargeTrue,  sort_by_key_large, true,  0, 1);\r\n     //SORT_INIT(SortLargeFalse, sort_by_key_large, false, 2, 3);\r\ndiff --git a/test/sort_index.cpp b/test/sort_index.cpp\r\nindex f429626..1f503a7 100644\r\n--- a/test/sort_index.cpp\r\n+++ b/test/sort_index.cpp\r\n@@ -116,9 +116,10 @@ void sortTest(string pTestFile, const bool dir, const unsigned resultIdx0, const\r\n     SORT_INIT(Sort10x10True,  sort_10x10, true,  0, 1);\r\n     SORT_INIT(Sort10x10False, sort_10x10, false, 2, 3);\r\n     SORT_INIT(Sort1000True,   sort_1000,  true,  0, 1);\r\n-    SORT_INIT(Sort1000False,  sort_1000,  false, 2, 3);\r\n     SORT_INIT(SortMedTrue,    sort_med1,  true,  0, 1);\r\n-    SORT_INIT(SortMedFalse,   sort_med1,  false, 2, 3);\r\n+    // FIXME: below two tests are disabled temporarily until issue#995 is fixed\r\n+    //SORT_INIT(Sort1000False,  sort_1000,  false, 2, 3);\r\n+    //SORT_INIT(SortMedFalse,   sort_med1,  false, 2, 3);\r\n     // Takes too much time in current implementation. Enable when everything is parallel\r\n     //SORT_INIT(SortMed5True,   sort_med,   true,  0, 1);\r\n     //SORT_INIT(SortMed5False,  sort_med,   false, 2, 3);\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/comments/170315804","html_url":"https://github.com/arrayfire/arrayfire/issues/995#issuecomment-170315804","issue_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/995","id":170315804,"user":{"login":"shehzan10","id":2288659,"avatar_url":"https://avatars.githubusercontent.com/u/2288659?v=3","gravatar_id":"","url":"https://api.github.com/users/shehzan10","html_url":"https://github.com/shehzan10","followers_url":"https://api.github.com/users/shehzan10/followers","following_url":"https://api.github.com/users/shehzan10/following{/other_user}","gists_url":"https://api.github.com/users/shehzan10/gists{/gist_id}","starred_url":"https://api.github.com/users/shehzan10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shehzan10/subscriptions","organizations_url":"https://api.github.com/users/shehzan10/orgs","repos_url":"https://api.github.com/users/shehzan10/repos","events_url":"https://api.github.com/users/shehzan10/events{/privacy}","received_events_url":"https://api.github.com/users/shehzan10/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T05:15:51Z","updated_at":"2016-01-10T05:15:51Z","body":"I tested it manually on Window-02 (AMD machine), Linux-03 (AMD) and both ran fine. Ill send the commit tomorrow."}}