Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Parlab
/
burglar
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
04e660bd
authored
May 05, 2019
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
e1a26354
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
33 deletions
+44
-33
client/README.md
+44
-33
No files found.
client/README.md
View file @
04e660bd
# Dummy players for labs
# Dummy players for lab
Simple example program to demonstrate the usage.
## Files:
### Setting up the **MPI** environment on host para
-
login to para
-
`module load mpi`
player.h, player.cpp :
### Compile:
make
### Starting the clients from the *client* directory
./test.sh – simple version
./mpitest.sh – mpi version
### Starting the graphical server on the local machine:
-
download the server
-
server.bat - on
**WinX**
host
-
./server.sh on
**Unix/Linux**
platform
### Creating TCP tunnel
A tcp tunnel sholud be set up between the remote machine (para) and the local host.
Parameters:
-
The server listens on port number 15623.
-
The client uses the unique port number UID+15000, where UID is your user id on host para.
-
./test.sh displays the port number
#### Tunnel setup using putty
Session->SSH->Tunnels
Source port: your unique port number (UID+17000).
Destination: localhost:15623
X Remote
X Ipv4
Add
#### Tunnel setup using ssh
`ssh -R **PORT*:localhost:15623 USER@PARA`
-
where
**PORT**
is your unique port number
-
**USER**
is ypur login name on para
-
**PARA**
is the hostname of para cluster
### Files:
#### player.h, player.cpp:
-
Player's basic class. Implementing server communication.
-
Player's basic class. Implementing server communication.
main.cpp :
####
main.cpp :
-
Implements a simple burglar and cop players.
-
Implements a simple burglar and cop players.
They are moving randomly and create log messages in
\*
.log files.
test.sh :
####
test.sh :
-
Test script for the simple players version.
-
Test script for the simple players version.
mpimain.cpp :
####
mpimain.cpp :
-
Simple MPI communication example.
-
Simple MPI communication example.
The silly policeman is moving randomly and shouting to his radio if he sees the robber.
The silly policeman is moving randomly and shouting to his radio if he sees the robber.
The others can hear this, but they don't know where the robber is.
The others can hear this, but they don't know where the robber is.
mptest.sh :
####
mptest.sh :
-
Test script for the MPI version. Starts a burglar, and starts the MPI processes.
-
Test script for the MPI version. Starts a burglar, and starts the MPI processes.
## Compile:
module load mpi
make
## Starting the clients:
./test.sh – simple version
./mpitest.sh – mpi version
## Starting the graphical server on the local machine:
1.
Creating TCP tunnel between the remote machine (para) and the local host.
The server listens on port number 15623.
The client uses the unique port number UID+17000, where UID is your user id on host para.
Using putty:
Session->SSH->Tunnels
X Local ports accept connection from othrer hosts
Source port: your unique port number (UID+17000). (./test.sh will display the port number
Destination: localhost:15623
X Remote
X Ipv4
Add
Using ssh
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment