{"action":"created","issue":{"url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/1030","repository_url":"https://api.github.com/repos/raffenet/mpich-migrate-test","labels_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/1030/comments","events_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/1030/events","html_url":"https://github.com/raffenet/mpich-migrate-test/issues/1030","id":168461958,"number":1030,"title":"MPICH2 creates faulty MPI datatype for array subsections","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/8","html_url":"https://github.com/raffenet/mpich-migrate-test/milestones/mpich2-1.3","labels_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/milestones/8/labels","id":1911838,"number":8,"title":"mpich2-1.3","description":"'''Milestone Major Goals:'''\n\n * ~~'''Asynchronous progress support''' [status: complete]~~\n\n * ~~'''Fault Tolerance''' [status: complete]~~\n   - ~~BLCR checkpointing support [status: complete]~~\n   - ~~FTB integration [status: complete]~~\n   - ~~Error returns on failures for TCP netmod [status: complete]~~\n\n * '''Hydra to replace MPD as the default process manager'''\n   - ~~Support for dynamic processes [status: complete]~~\n   - ~~PMI tunneling [status: complete]~~\n   - ~~Totalview support [status: complete]~~\n   - ~~Use hwloc as the default process binding mechanism [status: complete]~~\n   - Support for pbs, lsf, loadleveler, sge [status: pbs work to be completed; everything else is in place]\n   - Padb support [status: to be done]\n   - Windows support [status: to be done]\n\n * '''Fine-grained threading support''' [status: preliminary support available]\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":62,"state":"closed","created_at":"2016-07-29T14:57:29Z","updated_at":"2016-07-30T10:57:27Z","due_on":"2010-09-30T05:00:00Z","closed_at":"2016-07-29T14:57:29Z"},"comments":5,"created_at":"2016-07-30T10:57:26Z","updated_at":"2016-07-30T11:02:29Z","closed_at":null,"body":"**Originally by _matthias.lieber@tu-dresden.de_ on 2010-04-08 09:48:34 -0500**\n\n___\nMPICH2-1.2.1p1 has problems with an MPI datatype, created by a hierarchy of\nMPI_Type_structs (also happens with MPI_Type_create_struct).\n\nI found the bug in my application when sending subsections of\n4D arrays using MPI datatypes. The attached source reproduces\nthe problem with a small 2D array.\n\nThe code runs fine with all other MPIs I tested\n(MPICH, MVAPICH, Open MPI, SGI MPT, Intel MPI, IBM PE).\nValgrind reports no errors with MPICH2.\n\nThe correct output of the test program is:\n```\n  -1.0   1.0   2.0   5.0\n  -1.0   3.0   4.0   6.0\n```\n\nOutput from MPICH2:\n```\n  -1.0   1.0   2.0   5.0\n   6.0   3.0   4.0  -1.0\n```\n\n(positive numbers are received parts,\nnegative numbers are untouched parts of the array)\n\n\nEnabling some debugging in the relevant code parts of MPICH2 returns\nthe structure of the flattened MPI datatype:\n\n```\ndataloop_create_struct.c\t679\t--- start of flattened type ---\ndataloop_create_struct.c\t683\ta[0] = (8, 4)\ndataloop_create_struct.c\t683\ta[1] = (8, 20)\ndataloop_create_struct.c\t683\ta[2] = (8, 12)\ndataloop_create_struct.c\t685\t--- end of flattened type ---\n```\n\nWith a[i] = (block length in byte, displacement).\nBut the expected result is a type with 4 blocks:\n```\na[0] for 1.0 and 2.0 (see array output above)\na[1] for 3.0 and 4.0\na[2] for 5.0\na[3] for 6.0\n```\n\n```\ndataloop_create_struct.c\t679\t--- start of flattened type ---\ndataloop_create_struct.c\t683\ta[0] = (8, 4)\ndataloop_create_struct.c\t683\ta[1] = (8, 20)\ndataloop_create_struct.c\t683\ta[2] = (4, 12)\ndataloop_create_struct.c\t683\ta[3] = (4, 28)\ndataloop_create_struct.c\t685\t--- end of flattened type ---\n```\n\nIt looks like something below MPI_Type_commit goes wrong here...\n\nI reproduced the bug on my x86_64 Laptop using the Intel compilers,\nbut the problem also appears on a BG/P machine with an MPICH2-1.1 based MPI.\n"},"comment":{"url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/comments/236359272","html_url":"https://github.com/raffenet/mpich-migrate-test/issues/1030#issuecomment-236359272","issue_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/1030","id":236359272,"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-07-30T11:02:29Z","updated_at":"2016-07-30T11:02:29Z","body":"**Originally by _thakur_ on 2010-04-08 14:26:02 -0500**\n\n___\n**Attachment added:** [`test_new.f90`](https://github.com/raffenet/mpich-migrate-test/blob/master/attachments/1030/test_new.f90) (4.8 KiB)\n"}}
{"actor":{"display_login":"raffenet"}}