{"action":"created","issue":{"url":"https://api.github.com/repos/solomonik/ctf/issues/10","labels_url":"https://api.github.com/repos/solomonik/ctf/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/solomonik/ctf/issues/10/comments","events_url":"https://api.github.com/repos/solomonik/ctf/issues/10/events","html_url":"https://github.com/solomonik/ctf/issues/10","id":125029944,"number":10,"title":"MPI_DOUBLE_COMPLEX is an \"invalid datatype\"","user":{"login":"devinamatthews","id":5246113,"avatar_url":"https://avatars.githubusercontent.com/u/5246113?v=3","gravatar_id":"","url":"https://api.github.com/users/devinamatthews","html_url":"https://github.com/devinamatthews","followers_url":"https://api.github.com/users/devinamatthews/followers","following_url":"https://api.github.com/users/devinamatthews/following{/other_user}","gists_url":"https://api.github.com/users/devinamatthews/gists{/gist_id}","starred_url":"https://api.github.com/users/devinamatthews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devinamatthews/subscriptions","organizations_url":"https://api.github.com/users/devinamatthews/orgs","repos_url":"https://api.github.com/users/devinamatthews/repos","events_url":"https://api.github.com/users/devinamatthews/events{/privacy}","received_events_url":"https://api.github.com/users/devinamatthews/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2016-01-05T19:06:55Z","updated_at":"2016-01-08T23:02:38Z","closed_at":null,"body":"OpenMPI 1.10 on OSX gives the following error when using the `MPI_DOUBLE_COMPLEX` datatype (from C++):\r\n\r\n> [Devins-iMac:62206] *** An error occurred in MPI_Alltoallv\r\n> [Devins-iMac:62206] *** reported by process [1094451201,0]\r\n> [Devins-iMac:62206] *** on communicator MPI_COMM_WORLD\r\n> [Devins-iMac:62206] *** MPI_ERR_TYPE: invalid datatype\r\n> [Devins-iMac:62206] *** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,\r\n> [Devins-iMac:62206] ***    and potentially your MPI job)\r\n\r\nA simple program to test this is:\r\n\r\n```C\r\n#include \"mpi.h\"\r\n\r\nint main(int argc, char **argv)\r\n{\r\n    char a[16], b[16];\r\n    int n = 1, d = 0;\r\n    MPI_Init(&argc, &argv);\r\n    MPI_Alltoallv(&a, &n, &d, MPI_DOUBLE_COMPLEX,\r\n                  &b, &n, &d, MPI_DOUBLE_COMPLEX, MPI_COMM_WORLD);\r\n    MPI_Finalize();\r\n    return 0;\r\n}\r\n```\r\n\r\nIn the context of `CTF_int::CommData::all_to_allv` it might be better to just use `MPI_BYTE` and scale the counts/displs accordingly."},"comment":{"url":"https://api.github.com/repos/solomonik/ctf/issues/comments/170151463","html_url":"https://github.com/solomonik/ctf/issues/10#issuecomment-170151463","issue_url":"https://api.github.com/repos/solomonik/ctf/issues/10","id":170151463,"user":{"login":"solomonik","id":2350326,"avatar_url":"https://avatars.githubusercontent.com/u/2350326?v=3","gravatar_id":"","url":"https://api.github.com/users/solomonik","html_url":"https://github.com/solomonik","followers_url":"https://api.github.com/users/solomonik/followers","following_url":"https://api.github.com/users/solomonik/following{/other_user}","gists_url":"https://api.github.com/users/solomonik/gists{/gist_id}","starred_url":"https://api.github.com/users/solomonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solomonik/subscriptions","organizations_url":"https://api.github.com/users/solomonik/orgs","repos_url":"https://api.github.com/users/solomonik/repos","events_url":"https://api.github.com/users/solomonik/events{/privacy}","received_events_url":"https://api.github.com/users/solomonik/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T23:02:38Z","updated_at":"2016-01-08T23:02:38Z","body":"Sounds like we can get OpenMPI working by switching from MPI_CXX_... to MPI_C_..., did I understand this correctly.  Jeff doesn't MPICH also recognize MPI_C_... without issue?  Did you only recommend MPI_CXX because of the standard?"}}