Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

arokasprz100/Dijkstra-UPC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dijkstra's algorithm using UPC

This repository contains Dijkstra's Shortest Path algorithm implemented using UPC (Unified Parallel C).

Contributors

Repository content

  • src - contains UPC implementation of Dijkstra's algorithm
  • data - contains sample input file
  • example_results - contains files with example results generated using UPC implementation of Dijkstra's algorithm
  • report and seminars - contain documentation and presentation (in polish, since it was a part of university project)
  • build_uni - contains setup used for building this project on university infrastructure

Usage

To build this software using AGH UST infrastructure (Faculty of Physics and Applied Computer Science), use prepared Makefile and setup.sh files located in build_uni directory:

cd build_uni
source setup.sh
make 

To run the program, use prepared Makefile. Possible options:

make run                                        runs UPS algorithm with default parameters: 
                                                    VERTEX=0 FILE="../data/graph.dat" PROC_COUNT=1 HOSTS="nodes"
make run VERTEX=V FILE=F PROC_COUNT=P HOSTS=H   runs UPC algorithm with specified parameters 
                                                    (all of them are optional)
make docs                                       creates Doxygen documentation
make install                                    move executables to build directory
make clean                                      remove all created files and directories

Languages

  • C 50.5%
  • C++ 39.4%
  • Makefile 8.3%
  • Shell 1.8%