OPERATIVE SYSTEMS
Report Bug
·
Request Feature
Parking simulation with MPI, development of operative systems, 2020 - 2021.
To get a local copy up and running follow these simple steps.
Technologies used to build the software and how to install them.
- Linux
- C compiler (usually included in any Linux/Ubuntu distribution)
- Git, install it directly from core
sudo apt-get update
sudo apt-get install git
- MPI (Message Passing Interface)
Executor parallel program(mpirun)
sudo apt-get install openmpi-bin
Debugger
sudo apt-get install xterm
-
Make yourself a folder where you would like to work
-
Clone the repo
git clone https://github.com/<github_username>/<repo_name>.git
Any new code should be pushed into a new branch. Please do not push any commits directly into the master or dev branches!
- Create your Feature Branch (
git checkout -b feature-feature_name
) - Commit your Changes (
git commit -m 'feature: <description of the feature>'
) - Push to the Branch (
git push origin feature-feature_name
) - Open a Pull Request
If you want to merge branches follow these steps:
First, from the branch you want to merge:
- Check updates (
git pull
) - Merge the main development branch you want FIRST into YOUR branch, in this case 'dev' (
git merge dev
) - If no conflicts pop up, change to the main development branch (
git checkout dev
)
Second and last from the main development branch do as follows:
- Check updates (
git pull
) - Merge the branch you finished working with (
git merge [branch_to_be_merged]
) - Push the new development branch to the repo (
git push
) - Delete your working branch from your local development enviroment (
git branch -d [branch to be deleted]
) - Delete your working branch from the repo (
git push -d origin [branch to be deleted]
)
The new way:
- Compile the files with the Makefile file running the following command
make
- Run the program using again the Makefile
make run
If you want to remove the compiled source, run the following command
make clean
The old way:
In order to run .c files first configure your hostfile.config file
- Create the file (if you don't have it)
touch hostfile.config
- Add the number of nodes you want to run the program with, for example
localhost slots=15
- Compile .c files into .o
mpicc [filename].c -o [filename].o
- Run the nodes, numbers in the following line are just an example and can be changed
mpirun --hostfile hostfile.config -np 1 orquestador 10 2 : -np 10 coche : -np 4 camion
- Alvaro Martinez Quiroga - alvaroo2302@gmail.com
- Patricia Tarazaga Cozas -
- Raul Heredia Horcajo -