LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 08-29-2012, 08:41 AM   #1
Pizzicato
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:

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

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

    MPI_Init(&argc,&argv);

    MPI_File_open(MPI_COMM_WORLD, "datafile",
          MPI_MODE_CREATE | MPI_MODE_RDWR,
                  MPI_INFO_NULL, &fh);

    MPI_File_close(&fh);

    MPI_Finalize();
    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:
Code:
#! /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

cd $PBS_O_WORKDIR

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!

Thanks
 
  


Reply


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 01:37 PM
Mpi chandan_shetty Linux - Networking 1 05-10-2008 06:16 AM
mpi++.h file missing in RH 9? drapaca Red Hat 1 10-13-2003 10:27 PM


All times are GMT -5. The time now is 09:20 PM.

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