LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Yu Chen (chen_at_[hidden])
Date: 2005-06-16 14:31:01


Hi, Jeff

I tried 7.1.1-3 SRPM, but seems stdin redirection is still broken.
I used your program to test it:
===================================
#include <stdio.h>
#include <mpi.h>

int main(int argc, char* argv[])
{
     int rank;
     char str[BUFSIZ];

     MPI_Init(NULL, NULL);
     MPI_Comm_rank(MPI_COMM_WORLD, &rank);
     if (0 == rank) {
         while (fgets(str, BUFSIZ, stdin)) {
             printf("MCW rank 0 got string: %s", str);
         }
         printf("EOF detected -- goodbye!\n");
     }
     MPI_Barrier(MPI_COMM_WORLD);
     MPI_Finalize();
     return 0;
}
====================================
which is not working.
shell#mpirun -np 1 ./string << EOF
>for
>bar
>test
>EOF (return)
     nothing happen, sitting
     (return)
  MCW rank 0 got string:
     (return)
  MCW rank 0 got string:
     ...
     ...

Is there anywhere I can fix the totalview lib-not-built thing in 7.0.6
with Intel compilers? If I rebuidl 7.0.6 SRPM using GNU compilers, it's
all fine.

Thanks for any inputs.

Chen

===========================================
Yu Chen
Howard Hughes Medical Institute
Chemistry Building, Rm 182
University of Maryland at Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250

phone: (410)455-6347 (primary)
         (410)455-2718 (secondary)
fax: (410)455-1174
email: chen_at_[hidden]
===========================================