473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

how to use 2 computers in a network for processing...?

37
Hello

I am trying to write an application that uses 2 computers in a network to perform image processing. I found on the internet the MPI.NET for communicating between processes on different computers, but this requires for me to have a compute cluster and to install the Microsoft Windows Compute Cluster Server , so I would like to use a different approach if possible...

Please tell me if there is any way of achieving the parallel execution of an application on different computers on a network..

Thank you
May 21 '08 #1

✓ answered by Rob S

Hi,
I had the exact same question a few months ago. I have 3 XP machines that are on my home network and I really wanted them to all work together as a standard cluster would.
There is no real built in "cluster" support for XP. The only way to do it is hack around the problem.
Here is how i approached it.

1 Im not a networking wiz but you need to make sure that you have the same Login/Password Admin account setup on all your boxes.

2 I believe clusters have a built in executable called clusrun which allows you to run a program on every node at the same time. I found this set of programs called PSTools made by sysinternals. Very very handy but not allowed for commerciaol use.

3 The next step is to install the Microsoft HPC SDK and the Compute Cluster SDK on EVERY machine in your cluster.

4 As a programmer you now have to decide which flavor of MPI you would like to work with and then install that SDK on EVERY machine as well. I chose MPI.NET created by some guys at indiana.edu. There are several others based on what language you are proficient in.

5 Once you have all this setup write a simple hello world program

6 This is where it gets exciting. To run this program on one node and make it appear as though you are using several nodes you would use a command similar to:

mpiexec -n 4 myprogram.exe

where the number 4 is the number of "processes" on your local machine.
Now, if you want to do the same thing on all the machines you just setup then you have to make sure a program called smpd.exe is running on each of those machine. This program comes with the HPC SDK and should be available on the command line by simply typing "smpd -d". Once smpd is running on every mahcine you can use a command like this:

mpiexec -hosts 3 node1 3 node2 3 node3 3 myprogram.exe

This is how the command usually looks but it may vary. This command essentially tells MPI to that you have 3 processing hosts or nodes and that each node will have use 3 processes. Kinda like assigning a job to 3 managers that each have 3 workers under their supervision.

Thats it. It can get a little sticky when it comes to permissions and security setting on each box but once you get the hang of it it is truly awesome.
Hit me back if you have any questions and sorry if this reply is too lengthy.
Take it easy.
Rob S

NOTE: On XP you will need to do 2 additional things to make sure MPI works.
1 There is a hotfix available for smpd.exe which you need to google and install
2 In the Local security editor on XP you need to make sure that one setting is changed in the Local security policy.
Go to: Start-> Control Panel-> Administrative Tools-> Local Security Policy-> Local Policies-> Security Options->Network Access:Sharing and securitymodel for local account.
Change that setting to "Classic"

3 1734
Rob S
14
Hi,
I had the exact same question a few months ago. I have 3 XP machines that are on my home network and I really wanted them to all work together as a standard cluster would.
There is no real built in "cluster" support for XP. The only way to do it is hack around the problem.
Here is how i approached it.

1 Im not a networking wiz but you need to make sure that you have the same Login/Password Admin account setup on all your boxes.

2 I believe clusters have a built in executable called clusrun which allows you to run a program on every node at the same time. I found this set of programs called PSTools made by sysinternals. Very very handy but not allowed for commerciaol use.

3 The next step is to install the Microsoft HPC SDK and the Compute Cluster SDK on EVERY machine in your cluster.

4 As a programmer you now have to decide which flavor of MPI you would like to work with and then install that SDK on EVERY machine as well. I chose MPI.NET created by some guys at indiana.edu. There are several others based on what language you are proficient in.

5 Once you have all this setup write a simple hello world program

6 This is where it gets exciting. To run this program on one node and make it appear as though you are using several nodes you would use a command similar to:

mpiexec -n 4 myprogram.exe

where the number 4 is the number of "processes" on your local machine.
Now, if you want to do the same thing on all the machines you just setup then you have to make sure a program called smpd.exe is running on each of those machine. This program comes with the HPC SDK and should be available on the command line by simply typing "smpd -d". Once smpd is running on every mahcine you can use a command like this:

mpiexec -hosts 3 node1 3 node2 3 node3 3 myprogram.exe

This is how the command usually looks but it may vary. This command essentially tells MPI to that you have 3 processing hosts or nodes and that each node will have use 3 processes. Kinda like assigning a job to 3 managers that each have 3 workers under their supervision.

Thats it. It can get a little sticky when it comes to permissions and security setting on each box but once you get the hang of it it is truly awesome.
Hit me back if you have any questions and sorry if this reply is too lengthy.
Take it easy.
Rob S

NOTE: On XP you will need to do 2 additional things to make sure MPI works.
1 There is a hotfix available for smpd.exe which you need to google and install
2 In the Local security editor on XP you need to make sure that one setting is changed in the Local security policy.
Go to: Start-> Control Panel-> Administrative Tools-> Local Security Policy-> Local Policies-> Security Options->Network Access:Sharing and securitymodel for local account.
Change that setting to "Classic"
Attached Images
File Type: jpg setting.jpg (22.6 KB, 154 views)
Jan 6 '11 #2
Dreea
37
Thank you Rob for your answer... it's been a while since I posted this :)
Jan 6 '11 #3
Rob S
14
yeah i noticed that after i had finished typing the whole thing out. haha.
Take it easy.
Rob
Jan 6 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network...
3
by: Steve | last post by:
Hi all How would i get a list of all Active Computers on a network? All I need are the computer names. Kind Regards, Steve.
5
by: ngr | last post by:
I am wanting to develop an application whereas two computers chat back and forth. The scenario is that I have a process running on both computers, which pass information to each other as they go...
4
by: JB | last post by:
I am trying to get a list of all the active computers running on my domain. I'm writing some remote management style software with WMI, which works fine when i know the computer name, but i just...
1
by: CollJ | last post by:
Hi, I just got a new computer the other day with Windows Vista. I've been trying to connect it to a network of 2 Window's XP computers without much luck. the Vista computer can access the...
2
by: =?Utf-8?B?RmVybmlr?= | last post by:
Hi, I need to get a list of the computers in my WorkGroup LAN, with its names in a similar way you get the available Drives from a PC with DriveInfo.GetDrives(). Is there a managed class that...
17
by: John Salerno | last post by:
Let me see if this question even makes sense...I'm reading Core Python Programming and I jumped ahead to the more specific topics like network programming. I plan to follow along with the example...
6
by: belias | last post by:
So...here we go. I'm having an issue with one computer on a network not being able to ping other computers by name. I've spent the last day searching similar issues and I've tried all the steps...
24
by: Asja | last post by:
I have written an application that runs in a kind of peer-to-peer framework. Servers connect to a masterserver, which a client then queries to receive a list of servers. The client selects a server...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.