Image

Message Passing Interface (MPI)

Parallel Programming Methods (Algorithms, MPI) and Linux Clustering
User avatar
Shahram
Posts: 276
Joined: Sun Feb 05, 2017 8:31 am

Re: Message Passing Interface (MPI)

Postby Shahram » Thu Sep 07, 2017 7:03 pm

I had problem running MPI, even for old codes that I didn't have problem in past.

errors like "invalid file or directory name", "permission is denied", "execuv error" ,...

I tested different methods and finally two method worked. First I checked ownership of file. Ownership may change ( I had copied to micro sd). I used "chown" to manage ownership. You may solve this problem by using "su" or "sudo" to run as root.

Code: Select all

#chown shahram: test.c


you can check permissions and ownership using "ls -l".

And I installed new package:

Code: Select all

apt-get install openmpi-bin


And now they are running.



User avatar
Shahram
Posts: 276
Joined: Sun Feb 05, 2017 8:31 am

Re: Message Passing Interface (MPI)

Postby Shahram » Thu Sep 07, 2017 9:14 pm




User avatar
Shahram
Posts: 276
Joined: Sun Feb 05, 2017 8:31 am

Re: Message Passing Interface (MPI)

Postby Shahram » Mon Sep 11, 2017 10:59 pm

I found very strange incompatibility between MPI and "strcat" command in string.h. So I used another method to solve joining two strings together.

Code: Select all

char address2[100]={0};
sprintf(address2,"%s%s",address,devchar);




Return to “Parallel Programming and Clusters”

Who is online

Users browsing this forum: No registered users and 1 guest