Run a single programm using multiple PCs(mpi linux)
2 posters
IITDU Forum :: Academics (BIT) :: Semester 5 :: CSE 501
Page 1 of 1
Run a single programm using multiple PCs(mpi linux)
Course code: CSE 501
Course name: Parallel Computing
Today sir told us to run a code of matrix multiplication using parallel computing mechanism. I am going to tell the way shortly here.
1. Make a cluster of some(as much as you want) PCs.
2. Write a code for matrix multiplication and compile it using the direction below:
first go to the directory where the file is saved. Then write the command: mpicc -o executable_file c_file.
For example, my C file is in desktop, the name of the file is matrix_multiplication.c and I will give the name of executable file mm. So, the command to will be:
5. Make sure that the executable file is permitted to be executed.
Note: As I am at home, I am confused about some concepts. I will give some clear concepts tomorrow after some experiments.
Course name: Parallel Computing
Today sir told us to run a code of matrix multiplication using parallel computing mechanism. I am going to tell the way shortly here.
1. Make a cluster of some(as much as you want) PCs.
2. Write a code for matrix multiplication and compile it using the direction below:
first go to the directory where the file is saved. Then write the command: mpicc -o executable_file c_file.
For example, my C file is in desktop, the name of the file is matrix_multiplication.c and I will give the name of executable file mm. So, the command to will be:
- Code:
cd Desktop/
mpicc -o mm matrix_multiplication.c
- Code:
/home/mpiuser/mpich1/examples/
5. Make sure that the executable file is permitted to be executed.
- Code:
Right mouse click>Properties>Permission>Mark "Allow executing file as program"(if unmarked)
- Code:
cd /home/mpiuser/mpich1/examples/
mpirun -np 4 mm
Note: As I am at home, I am confused about some concepts. I will give some clear concepts tomorrow after some experiments.
BIT0107-Toma- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 280
Points : 453
Re: Run a single programm using multiple PCs(mpi linux)
Good work.
Although I am a bit confused about the process itself with accordance to our teacher's instructions.
Anyway,
BTW, it is MPICH, which implements MPI. If you just mention MPI, it might mean some other sorts of implementations as well.
Although I am a bit confused about the process itself with accordance to our teacher's instructions.
Anyway,
BTW, it is MPICH, which implements MPI. If you just mention MPI, it might mean some other sorts of implementations as well.
Similar topics
» Multiple Terminal in One Window
» How to set multiple images on a button?
» Multiple IM Chatting softwares for mobiles
» Projects in IITDU forum: Multiple Sections or One?
» Juicy multiple choice questions quiz in java.
» How to set multiple images on a button?
» Multiple IM Chatting softwares for mobiles
» Projects in IITDU forum: Multiple Sections or One?
» Juicy multiple choice questions quiz in java.
IITDU Forum :: Academics (BIT) :: Semester 5 :: CSE 501
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford