-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompile.sh
More file actions
executable file
·22 lines (17 loc) · 879 Bytes
/
compile.sh
File metadata and controls
executable file
·22 lines (17 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e
NCORES=$(nproc 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)
echo "Building FREIGHT with ${NCORES} parallel jobs..."
rm -rf build deploy
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel "${NCORES}"
mkdir -p deploy
cp build/freight_cut build/freight_con build/freight_graphs \
build/hmetis_to_freight build/hmetis_to_freight_stream deploy/
echo ""
echo "Done. Binaries are in ./deploy/"
echo " freight_cut - hypergraph partitioning (cut-net metric)"
echo " freight_con - hypergraph partitioning (connectivity metric)"
echo " freight_graphs - graph partitioning"
echo " hmetis_to_freight - convert hMETIS to FREIGHT net-list (in-memory)"
echo " hmetis_to_freight_stream - convert hMETIS to FREIGHT net-list (two-pass, low memory)"