Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • scherzej/psco-2019-gp
  • heinrifx/psco-2019-gp
2 results
Show changes
Commits on Source (122)
Showing
with 181 additions and 221979 deletions
meson: buildsystem zum Kompilieren wird meson und ein C++-Kompiler benötigt
Unit tests mit meson integrieren - google test, catch - Repository klonen
- in das Projektverzeichnis wechseln
Continuous integration, gitlab - mit $ meson ${builddir} das Build-Verzeichnis erzeugen (mit Option
--buildtype=release wird compilerseitige Optimierung durchgeführt)
Graph datenstruktur - ins Build-Verzeichnis wechseln
- kompilieren mit $ ninja
Input lesen - Befehl $ ninja test zum ausführen der Testsuite
B&B anpassen: Um Partitionierung auf einem gegebenem Graphen aus dem Projektverzeichnis heraus zu berechnen:
- repr. Der entscheidungen - $ ${builddir}/gp-bnb ${pfad-zum-graphen}
- bounds - fürs Auswählen eines Flow-Algorithmus wird zusätzlich die Option -l mit ek (für Edmonds-Karp), pr (für Push-Relabel), ibfs (für Incremental-BFS), gp (für Greedy-Packing) oder fa(für Forced Assignements zusätzlich zu Greedy-Packing) benötigt
\ No newline at end of file
benchmarking
\ No newline at end of file
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
BIN=../build/gp-bnb BIN=../build/gp-bnb
OPT="" OPT=""
TIMEOUT=1800
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Aufruf: sh execute.sh [PATH-TO-BINARY]" echo "Aufruf: sh execute.sh [PATH-TO-BINARY]"
...@@ -17,7 +18,7 @@ for i in $(ls sample); do ...@@ -17,7 +18,7 @@ for i in $(ls sample); do
echo "##################################################################################" echo "##################################################################################"
echo "Start partitioning of graph ${NAME} (#nodes:${A[0]};#edges:${A[1]})" echo "Start partitioning of graph ${NAME} (#nodes:${A[0]};#edges:${A[1]})"
echo "##################################################################################" echo "##################################################################################"
${BIN} ${OPT} ${FILE} timeout ${TIMEOUT} ${BIN} ${OPT} ${FILE}
echo "" echo ""
done done
exit 0 exit 0
......
#!/bin/bash
BIN=../build/gp-bnb
OPT="-l ek"
TIMEOUT=1800
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Aufruf: sh execute.sh [PATH-TO-BINARY]"
exit 0
elif [ -n "$1" ]; then
BIN=$1
fi
for i in $(ls sample); do
FILE=sample/${i}
NAME="$(echo "${i}" | sed 's/^.*_//' | sed 's/.graph//')"
IFS=' ' read -r -a A <<< "$(head -n 1 ${FILE})"
echo "##################################################################################"
echo "Start partitioning of graph ${NAME} (#nodes:${A[0]};#edges:${A[1]})"
echo "##################################################################################"
timeout ${TIMEOUT} ${BIN} ${FILE} ${OPT}
echo ""
done
exit 0
#!/bin/bash
BIN=../build/gp-bnb
OPT="-l fa"
TIMEOUT=1800
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Aufruf: sh execute.sh [PATH-TO-BINARY]"
exit 0
elif [ -n "$1" ]; then
BIN=$1
fi
for i in $(ls sample); do
FILE=sample/${i}
NAME="$(echo "${i}" | sed 's/^.*_//' | sed 's/.graph//')"
IFS=' ' read -r -a A <<< "$(head -n 1 ${FILE})"
echo "##################################################################################"
echo "Start partitioning of graph ${NAME} (#nodes:${A[0]};#edges:${A[1]})"
echo "##################################################################################"
timeout ${TIMEOUT} ${BIN} ${FILE} ${OPT}
echo ""
done
exit 0
#!/bin/bash
BIN=../build/gp-bnb
OPT="-l gp"
TIMEOUT=1800
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Aufruf: sh execute.sh [PATH-TO-BINARY]"
exit 0
elif [ -n "$1" ]; then
BIN=$1
fi
for i in $(ls sample); do
FILE=sample/${i}
NAME="$(echo "${i}" | sed 's/^.*_//' | sed 's/.graph//')"
IFS=' ' read -r -a A <<< "$(head -n 1 ${FILE})"
echo "##################################################################################"
echo "Start partitioning of graph ${NAME} (#nodes:${A[0]};#edges:${A[1]})"
echo "##################################################################################"
timeout ${TIMEOUT} ${BIN} ${FILE} ${OPT}
echo ""
done
exit 0
#!/bin/bash
BIN=../build/gp-bnb
OPT="-l ibfs"
TIMEOUT=1800
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Aufruf: sh execute.sh [PATH-TO-BINARY]"
exit 0
elif [ -n "$1" ]; then
BIN=$1
fi
for i in $(ls sample); do
FILE=sample/${i}
NAME="$(echo "${i}" | sed 's/^.*_//' | sed 's/.graph//')"
IFS=' ' read -r -a A <<< "$(head -n 1 ${FILE})"
echo "##################################################################################"
echo "Start partitioning of graph ${NAME} (#nodes:${A[0]};#edges:${A[1]})"
echo "##################################################################################"
timeout ${TIMEOUT} ${BIN} ${FILE} ${OPT}
echo ""
done
exit 0
#!/bin/bash
BIN=../build/gp-bnb
OPT="-l pr"
TIMEOUT=1800
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Aufruf: sh execute.sh [PATH-TO-BINARY]"
exit 0
elif [ -n "$1" ]; then
BIN=$1
fi
for i in $(ls sample); do
FILE=sample/${i}
NAME="$(echo "${i}" | sed 's/^.*_//' | sed 's/.graph//')"
IFS=' ' read -r -a A <<< "$(head -n 1 ${FILE})"
echo "##################################################################################"
echo "Start partitioning of graph ${NAME} (#nodes:${A[0]};#edges:${A[1]})"
echo "##################################################################################"
timeout ${TIMEOUT} ${BIN} ${FILE} ${OPT}
echo ""
done
exit 0
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
40 105
20 30 28 38 24
11 13 33 5 20
17 29 39
19 40 37 22
2 13 10 11
37 22 14 26 18
24 18 15 12 21 25 36
21 14 9 12
35 15 8 12
13 5 31 11
33 10 40 2 5 27
21 9 8 7 15
10 5 2 28 20 31
25 21 37 26 6 8
32 16 7 12 34 9 24 35
17 32 35 15 34
29 16 32 39 3 35
24 22 26 6 36 7 38
4 30 40 22 27
28 33 1 30 13 2
8 7 12 25 14
38 18 19 30 6 4 37
32 31 28 29 24
32 15 1 23 28 38 18 7
7 26 36 21 14
25 14 36 6 18
11 33 30 40 19
13 24 23 1 31 20
31 32 17 23 3
27 38 33 22 1 20 19
10 29 13 28 23
29 16 15 24 17 23
11 30 20 27 2
16 15 35
15 34 9 16 39 17
18 26 25 7
40 4 14 6 22
1 30 24 18 22
35 17 3
11 4 19 37 27