{"action":"created","issue":{"url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/307","repository_url":"https://api.github.com/repos/raffenet/mpich-migrate-test","labels_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/307/comments","events_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/307/events","html_url":"https://github.com/raffenet/mpich-migrate-test/issues/307","id":167998170,"number":307,"title":"about /iface:mixed_str_len_arg","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/6","html_url":"https://github.com/raffenet/mpich-migrate-test/milestones/future","labels_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/milestones/6/labels","id":1907981,"number":6,"title":"future","description":"","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":14,"closed_issues":9,"state":"open","created_at":"2016-07-27T19:41:14Z","updated_at":"2016-07-28T02:05:53Z","due_on":"2049-12-31T06:00:00Z","closed_at":null},"comments":20,"created_at":"2016-07-28T02:05:52Z","updated_at":"2016-07-28T02:05:58Z","closed_at":null,"body":"**Originally by _\"Wei Yao\" <Yao-W@email.ulster.ac.uk>_ on 2008-11-25 11:33:46 -0600**\n\n___\n\n\n```\n\nDear MPI developing group,\n\nI am trying to run a FORTRAN code (Intel Fortran compilier). In my code I need\nto use\nthe compilier option: \"/iface:mixed_str_len_arg\".\nUnfortrantely MPICH2 does not support this mixed_str_len_arg.\nI tried compiling the MPICH2 source code with mixed_str_len_arg option, but it\nstill does not work.\nDo you know how to compile a MPI version that supports /iface:mixed_str_len_arg\n(based in Interl Fortran compilier).\n\n\n\nCheers,\nWei Yao\n\n\n```"},"comment":{"url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/comments/235779385","html_url":"https://github.com/raffenet/mpich-migrate-test/issues/307#issuecomment-235779385","issue_url":"https://api.github.com/repos/raffenet/mpich-migrate-test/issues/307","id":235779385,"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-28T02:05:58Z","updated_at":"2016-07-28T02:05:58Z","body":"**Originally by _Jayesh Krishna_ on 2008-12-10 11:55:48 -0600**\n\n___\n```\n\nHi,\n Also a slight change is required in the MPICH2 fortran interface library\ntoo. Let me know if you would be able to make the changes mentioned below\nand then I can provide you with the updated fortran interface library for\nMPICH2.\n\nRegards,\nJayesh\n\n  _____\n\nFrom: Jayesh Krishna [mailto:krishna@zimbra.mcs.anl.gov]\nSent: Wednesday, December 10, 2008 11:50 AM\nTo: 'Yao-W@email.ulster.ac.uk'\nCc: 'mpich2-maint@mcs.anl.gov'\nSubject: RE: [mpich2-maint] #307: about /iface:mixed_str_len_arg\n\n\n\n Hi,\n  As long as you don't have to pass CHARACTER strings between the two\nsource files (the one that makes MPI calls & the one that makes CHEMKIN\ncalls) you should be ok. You can compile the source that makes MPI calls\nwith \"stdcall+reference+names_uppercase+no_mixed_str_len\" settiings\n(/iface:stdref /names:uppercase) & the source that makes CHEMKIN calls\nwith \"/iface:cvf\" option. The linker would then be able to link your\nobject files to create an executable.\n  Let us know if it works for you.\n\nRegards,\nJayesh\n\n-----Original Message-----\nFrom: mpich2-bugs-bounces@mcs.anl.gov\n[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2\nSent: Wednesday, December 10, 2008 4:07 AM\nTo: undisclosed-recipients:\nSubject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg\n\n--------------------------------------------------+---------------------\n--------------------------------------------------+----\n Reporter:  \"Wei Yao\" <Yao-W@email.ulster.ac.uk>  |        Owner:\n     Type:  bug                                   |       Status:  new\n Priority:  major                                 |    Milestone:\nComponent:  mpich2                                |   Resolution:\n Keywords:                                        |\n--------------------------------------------------+---------------------\n--------------------------------------------------+----\n\n\nComment (by Wei Yao):\n\n {{{\n\n Dear Jayesh,\n\n The CHEMKIN does not include any MPI calls.\n It is easy to do what you suggest: to separate the code that makes MPI\ncalls and  calls to\n  CHEMKIN to different source files & compile with different compiler\narguments.\n But How\n can I build them in the same executable file?\n\n\n Cheers,\n Wei\n\n\n\n ----- Original Message -----\n From: \"mpich2\" <mpich2-maint@mcs.anl.gov>\n Sent: Tuesday, December 09, 2008 10:39 PM\n Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg\n\n\n >\n\n--------------------------------------------------+-----------------------\n--\n > Reporter:  \"Wei Yao\" <Yao-W@email.ulster.ac.uk>  |        Owner:\n >     Type:  bug                                   |       Status:  new\n > Priority:  major                                 |    Milestone:\n > Component:  mpich2                                |   Resolution:\n > Keywords:                                        |\n >\n\n--------------------------------------------------+-----------------------\n--\n >\n >\n > Comment (by Jayesh Krishna):\n >\n > {{{\n >\n >  Hi,\n >   Does the library CHEMKIN make any MPI calls (Is it linked with MPICH2\n ?\n > ) ? If not, can you separate the code that makes MPI calls and calls to\n> CHEMKIN to different source files & compile with different compiler  >\narguments (calls to MPI/MPICH2 with no_mixed_str_len_arg & calls to  >\nCHEMKIN with mixed_str_len_arg) ?\n >\n > (PS: Supporting mixed_str_len_arg compiler option would require some\nwork  > and might not be available instantly.)  > Regards,  > Jayesh  >  >\n-----Original Message-----  > From: mpich2-bugs-bounces@mcs.anl.gov  >\n[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:\nMonday, December 08, 2008 9:25 AM  > To: undisclosed-recipients:\n > Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >\n--------------------------------------------------+---------------------\n > --------------------------------------------------+----\n >  Reporter:  \"Wei Yao\" <Yao-W@email.ulster.ac.uk>  |        Owner:\n >      Type:  bug                                   |       Status:  new\n >  Priority:  major                                 |    Milestone:\n > Component:  mpich2                                |   Resolution:\n >  Keywords:                                        |\n >\n--------------------------------------------------+---------------------\n > --------------------------------------------------+----\n >\n >\n > Comment (by Jayesh Krishna):\n >\n >  {{{\n >\n >  Hi,\n >   We are still working on a solution to the problem.\n >\n >  (PS: We know what the problem is but are still looking for an elegant\n> soln. With mixed str len arg, FORTRAN code passes string lengths just  >\nafter a string, CHARACTER array, argument to a function. So MPICH2 lib,  >\nfmpich2s.lib, exports two versions of the MPI functions that accept a\nuser  > buffer. However the fortran compiler does not generate different\nsymbols  > for functions that differ in the number of the arguments. In\nyour code  > this results in all instances of MPI_SEND() being linked to\neither the  > interface function that accept CHARACTER arrays OR the\nfunction that  > accepts non-CHARACTER arrays - the interface function\nlinked to depends  on  > the type/number of arguments for MPI_SEND() that\nthe compiler first  \"see\"s  > in your code.)  >  >  Regards,  >  Jayesh  >\n >    _____\n >\n >  From: Wei Yao [mailto:Yao-W@email.ulster.ac.uk]  >  Sent: Monday,\nDecember 08, 2008 8:01 AM  >  To: Jayesh Krishna  >  Subject: Re:\n[mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >  >  >  >  Hi,\nJayesh,  >  >  Got any solution for the problem?\n >\n >  Cheers,\n >  Wei\n >\n >\n >\n >\n >  ----- Original Message -----\n >  From: Jayesh  <mailto:jayesh@mcs.anl.gov> Krishna  >  To: Wei Yao\n<mailto:Yao-W@email.ulster.ac.uk>  >  Cc: mpich2-maint@mcs.anl.gov  >\nSent: Monday, December 01, 2008 6:40 PM  >  Subject: RE: [mpich2-maint]\n#307: about /iface:mixed_str_len_arg  >  >  >  >  Hi,\n >   Please try the following,\n >\n >  # Delete all object files and executables created by your project.\n >  # Set the following settings in IVF for compiling your source,  >  >\n====  Set the \"Calling convention\" for \"External procedures\" in IVF to  >\nCVF  >  (\"/iface:cvf\")  >  ====  Leave the \"Name Case interpretation\" for\n\"External procedures\" to  > default (don't change anything here)  ====\nLeave the \"String length  > argument passing\" for \"External procedures\"\n >  in IVF to default (don't change anything here - the compiler should  >\nselect  \"After Individual string argument\" by default for CVF calling  >\nconvention)  ====  Leave the \"Append Underscore to External Names\"\n setting\n > for  \"External procedures\" to default (don't change anything here)\n====  > Compile your code and Link your code with \"fmpich2s.lib\"\n >\n >   If you are compiling from command line use the following example to\n > compile your code (in the example below source code is \"fpi.f\" & MPICH2\nis  > installed in \"c:\\progra~1\\mpich2\")  >  >  C:\\test> ifort fpi.f\n/Ic:\\progra~1\\mpich2\\include /iface:cvf /link  > /OUT:fpi.exe\n/LIBPATH:c:\\progra~1\\mpich2\\lib fmpich2s.lib  >\n >   Let us know if it works for you.\n >\n >  Regards,\n >  Jayesh\n >\n >\n >  -----Original Message-----\n >  Dear jayesh Krishna,\n >\n >\n >  I tried using fmpich2s.lib with /iface:mixed_str_len_arg  but it gives\n> errors like:\n >  unrecognized symbol _MPI_INIT\n >  unrecognized symbol _MPI_COMM_RANK\n >  unrecognized symbol  _MPI_COMM_SIZE\n >  unrecognized symbol  _MPI_GET_PROCE\n >  unrecognized symbol  _MPI_BARRIER\n >  unrecognized symbol  _MPI_ALLGATHER\n >  unrecognized symbol  _MPI_GATHER\n >  unrecognized symbol  _MPI_ALLREDUCE\n >  unrecognized symbol  _MPI_REDUCE\n >  unrecognized symbol  _MPI_FINALIZE\n >  unrecognized symbol  _MPI_SEND\n >  unrecognized symbol  _MPI_RECV\n >  unrecognized symbol  _MPI_ISEND\n >  unrecognized symbol  _MPI_WAITALL\n >  unrecognized symbol  _MPI_IRECV\n >\n >  Cheers,\n >  Wei\n >\n >\n >  -----Original Message-----\n >  From: mpich2-bugs-bounces@mcs.anl.gov  >\n[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  >  Sent:\nWednesday, November 26, 2008 5:42 PM  >  To: undisclosed-recipients:\n >  Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >\n --------------------------------------------------+---------------------\n >  --------------------------------------------------+----\n >   Reporter:  \"Wei Yao\" <Yao-W@email.ulster.ac.uk>  |        Owner:\n >       Type:  bug                                   |       Status:  new\n >   Priority:  major                                 |    Milestone:\n >  Component:  mpich2                                |   Resolution:\n >   Keywords:                                        |\n >\n --------------------------------------------------+---------------------\n >  --------------------------------------------------+----\n >\n >\n >  Comment (by Jayesh Krishna):\n >\n >   {{{\n >\n >    Hi,\n >     Did you try compiling your code with fmpich2s.lib ?\n >\n >   Regards,\n >   Jayesh\n >\n >   -----Original Message-----\n >   From: mpich2-bugs-bounces@mcs.anl.gov\n >   [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2\n >   Sent: Wednesday, November 26, 2008 10:28 AM\n >   To: undisclosed-recipients:\n >   Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg\n >\n >\n --------------------------------------------------+---------------------\n >   --------------------------------------------------+----\n >    Reporter:  \"Wei Yao\" <Yao-W@email.ulster.ac.uk>  |        Owner:\n >        Type:  bug                                   |       Status:\nnew\n >    Priority:  major                                 |    Milestone:\n >   Component:  mpich2                                |   Resolution:\n >    Keywords:                                        |\n >\n --------------------------------------------------+---------------------\n >   --------------------------------------------------+----\n >\n >\n >   Comment (by Jayesh Krishna):\n >\n >    {{{\n >\n >     Hi,\n >      Changing the options of the fortran compiler won't work. Let me\n take\n > a  look into this and get back to you (I will try to make your life\neasier  > :)  ).\n >\n >    Regards,\n >    Jayesh\n >\n >    -----Original Message-----\n >    From: mpich2-bugs-bounces@mcs.anl.gov\n >    [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2\n >    Sent: Tuesday, November 25, 2008 6:27 PM\n >    To: undisclosed-recipients:\n >    Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg\n >\n >\n >\n--------------------------------------------------+---------------------\n >    --------------------------------------------------+----\n >     Reporter:  \"Wei Yao\" <Yao-W@email.ulster.ac.uk>  |        Owner:\n >         Type:  bug                                   |       Status:\n new\n >     Priority:  major                                 |    Milestone:\n >    Component:  mpich2                                |   Resolution:\n >     Keywords:                                        |\n >\n >\n--------------------------------------------------+---------------------\n >    --------------------------------------------------+----\n >\n >\n >    Comment (by Wei Yao):\n >\n >     {{{\n >\n >     Dear Jayesh,\n >\n >     I am using MPI+IF on windows.\n >     I need to use libs from another software (CHEMKIN ) in my code.\n These\n > libs  are  compiled with /iface:CVF option and I can not recompiled\nthese  > libs.\n >     I changed the compiler option of Fortran projects to\n > /iface:mixed_str_len_arg  and recompilied it. But this  does not solved\n> the problem. I know few about the structure of MPI source  code;  maybe\nI  > need to do some changes in the MPICH2f project.\n >\n >\n >\n >     Cheers,\n >     Wei\n >\n >\n >\n >     ----- Original Message -----\n >     From: \"mpich2\" <mpich2-maint@mcs.anl.gov>\n >     Sent: Tuesday, November 25, 2008 8:21 PM\n >     Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg\n >\n >\n >     >\n >\n >\n >\n >\n >\n\n--------------------------------------------------+-----------------------\n >    --\n >     > Reporter:  \"Wei Yao\" <Yao-W@email.ulster.ac.uk>  |        Owner:\n >     >     Type:  bug                                   |       Status:\n > new\n >     > Priority:  major                                 |    Milestone:\n >     > Component:  mpich2                                |   Resolution:\n >     > Keywords:                                        |\n >     >\n >\n >\n >\n >\n >\n\n--------------------------------------------------+-----------------------\n >    --\n >     >\n >     >\n >     > Comment (by Jayesh Krishna):\n >     >\n >     > {{{\n >     >\n >     >  Hi,\n >     >   Are you using MPICH2+IF on windows ? Why do you want to use the\n >   mixed\n >     > string length args when compiling your fortran code ?\n >     >\n >     > Regards,\n >     > Jayesh\n >     >\n >     > -----Original Message-----\n >     > From: mpich2-bugs-bounces@mcs.anl.gov  >\n > [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:\n >    Tuesday, November 25, 2008 11:34 AM  > To: undisclosed-recipients:\n >     > Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >\n>\n >\n >\n--------------------------------------------------+---------------------\n >     > --------------------------------------------------+----\n >     >  Reporter:  \"Wei Yao\" <Yao-W@email.ulster.ac.uk>  |        Type:\n > bug\n >     >    Status:  new                                   |    Priority:\n >   major\n >     > Milestone:                                        |   Component:\n >    mpich2\n >     >\n >\n >\n--------------------------------------------------+---------------------\n >     > --------------------------------------------------+----\n >     >\n >     >\n >     >  {{{\n >     >\n >     >  Dear MPI developing group,\n >     >\n >     >  I am trying to run a FORTRAN code (Intel Fortran compilier). In\n my\n > code  I  > need  to use  the compilier option:\n \"/iface:mixed_str_len_arg\".\n >     >  Unfortrantely MPICH2 does not support this mixed_str_len_arg.\n >     >  I tried compiling the MPICH2 source code with mixed_str_len_arg\n > option,  > but it  still does not work.\n >     >  Do you know how to compile a MPI version that supports  >\n > /iface:mixed_str_len_arg  (based in Interl Fortran compilier).\n >     >\n >     >\n >     >\n >     >  Cheers,\n >     >  Wei Yao\n >     >\n >     >\n >     >  ```\n >     >\n >     >\n >     > --\n >     > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>\n >     > }}}\n >     >\n >     > --\n >     > Ticket URL:\n >     <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>\n >     >\n >     }}}\n >\n >    --\n >    Ticket URL:\n >   <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>\n >    }}}\n >\n >   --\n >   Ticket URL:\n >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>\n >   }}}\n >\n >  --\n >  Ticket URL:\n > <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>\n >\n >\n >  }}}\n >\n > --\n > Ticket URL:\n <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>\n > }}}\n >\n > --\n > Ticket URL:\n <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>\n >\n }}}\n\n--\nTicket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>\n\n\n}}}"}}
{"actor":{"display_login":"raffenet"}}