{"action":"created","comment":{"url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/comments/79131180","id":79131180,"diff_hunk":"@@ -0,0 +1,60 @@\n+# Copyright (c) 2016 Hartmut Kaiser\n+#\n+# Distributed under the Boost Software License, Version 1.0. (See accompanying\n+# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\n+\n+set(tests)\n+\n+if(HPX_WITH_VC_DATAPAR)\n+  set(tests\n+      count_datapar\n+      countif_datapar\n+      foreach_datapar\n+      foreachn_datapar\n+      inner_product_datapar\n+      transform_datapar\n+      transform_binary_datapar\n+      transform_binary2_datapar\n+     )\n+endif()\n+\n+foreach(test ${tests})\n+  set(sources\n+      ${test}.cpp)\n+\n+  set(${test}_PARAMETERS THREADS_PER_LOCALITY 4)\n+\n+  source_group(\"Source Files\" FILES ${sources})\n+\n+  # add example executable\n+  add_hpx_executable(${test}_test\n+                     SOURCES ${sources}\n+                     ${${test}_FLAGS}\n+                     EXCLUDE_FROM_ALL\n+                     HPX_PREFIX ${HPX_BUILD_PREFIX}\n+                     FOLDER \"Tests/Unit/Parallel/DataParAlgorithms\")\n+\n+  if(NOT MSVC)\n+    foreach(_flag ${Vc_COMPILE_FLAGS})\n+      set_target_properties(${test}_test_exe PROPERTIES COMPILE_FLAGS ${_flag})\n+    endforeach()\n+  endif()\n+\n+  foreach(_flag ${Vc_ARCHITECTURE_FLAGS})\n+    set_target_properties(${test}_test_exe PROPERTIES COMPILE_FLAGS ${_flag})\n+  endforeach()","path":"tests/unit/parallel/datapar_algorithms/CMakeLists.txt","position":45,"original_position":45,"commit_id":"10b7b35a459c00f73cbda1ec8d70bda398311cae","original_commit_id":"10b7b35a459c00f73cbda1ec8d70bda398311cae","user":{"login":"sithhell","id":53655,"avatar_url":"https://avatars.githubusercontent.com/u/53655?v=3","gravatar_id":"","url":"https://api.github.com/users/sithhell","html_url":"https://github.com/sithhell","followers_url":"https://api.github.com/users/sithhell/followers","following_url":"https://api.github.com/users/sithhell/following{/other_user}","gists_url":"https://api.github.com/users/sithhell/gists{/gist_id}","starred_url":"https://api.github.com/users/sithhell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sithhell/subscriptions","organizations_url":"https://api.github.com/users/sithhell/orgs","repos_url":"https://api.github.com/users/sithhell/repos","events_url":"https://api.github.com/users/sithhell/events{/privacy}","received_events_url":"https://api.github.com/users/sithhell/received_events","type":"User","site_admin":false},"body":"Same as for the inner_product benchmark. I think it would be wise to have these properties set globally. Otherwise this will be a subtile source of errors.","created_at":"2016-09-16T09:02:42Z","updated_at":"2016-09-16T09:42:52Z","html_url":"https://github.com/STEllAR-GROUP/hpx/pull/2330#discussion_r79131180","pull_request_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/2330","_links":{"self":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/comments/79131180"},"html":{"href":"https://github.com/STEllAR-GROUP/hpx/pull/2330#discussion_r79131180"},"pull_request":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/2330"}}},"pull_request":{"url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/2330","id":84787393,"html_url":"https://github.com/STEllAR-GROUP/hpx/pull/2330","diff_url":"https://github.com/STEllAR-GROUP/hpx/pull/2330.diff","patch_url":"https://github.com/STEllAR-GROUP/hpx/pull/2330.patch","issue_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/2330","number":2330,"state":"open","locked":false,"title":"Support for data-parallelism for parallel algorithms","user":{"login":"hkaiser","id":568063,"avatar_url":"https://avatars.githubusercontent.com/u/568063?v=3","gravatar_id":"","url":"https://api.github.com/users/hkaiser","html_url":"https://github.com/hkaiser","followers_url":"https://api.github.com/users/hkaiser/followers","following_url":"https://api.github.com/users/hkaiser/following{/other_user}","gists_url":"https://api.github.com/users/hkaiser/gists{/gist_id}","starred_url":"https://api.github.com/users/hkaiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkaiser/subscriptions","organizations_url":"https://api.github.com/users/hkaiser/orgs","repos_url":"https://api.github.com/users/hkaiser/repos","events_url":"https://api.github.com/users/hkaiser/events{/privacy}","received_events_url":"https://api.github.com/users/hkaiser/received_events","type":"User","site_admin":false},"body":"This PR proposes to add a new execution policy (currently called `datapar_execution`, this name may change in the future) which applies certain transformations to each of the elements of the input/output sequences in order to be able to vectorize the loop iterations. The transformations pack a number of input elements into a 'vector-pack' which is then passed to the iteration. Note that the iteration function needs to be either a generic lambda or a polymorphic function object as the types used are not always 'known' to the user. \r\n\r\nThe patch also supports using `datapar_execution(task)` to make the algorithm invocations asynchronous.\r\n\r\nThe transformations are applied for random-access input/output sequences of arithmetic types only. For all other cases the execution will silently fall back to the `par` execution policy..\r\n\r\nThis PR adds the `for_each`, `for_each_n`, `count`, `count_if`, and `transform` algorithms. Later commits add support for `inner_product` as well.\r\n\r\nCode using the new execution policies depends on the [Vc library](https://github.com/VcDevel/Vc). Specify `Vc_ROOT=<vc_install_dir>` to cmake for it to be located.\r\n\r\nOther execution policies will be added in the future, such as `dataseq_execution` and `dataseq_executon(task)`, i.e. vectorization without parallelization. We will also add support for executors and executor parameters.","created_at":"2016-09-11T14:09:57Z","updated_at":"2016-09-16T09:42:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5e422ac6d1b9993d9e2d53bfdc886478146b1c1","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/STEllAR-GROUP/hpx/milestones/21","html_url":"https://github.com/STEllAR-GROUP/hpx/milestones/1.0.0","labels_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/milestones/21/labels","id":483811,"number":21,"title":"1.0.0","description":"","creator":{"login":"hkaiser","id":568063,"avatar_url":"https://avatars.githubusercontent.com/u/568063?v=3","gravatar_id":"","url":"https://api.github.com/users/hkaiser","html_url":"https://github.com/hkaiser","followers_url":"https://api.github.com/users/hkaiser/followers","following_url":"https://api.github.com/users/hkaiser/following{/other_user}","gists_url":"https://api.github.com/users/hkaiser/gists{/gist_id}","starred_url":"https://api.github.com/users/hkaiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkaiser/subscriptions","organizations_url":"https://api.github.com/users/hkaiser/orgs","repos_url":"https://api.github.com/users/hkaiser/repos","events_url":"https://api.github.com/users/hkaiser/events{/privacy}","received_events_url":"https://api.github.com/users/hkaiser/received_events","type":"User","site_admin":false},"open_issues":106,"closed_issues":89,"state":"open","created_at":"2013-11-13T17:39:20Z","updated_at":"2016-09-15T14:23:00Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/2330/commits","review_comments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/2330/comments","review_comment_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/2330/comments","statuses_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/statuses/10b7b35a459c00f73cbda1ec8d70bda398311cae","head":{"label":"STEllAR-GROUP:datapar","ref":"datapar","sha":"10b7b35a459c00f73cbda1ec8d70bda398311cae","user":{"login":"STEllAR-GROUP","id":1780988,"avatar_url":"https://avatars.githubusercontent.com/u/1780988?v=3","gravatar_id":"","url":"https://api.github.com/users/STEllAR-GROUP","html_url":"https://github.com/STEllAR-GROUP","followers_url":"https://api.github.com/users/STEllAR-GROUP/followers","following_url":"https://api.github.com/users/STEllAR-GROUP/following{/other_user}","gists_url":"https://api.github.com/users/STEllAR-GROUP/gists{/gist_id}","starred_url":"https://api.github.com/users/STEllAR-GROUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STEllAR-GROUP/subscriptions","organizations_url":"https://api.github.com/users/STEllAR-GROUP/orgs","repos_url":"https://api.github.com/users/STEllAR-GROUP/repos","events_url":"https://api.github.com/users/STEllAR-GROUP/events{/privacy}","received_events_url":"https://api.github.com/users/STEllAR-GROUP/received_events","type":"Organization","site_admin":false},"repo":{"id":4455628,"name":"hpx","full_name":"STEllAR-GROUP/hpx","owner":{"login":"STEllAR-GROUP","id":1780988,"avatar_url":"https://avatars.githubusercontent.com/u/1780988?v=3","gravatar_id":"","url":"https://api.github.com/users/STEllAR-GROUP","html_url":"https://github.com/STEllAR-GROUP","followers_url":"https://api.github.com/users/STEllAR-GROUP/followers","following_url":"https://api.github.com/users/STEllAR-GROUP/following{/other_user}","gists_url":"https://api.github.com/users/STEllAR-GROUP/gists{/gist_id}","starred_url":"https://api.github.com/users/STEllAR-GROUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STEllAR-GROUP/subscriptions","organizations_url":"https://api.github.com/users/STEllAR-GROUP/orgs","repos_url":"https://api.github.com/users/STEllAR-GROUP/repos","events_url":"https://api.github.com/users/STEllAR-GROUP/events{/privacy}","received_events_url":"https://api.github.com/users/STEllAR-GROUP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/STEllAR-GROUP/hpx","description":"A general purpose C++ runtime system for parallel and distributed applications of any scale","fork":false,"url":"https://api.github.com/repos/STEllAR-GROUP/hpx","forks_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/forks","keys_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/teams","hooks_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/hooks","issue_events_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/events{/number}","events_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/events","assignees_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/assignees{/user}","branches_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/branches{/branch}","tags_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/tags","blobs_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/refs{/sha}","trees_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/statuses/{sha}","languages_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/languages","stargazers_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/stargazers","contributors_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/contributors","subscribers_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/subscribers","subscription_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/subscription","commits_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/commits{/sha}","git_commits_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/commits{/sha}","comments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/comments{/number}","issue_comment_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/comments{/number}","contents_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/contents/{+path}","compare_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/merges","archive_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/downloads","issues_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues{/number}","pulls_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls{/number}","milestones_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/milestones{/number}","notifications_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/labels{/name}","releases_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/releases{/id}","deployments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/deployments","created_at":"2012-05-26T15:02:39Z","updated_at":"2016-09-16T08:35:01Z","pushed_at":"2016-09-16T09:06:00Z","git_url":"git://github.com/STEllAR-GROUP/hpx.git","ssh_url":"git@github.com:STEllAR-GROUP/hpx.git","clone_url":"https://github.com/STEllAR-GROUP/hpx.git","svn_url":"https://github.com/STEllAR-GROUP/hpx","homepage":"http://stellar-group.org/libraries/hpx","size":553923,"stargazers_count":494,"watchers_count":494,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":129,"mirror_url":null,"open_issues_count":108,"forks":129,"open_issues":108,"watchers":494,"default_branch":"master"}},"base":{"label":"STEllAR-GROUP:master","ref":"master","sha":"050d1f17b6b7c77d9ca8fe399ca7e3ddea5ef6f8","user":{"login":"STEllAR-GROUP","id":1780988,"avatar_url":"https://avatars.githubusercontent.com/u/1780988?v=3","gravatar_id":"","url":"https://api.github.com/users/STEllAR-GROUP","html_url":"https://github.com/STEllAR-GROUP","followers_url":"https://api.github.com/users/STEllAR-GROUP/followers","following_url":"https://api.github.com/users/STEllAR-GROUP/following{/other_user}","gists_url":"https://api.github.com/users/STEllAR-GROUP/gists{/gist_id}","starred_url":"https://api.github.com/users/STEllAR-GROUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STEllAR-GROUP/subscriptions","organizations_url":"https://api.github.com/users/STEllAR-GROUP/orgs","repos_url":"https://api.github.com/users/STEllAR-GROUP/repos","events_url":"https://api.github.com/users/STEllAR-GROUP/events{/privacy}","received_events_url":"https://api.github.com/users/STEllAR-GROUP/received_events","type":"Organization","site_admin":false},"repo":{"id":4455628,"name":"hpx","full_name":"STEllAR-GROUP/hpx","owner":{"login":"STEllAR-GROUP","id":1780988,"avatar_url":"https://avatars.githubusercontent.com/u/1780988?v=3","gravatar_id":"","url":"https://api.github.com/users/STEllAR-GROUP","html_url":"https://github.com/STEllAR-GROUP","followers_url":"https://api.github.com/users/STEllAR-GROUP/followers","following_url":"https://api.github.com/users/STEllAR-GROUP/following{/other_user}","gists_url":"https://api.github.com/users/STEllAR-GROUP/gists{/gist_id}","starred_url":"https://api.github.com/users/STEllAR-GROUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STEllAR-GROUP/subscriptions","organizations_url":"https://api.github.com/users/STEllAR-GROUP/orgs","repos_url":"https://api.github.com/users/STEllAR-GROUP/repos","events_url":"https://api.github.com/users/STEllAR-GROUP/events{/privacy}","received_events_url":"https://api.github.com/users/STEllAR-GROUP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/STEllAR-GROUP/hpx","description":"A general purpose C++ runtime system for parallel and distributed applications of any scale","fork":false,"url":"https://api.github.com/repos/STEllAR-GROUP/hpx","forks_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/forks","keys_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/teams","hooks_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/hooks","issue_events_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/events{/number}","events_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/events","assignees_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/assignees{/user}","branches_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/branches{/branch}","tags_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/tags","blobs_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/refs{/sha}","trees_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/statuses/{sha}","languages_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/languages","stargazers_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/stargazers","contributors_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/contributors","subscribers_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/subscribers","subscription_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/subscription","commits_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/commits{/sha}","git_commits_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/commits{/sha}","comments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/comments{/number}","issue_comment_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/comments{/number}","contents_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/contents/{+path}","compare_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/merges","archive_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/downloads","issues_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues{/number}","pulls_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls{/number}","milestones_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/milestones{/number}","notifications_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/labels{/name}","releases_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/releases{/id}","deployments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/deployments","created_at":"2012-05-26T15:02:39Z","updated_at":"2016-09-16T08:35:01Z","pushed_at":"2016-09-16T09:06:00Z","git_url":"git://github.com/STEllAR-GROUP/hpx.git","ssh_url":"git@github.com:STEllAR-GROUP/hpx.git","clone_url":"https://github.com/STEllAR-GROUP/hpx.git","svn_url":"https://github.com/STEllAR-GROUP/hpx","homepage":"http://stellar-group.org/libraries/hpx","size":553923,"stargazers_count":494,"watchers_count":494,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":129,"mirror_url":null,"open_issues_count":108,"forks":129,"open_issues":108,"watchers":494,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/2330"},"html":{"href":"https://github.com/STEllAR-GROUP/hpx/pull/2330"},"issue":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/2330"},"comments":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/2330/comments"},"review_comments":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/2330/comments"},"review_comment":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/2330/commits"},"statuses":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/statuses/10b7b35a459c00f73cbda1ec8d70bda398311cae"}}}}
{"actor":{"display_login":"sithhell"}}