Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-29-2012, 07:41 AM   #1
LQ Newbie
Registered: Aug 2012
Distribution: Scientific Linux 6 (RHEL6)
Posts: 9

Rep: Reputation: Disabled
MPI programs freeze when accessing MPI shared file on Scientific Linux 6

Hi everybody!
I've been having this problem for a while now and I haven't been able to solve it:
Whenever I access a MPI shared file my program freezes and it doesn't give any output or errors. I made this very very simple program in C to test it:

#include "mpi.h"
#include <stdio.h>

int main(int argc, char **argv)
    MPI_File fh;


    MPI_File_open(MPI_COMM_WORLD, "datafile",
                  MPI_INFO_NULL, &fh);


    return 0;

As I said it freezes and I have to kill it myself with qdel command. It actually creates the file "datafile", and there's no output in the error or output files besides the ones related to being manually killed.

I send this program to torque with this PBS script:
#! /bin/bash
#PBS -S /bin/bash
#PBS -A batch
#PBS -N test_mpi_file
#PBS -l nodes=2:ppn=2
#PBS -l walltime=00:02:50
#PBS -j oe


mpiexec.hydra -rmk pbs /home/pablo/Programs/mbg/c/test_mpi_file
I have the next SW configuration:
- mpich2 1.2.1 using Hydra
- Torque 2.5.7
- Maui 3.2.6

Maybe it has something to do with the NFS home directory that is shared with all the nodes, because I can execute the program with no problem when I do it in just one machine, being the head node or any other. It only fails when two or more machines are accessing the file.

Any help would be very appreciated!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MPI vs LAM/MPI vs OpenMPI vs MPICH2 manojg Linux - General 0 11-28-2010 12:37 PM
Mpi chandan_shetty Linux - Networking 1 05-10-2008 05:16 AM
mpi++.h file missing in RH 9? drapaca Red Hat 1 10-13-2003 09:27 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration