{"action":"created","issue":{"url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/1622","repository_url":"https://api.github.com/repos/raffenet/mpich-migrate-test","labels_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/1622/labels{/name}","comments_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/1622/comments","events_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/1622/events","html_url":"https://github.com/raffenet/mpich-migrate-test/issues/1622","id":168678066,"number":1622,"title":"MPI failed after freopen() redirect stdin","user":{"login":"raffenet","id":1410792,"avatar_url":"https://avatars.githubusercontent.com/u/1410792?v=3","gravatar_id":"","url":"https://api.github.com/users/raffenet","html_url":"https://github.com/raffenet","followers_url":"https://api.github.com/users/raffenet/followers","following_url":"https://api.github.com/users/raffenet/following{/other_user}","gists_url":"https://api.github.com/users/raffenet/gists{/gist_id}","starred_url":"https://api.github.com/users/raffenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffenet/subscriptions","organizations_url":"https://api.github.com/users/raffenet/orgs","repos_url":"https://api.github.com/users/raffenet/repos","events_url":"https://api.github.com/users/raffenet/events{/privacy}","received_events_url":"https://api.github.com/users/raffenet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"raffenet","id":1410792,"avatar_url":"https://avatars.githubusercontent.com/u/1410792?v=3","gravatar_id":"","url":"https://api.github.com/users/raffenet","html_url":"https://github.com/raffenet","followers_url":"https://api.github.com/users/raffenet/followers","following_url":"https://api.github.com/users/raffenet/following{/other_user}","gists_url":"https://api.github.com/users/raffenet/gists{/gist_id}","starred_url":"https://api.github.com/users/raffenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffenet/subscriptions","organizations_url":"https://api.github.com/users/raffenet/orgs","repos_url":"https://api.github.com/users/raffenet/repos","events_url":"https://api.github.com/users/raffenet/events{/privacy}","received_events_url":"https://api.github.com/users/raffenet/received_events","type":"User","site_admin":false},"assignees":[{"login":"raffenet","id":1410792,"avatar_url":"https://avatars.githubusercontent.com/u/1410792?v=3","gravatar_id":"","url":"https://api.github.com/users/raffenet","html_url":"https://github.com/raffenet","followers_url":"https://api.github.com/users/raffenet/followers","following_url":"https://api.github.com/users/raffenet/following{/other_user}","gists_url":"https://api.github.com/users/raffenet/gists{/gist_id}","starred_url":"https://api.github.com/users/raffenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffenet/subscriptions","organizations_url":"https://api.github.com/users/raffenet/orgs","repos_url":"https://api.github.com/users/raffenet/repos","events_url":"https://api.github.com/users/raffenet/events{/privacy}","received_events_url":"https://api.github.com/users/raffenet/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/raffenet/mpich-migrate-test/milestones/18","html_url":"https://github.com/raffenet/mpich-migrate-test/milestones/mpich-3.1","labels_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/milestones/18/labels","id":1911848,"number":18,"title":"mpich-3.1","description":"mpich-3.1 is a feature release, with several large new features planned for it.  Below is a wish-list of features that are being considered.  Some of these might not make it into the release, and will be pushed to a later release.\r\n\r\n'''Major Features:'''\r\n  - ~~Improved support for Intel MIC (contribution from Intel) [complete]~~\r\n  - ~~MPICH-PAMI Integration (contribution from IBM) [complete]~~\r\n  - ~~MPI-3 compatible Fault Tolerance [complete]~~\r\n  - ~~RMA performance improvements [complete]~~\r\n  - ~~MPI Tools Interface Improvements [complete]~~\r\n  - ~~MPICH 3.1 ABI updates [complete]~~\r\n  - ~~MPI large count 64-bit safety [complete]~~\r\n ","creator":{"login":"raffenet","id":1410792,"avatar_url":"https://avatars.githubusercontent.com/u/1410792?v=3","gravatar_id":"","url":"https://api.github.com/users/raffenet","html_url":"https://github.com/raffenet","followers_url":"https://api.github.com/users/raffenet/followers","following_url":"https://api.github.com/users/raffenet/following{/other_user}","gists_url":"https://api.github.com/users/raffenet/gists{/gist_id}","starred_url":"https://api.github.com/users/raffenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffenet/subscriptions","organizations_url":"https://api.github.com/users/raffenet/orgs","repos_url":"https://api.github.com/users/raffenet/repos","events_url":"https://api.github.com/users/raffenet/events{/privacy}","received_events_url":"https://api.github.com/users/raffenet/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"closed","created_at":"2016-07-29T14:57:30Z","updated_at":"2016-08-01T15:46:37Z","due_on":"2014-02-12T06:00:00Z","closed_at":"2016-07-29T14:57:30Z"},"comments":9,"created_at":"2016-08-01T15:46:36Z","updated_at":"2016-08-01T15:46:40Z","closed_at":null,"body":"**Originally by _zxu2@nd.edu_ on 2012-04-26 13:58:15 -0500**\n\n___\nThe following code redirect \"stdin\" to an input file \"test_input\".\n\nHowever, after using freopen() to redirect, the subsequent MPI_Send/Recv fails.\n\n```\n#include \"stdlib.h\"\n#include \"stdio.h\"\n#include \"iostream\"\n#include \"time.h\"\n#include \"unistd.h\"\n#include \"mpi.h\"\n\nint main(int argc, char** argv)\n{\n     int     p, my_rank, tag = 47, i, ppi;\n     double  u[110];\n     double  buf[3];\n     char    filename[256];\n     char    infilename[256];\n     FILE    *fp;\n\n     MPI_Status status;\n\n     MPI_Init(&argc, &argv);\n     MPI_Comm_rank(MPI_COMM_WORLD, &my_rank);\n     MPI_Comm_size(MPI_COMM_WORLD, &p);\n\n     sprintf(infilename, \"test_input\");\n     fp = freopen(infilename, \"r\",stdin);\n\n     if(NULL == fp)\n     {\n         printf(\"ERROR: freopen stdin failed\\n\");\n         fflush(stdout);\n         exit(-1);\n     }\n\n     sprintf(filename, \"outputfile.%d\", my_rank);\n     freopen(filename, \"w\",stdout);\n\n\n     if(my_rank == 0)\n     {\n         buf[0] # 1.0; buf[1]2.0; buf[2] = 3.0;\n         for(i = 1; i < p; i++)\n             MPI_Send(buf, 3, MPI_DOUBLE, i, tag, MPI_COMM_WORLD);\n     }\n     else\n     {\n         MPI_Recv(buf, 3, MPI_DOUBLE, 0, tag, MPI_COMM_WORLD, &status);\n         printf(\"buf[%g, %g, %g]\\n\", buf[0], buf[1], buf[2]);\n     }\n\n     MPI_Finalize();\n}\n```"},"comment":{"url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/comments/236620311","html_url":"https://github.com/raffenet/mpich-migrate-test/issues/1622#issuecomment-236620311","issue_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/1622","id":236620311,"user":{"login":"raffenet","id":1410792,"avatar_url":"https://avatars.githubusercontent.com/u/1410792?v=3","gravatar_id":"","url":"https://api.github.com/users/raffenet","html_url":"https://github.com/raffenet","followers_url":"https://api.github.com/users/raffenet/followers","following_url":"https://api.github.com/users/raffenet/following{/other_user}","gists_url":"https://api.github.com/users/raffenet/gists{/gist_id}","starred_url":"https://api.github.com/users/raffenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffenet/subscriptions","organizations_url":"https://api.github.com/users/raffenet/orgs","repos_url":"https://api.github.com/users/raffenet/repos","events_url":"https://api.github.com/users/raffenet/events{/privacy}","received_events_url":"https://api.github.com/users/raffenet/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T15:46:40Z","updated_at":"2016-08-01T15:46:40Z","body":"**Originally by _thakur_ on 2012-04-27 14:47:41 -0500**\n\n___\nMPI I/O doesn't handle ASCII text files. (Just mentioning. I am not arguing for or against fixing it.)"}}
{"actor":{"display_login":"raffenet"}}