File: graph-parallel

package info (click to toggle)
boost1.90 1.90.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 593,120 kB
  • sloc: cpp: 4,190,908; xml: 196,648; python: 34,618; ansic: 23,145; asm: 5,468; sh: 3,774; makefile: 1,161; perl: 1,020; sql: 728; ruby: 676; yacc: 478; java: 77; lisp: 24; csh: 6
file content (31 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# (C) 2018 Anton Gladky

set -e

export OMPI_MCA_plm_rsh_agent=/bin/false

WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
mkdir -p $WORKDIR/src
mkdir -p $WORKDIR/build

cp debian/tests/srcs/graph-parallel/* $WORKDIR/src/

cd $WORKDIR/build
cmake -DCMAKE_POLICY_DEFAULT_CMP0167=NEW ./../src
make

echo "build: OK"

[ -x demo1 ]
mpirun --oversubscribe --allow-run-as-root -np 8 ./demo1 ; ls -l
cat weighted_graph-bfs.dot | /usr/bin/graph-easy

echo "run: demo1 OK"

[ -x demo2 ]
mpirun --oversubscribe --allow-run-as-root -np 8 ./demo2 ; ls -l
cat weighted_graph-dijkstra.dot | /usr/bin/graph-easy

echo "run: demo2 OK"