18.337 WebMeeting


Message from: Jeffrey Chuang (jchuang@MIT.EDU)
About: Calling MPI in a subroutine

Wed, 9 Apr 97 11:13:30 EDT

  • Next message: Edward Keyes: "Matrix mode location"
    Does anyone know how to call MPI in a subroutine? I'm
    having trouble using MPI for the matrix multiplication contest
    because of the parameters we are asked to pass to our
    matrix multiplication routine.

    In all the MPI programs we have seen, we have argc and argv
    passed as the parameters to the "main" function. Since
    those aren't in the parameter list we send to our matrix
    multiplication routine, what arguments do we give to
    MPI_Init?

    I've tried declaring internal variables
    int argc;
    char *argv[];
    and using those in the call MPI_Init(&argv, &argv) but that
    doesn't seem to work.

    Thanks in advance,

    Jeff Chuang
    ----
    NOTE: This message was sent using a WWW form. The address jchuang@mit.edu
    was typed manually, and may easily be incorrect.



    You may post a follow-up message or a new message. To send a reply directly to the author, you may click on the email address above.

    If you would like to submit a message using your own mail program, send it to: 18.337-wm@webmeet.mit.edu

    If you are following up this article, please include the following line at the beginning of your message:
    In-Reply-To: 9704091513.AA06971@arachnophobia.MIT.EDU