LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-08-2007, 12:38 PM   #1
ArthurHuang
Member
 
Registered: Jan 2006
Posts: 174

Rep: Reputation: 30
Help! Don't now what's wrong...MPI


I just write a simple MPI programs:

#include "stdio.h"
#include "stdlib.h"
#include "mpi.h"

int main(int argc, char *argv[])
{
int rank,nProcs,ierr;

MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &nProcs);

if (rank == 1)
printf("Hello world");

MPI_Finalize();

return 1;
}

No wrong in compile, however, it runs wrong:


problem with execution of a.out on dhcp184: [Errno 2] No such file or directory
problem with execution of a.out on dhcp184: [Errno 2] No such file or directory

What's the problem????
 
Old 01-10-2007, 04:43 PM   #2
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
run a debugger,

compile with:
Code:
$gcc -g name_of_mpi_file.c
$gdb a.out
gdb>run
so what line is causing it. never used any MPI stuff so i can't really help you out. But good luck

thanks,

djgerbavor3
 
  


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 chui_yap Programming 1 03-07-2006 08:22 AM
what do I need to know to use MPI kgustaf Linux - Networking 0 07-25-2005 05:13 PM
MPI community kevingpo Programming 2 07-25-2005 04:39 PM
ssh with mpi alaios Linux - Networking 2 03-21-2004 09:15 AM
Lam/mpi Rex_chaos Linux - General 0 08-29-2001 12:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:43 AM.

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
Open Source Consulting | Domain Registration