{"action":"created","comment":{"url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/comments/63196238","id":63196238,"diff_hunk":"@@ -0,0 +1,74 @@\n+/*\n+ *  Copyright (c) 2015 Intel Corporation. All rights reserved.\n+ *  This software is available to you under the BSD license below:\n+ *\n+ * *\tRedistribution and use in source and binary forms, with or\n+ *\twithout modification, are permitted provided that the following\n+ *\tconditions are met:\n+ *\n+ *\t- Redistributions of source code must retain the above\n+ *        copyright notice, this list of conditions and the following\n+ *        disclaimer.\n+ *\n+ *      - Redistributions in binary form must reproduce the above\n+ *        copyright notice, this list of conditions and the following\n+ *        disclaimer in the documentation and/or other materials\n+ *        provided with the distribution.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n+ * SOFTWARE.\n+**\n+**  This is a bandwidth centric test for get: back-to-back message rate\n+**\n+**  Features of Test: bi-direction bandwidth\n+**\n+**  -by default megabytes/second results\n+**\n+**NOTE: this test assumes correctness of reduction algorithm\n+*/\n+\n+#include <bw_common.h>\n+\n+int main(int argc, char *argv[])\n+{\n+    bi_dir_bw_main(argc,argv);\n+\n+    return 0;\n+}  /* end of main() */\n+\n+/*even PE's get to their odd counterpart (my_node + 1), which does a get\n+ * back to them at the same time*/\n+void\n+bi_dir_bw(int len, perf_metrics_t *metric_info)\n+{\n+    double start = 0.0, end = 0.0;\n+    int dest = partner_node(metric_info->my_node);\n+    int i = 0, j = 0;\n+\n+    shmem_barrier_all();\n+\n+    if (metric_info->my_node % 2 == 0) {\n+        for (i = 0; i < metric_info->trials + metric_info->warmup; i++) {\n+            if(i == metric_info->warmup)\n+                start = shmemx_wtime();\n+\n+            for(j = 0; j < metric_info->window_size; j++)\n+                shmem_getmem_nbi(metric_info->dest, metric_info->src, len, dest);","path":"test/performance/shmem_perf_suite/shmem_bibw_nb_get_perf.c","position":62,"original_position":62,"commit_id":"24d065b56636abbfb1b30a88f213972ea7155653","original_commit_id":"57605fe42d85a83511ee9cd7414ed723e6f9032d","user":{"login":"sayantansur","id":8459709,"avatar_url":"https://avatars.githubusercontent.com/u/8459709?v=3","gravatar_id":"","url":"https://api.github.com/users/sayantansur","html_url":"https://github.com/sayantansur","followers_url":"https://api.github.com/users/sayantansur/followers","following_url":"https://api.github.com/users/sayantansur/following{/other_user}","gists_url":"https://api.github.com/users/sayantansur/gists{/gist_id}","starred_url":"https://api.github.com/users/sayantansur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayantansur/subscriptions","organizations_url":"https://api.github.com/users/sayantansur/orgs","repos_url":"https://api.github.com/users/sayantansur/repos","events_url":"https://api.github.com/users/sayantansur/events{/privacy}","received_events_url":"https://api.github.com/users/sayantansur/received_events","type":"User","site_admin":false},"body":"Don't the shmem semantics force you to look at end-to-end completion? Another option might be to do a barrier at the end of the warmups?\r\n\r\nWe can proceed for now if you're kind enough to create an issue so we don't forget to reinvestigate this on some fast network :-)","created_at":"2016-05-13T14:51:28Z","updated_at":"2016-05-13T14:51:28Z","html_url":"https://github.com/Sandia-OpenSHMEM/SOS/pull/194#discussion_r63196238","pull_request_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/194","_links":{"self":{"href":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/comments/63196238"},"html":{"href":"https://github.com/Sandia-OpenSHMEM/SOS/pull/194#discussion_r63196238"},"pull_request":{"href":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/194"}}},"pull_request":{"url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/194","id":69910281,"html_url":"https://github.com/Sandia-OpenSHMEM/SOS/pull/194","diff_url":"https://github.com/Sandia-OpenSHMEM/SOS/pull/194.diff","patch_url":"https://github.com/Sandia-OpenSHMEM/SOS/pull/194.patch","issue_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/issues/194","number":194,"state":"open","locked":false,"title":"Nb perf tests","user":{"login":"kseager","id":1675997,"avatar_url":"https://avatars.githubusercontent.com/u/1675997?v=3","gravatar_id":"","url":"https://api.github.com/users/kseager","html_url":"https://github.com/kseager","followers_url":"https://api.github.com/users/kseager/followers","following_url":"https://api.github.com/users/kseager/following{/other_user}","gists_url":"https://api.github.com/users/kseager/gists{/gist_id}","starred_url":"https://api.github.com/users/kseager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseager/subscriptions","organizations_url":"https://api.github.com/users/kseager/orgs","repos_url":"https://api.github.com/users/kseager/repos","events_url":"https://api.github.com/users/kseager/events{/privacy}","received_events_url":"https://api.github.com/users/kseager/received_events","type":"User","site_admin":false},"body":"+enables stand-alone build for perf tests\r\n+adds non-blocking tests\r\n+fixes shmem_free bug that showed up in Cray SHMEM runs\r\n\r\n@jdinan or @sayantansur for review","created_at":"2016-05-12T21:30:26Z","updated_at":"2016-05-13T14:51:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4f5beb101714ac1558baf30c2e52fa2c0a350b4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/194/commits","review_comments_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/194/comments","review_comment_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/issues/194/comments","statuses_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/statuses/24d065b56636abbfb1b30a88f213972ea7155653","head":{"label":"kseager:nb_perf_tests","ref":"nb_perf_tests","sha":"24d065b56636abbfb1b30a88f213972ea7155653","user":{"login":"kseager","id":1675997,"avatar_url":"https://avatars.githubusercontent.com/u/1675997?v=3","gravatar_id":"","url":"https://api.github.com/users/kseager","html_url":"https://github.com/kseager","followers_url":"https://api.github.com/users/kseager/followers","following_url":"https://api.github.com/users/kseager/following{/other_user}","gists_url":"https://api.github.com/users/kseager/gists{/gist_id}","starred_url":"https://api.github.com/users/kseager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseager/subscriptions","organizations_url":"https://api.github.com/users/kseager/orgs","repos_url":"https://api.github.com/users/kseager/repos","events_url":"https://api.github.com/users/kseager/events{/privacy}","received_events_url":"https://api.github.com/users/kseager/received_events","type":"User","site_admin":false},"repo":{"id":42545546,"name":"sandia-shmem","full_name":"kseager/sandia-shmem","owner":{"login":"kseager","id":1675997,"avatar_url":"https://avatars.githubusercontent.com/u/1675997?v=3","gravatar_id":"","url":"https://api.github.com/users/kseager","html_url":"https://github.com/kseager","followers_url":"https://api.github.com/users/kseager/followers","following_url":"https://api.github.com/users/kseager/following{/other_user}","gists_url":"https://api.github.com/users/kseager/gists{/gist_id}","starred_url":"https://api.github.com/users/kseager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseager/subscriptions","organizations_url":"https://api.github.com/users/kseager/orgs","repos_url":"https://api.github.com/users/kseager/repos","events_url":"https://api.github.com/users/kseager/events{/privacy}","received_events_url":"https://api.github.com/users/kseager/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kseager/sandia-shmem","description":"Sandia SHMEM is an implementation of the OpenSHMEM Standard over multiple Networking APIs, including Portals4. Sandia SHMEM is designed to be a low-overhead implementation of the SHMEM standard which takes advantage of the many features of the advanced networking APIs, including the Portals 4 specification. ","fork":true,"url":"https://api.github.com/repos/kseager/sandia-shmem","forks_url":"https://api.github.com/repos/kseager/sandia-shmem/forks","keys_url":"https://api.github.com/repos/kseager/sandia-shmem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kseager/sandia-shmem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kseager/sandia-shmem/teams","hooks_url":"https://api.github.com/repos/kseager/sandia-shmem/hooks","issue_events_url":"https://api.github.com/repos/kseager/sandia-shmem/issues/events{/number}","events_url":"https://api.github.com/repos/kseager/sandia-shmem/events","assignees_url":"https://api.github.com/repos/kseager/sandia-shmem/assignees{/user}","branches_url":"https://api.github.com/repos/kseager/sandia-shmem/branches{/branch}","tags_url":"https://api.github.com/repos/kseager/sandia-shmem/tags","blobs_url":"https://api.github.com/repos/kseager/sandia-shmem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kseager/sandia-shmem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kseager/sandia-shmem/git/refs{/sha}","trees_url":"https://api.github.com/repos/kseager/sandia-shmem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kseager/sandia-shmem/statuses/{sha}","languages_url":"https://api.github.com/repos/kseager/sandia-shmem/languages","stargazers_url":"https://api.github.com/repos/kseager/sandia-shmem/stargazers","contributors_url":"https://api.github.com/repos/kseager/sandia-shmem/contributors","subscribers_url":"https://api.github.com/repos/kseager/sandia-shmem/subscribers","subscription_url":"https://api.github.com/repos/kseager/sandia-shmem/subscription","commits_url":"https://api.github.com/repos/kseager/sandia-shmem/commits{/sha}","git_commits_url":"https://api.github.com/repos/kseager/sandia-shmem/git/commits{/sha}","comments_url":"https://api.github.com/repos/kseager/sandia-shmem/comments{/number}","issue_comment_url":"https://api.github.com/repos/kseager/sandia-shmem/issues/comments{/number}","contents_url":"https://api.github.com/repos/kseager/sandia-shmem/contents/{+path}","compare_url":"https://api.github.com/repos/kseager/sandia-shmem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kseager/sandia-shmem/merges","archive_url":"https://api.github.com/repos/kseager/sandia-shmem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kseager/sandia-shmem/downloads","issues_url":"https://api.github.com/repos/kseager/sandia-shmem/issues{/number}","pulls_url":"https://api.github.com/repos/kseager/sandia-shmem/pulls{/number}","milestones_url":"https://api.github.com/repos/kseager/sandia-shmem/milestones{/number}","notifications_url":"https://api.github.com/repos/kseager/sandia-shmem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kseager/sandia-shmem/labels{/name}","releases_url":"https://api.github.com/repos/kseager/sandia-shmem/releases{/id}","deployments_url":"https://api.github.com/repos/kseager/sandia-shmem/deployments","created_at":"2015-09-15T20:45:46Z","updated_at":"2016-01-11T22:49:00Z","pushed_at":"2016-05-12T22:18:53Z","git_url":"git://github.com/kseager/sandia-shmem.git","ssh_url":"git@github.com:kseager/sandia-shmem.git","clone_url":"https://github.com/kseager/sandia-shmem.git","svn_url":"https://github.com/kseager/sandia-shmem","homepage":"http://www.cs.sandia.gov/Portals/portals4.html","size":1435,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Sandia-OpenSHMEM:master","ref":"master","sha":"62e7d3104a54f13950470330e47f9c4ad85e8fa8","user":{"login":"Sandia-OpenSHMEM","id":16339082,"avatar_url":"https://avatars.githubusercontent.com/u/16339082?v=3","gravatar_id":"","url":"https://api.github.com/users/Sandia-OpenSHMEM","html_url":"https://github.com/Sandia-OpenSHMEM","followers_url":"https://api.github.com/users/Sandia-OpenSHMEM/followers","following_url":"https://api.github.com/users/Sandia-OpenSHMEM/following{/other_user}","gists_url":"https://api.github.com/users/Sandia-OpenSHMEM/gists{/gist_id}","starred_url":"https://api.github.com/users/Sandia-OpenSHMEM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sandia-OpenSHMEM/subscriptions","organizations_url":"https://api.github.com/users/Sandia-OpenSHMEM/orgs","repos_url":"https://api.github.com/users/Sandia-OpenSHMEM/repos","events_url":"https://api.github.com/users/Sandia-OpenSHMEM/events{/privacy}","received_events_url":"https://api.github.com/users/Sandia-OpenSHMEM/received_events","type":"Organization","site_admin":false},"repo":{"id":42528680,"name":"SOS","full_name":"Sandia-OpenSHMEM/SOS","owner":{"login":"Sandia-OpenSHMEM","id":16339082,"avatar_url":"https://avatars.githubusercontent.com/u/16339082?v=3","gravatar_id":"","url":"https://api.github.com/users/Sandia-OpenSHMEM","html_url":"https://github.com/Sandia-OpenSHMEM","followers_url":"https://api.github.com/users/Sandia-OpenSHMEM/followers","following_url":"https://api.github.com/users/Sandia-OpenSHMEM/following{/other_user}","gists_url":"https://api.github.com/users/Sandia-OpenSHMEM/gists{/gist_id}","starred_url":"https://api.github.com/users/Sandia-OpenSHMEM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sandia-OpenSHMEM/subscriptions","organizations_url":"https://api.github.com/users/Sandia-OpenSHMEM/orgs","repos_url":"https://api.github.com/users/Sandia-OpenSHMEM/repos","events_url":"https://api.github.com/users/Sandia-OpenSHMEM/events{/privacy}","received_events_url":"https://api.github.com/users/Sandia-OpenSHMEM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sandia-OpenSHMEM/SOS","description":"Sandia OpenSHMEM is an implementation of the OpenSHMEM specification over multiple Networking APIs, including Portals 4 and the Open Fabric Interface (OFI).  Please click on the Wiki tab for help with building and using SOS.","fork":false,"url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS","forks_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/forks","keys_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/teams","hooks_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/hooks","issue_events_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/issues/events{/number}","events_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/events","assignees_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/assignees{/user}","branches_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/branches{/branch}","tags_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/tags","blobs_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/statuses/{sha}","languages_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/languages","stargazers_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/stargazers","contributors_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/contributors","subscribers_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/subscribers","subscription_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/subscription","commits_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/contents/{+path}","compare_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/merges","archive_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/downloads","issues_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/issues{/number}","pulls_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls{/number}","milestones_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/milestones{/number}","notifications_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/labels{/name}","releases_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/releases{/id}","deployments_url":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/deployments","created_at":"2015-09-15T15:34:37Z","updated_at":"2016-04-18T21:42:14Z","pushed_at":"2016-05-12T22:18:53Z","git_url":"git://github.com/Sandia-OpenSHMEM/SOS.git","ssh_url":"git@github.com:Sandia-OpenSHMEM/SOS.git","clone_url":"https://github.com/Sandia-OpenSHMEM/SOS.git","svn_url":"https://github.com/Sandia-OpenSHMEM/SOS","homepage":"","size":1532,"stargazers_count":8,"watchers_count":8,"language":"C","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":40,"forks":11,"open_issues":40,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/194"},"html":{"href":"https://github.com/Sandia-OpenSHMEM/SOS/pull/194"},"issue":{"href":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/issues/194"},"comments":{"href":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/Sandia-OpenSHMEM/SOS/statuses/24d065b56636abbfb1b30a88f213972ea7155653"}}}}