[petsc-users] PetscInitialize take various time to run on different node

Smith, Barry F. bsmith at mcs.anl.gov
Mon Aug 19 16:37:42 CDT 2019



  You need to start up a case of two processes (or more) that "hang" and use a debugger to attach to it to see where it is in the code that would make it hang.

  Each debugger has its own syntax to attach to a running process, so you'll need to check, but it is straight forward.

   Barry


> On Aug 19, 2019, at 3:49 PM, Kun Jiao via petsc-users <petsc-users at mcs.anl.gov> wrote:
> 
> Hi,
>  
> I am running into a problem, different node/process take different time to run petscinitialize. The difference could be 5~10mins.
>  
> I put some check before petscinitialize, and after petscinitialize.
>  
>     MPI_Init(argc, args);
>  
>     int rank;
>     MPI_Comm_rank(MPI_COMM_WORLD, &rank );
>  
>     std::cout << "I am here :"<< rank << "!!!!" << std::endl;
>  
>     PetscErrorCode ierr = PetscInitialize(&argc, &args, (char*)0, help);
>  
>     std::cout << "You am here 2:"<< rank << "!!!!" << std::endl;
>  
>  
> “I am here” message was printout for every process, but not “You are here 2” message.
>  
> Very strange.
>  
> Any suggestion is appreciated.
> 
> Regards,
> Kun
>  
> 
> Schlumberger-Private



More information about the petsc-users mailing list