fix(metis)

closes #4355

and add gklib, i guess. turns out it's unneeded, but why pass it up?
This commit is contained in:
Jacob Heider 2023-12-08 11:46:29 -05:00 committed by Jacob Heider
parent 32b903698c
commit 6433e90f69
2 changed files with 41 additions and 3 deletions

View file

@ -0,0 +1,32 @@
distributable:
url: https://github.com/KarypisLab/GKlib/archive/refs/tags/METIS-v{{version}}-DistDGL-0.5.tar.gz
strip-components: 1
versions:
github: KarypisLab/GKlib/tags
strip:
- /^METIS-/
- /-DistDGL-0\.5$/
build:
dependencies:
gnu.org/make: '*'
cmake.org: '*'
script:
- make config $ARGS
- make -j {{hw.concurrency}}
- make install
env:
ARGS:
- prefix="{{prefix}}"
provides:
- bin/cmpnbrs
- bin/csrcnv
- bin/fis
- bin/gkgraph
- bin/gkrw
- bin/m2mnbrs
# help? i have no idea what to do with these.
test: cmpnbrs -help

View file

@ -9,12 +9,16 @@ build:
dependencies:
gnu.org/make: '*'
cmake.org: '*'
git-scm.org: '*'
script:
- cmake -B build $ARGS
- cmake --build build --parallel
- cmake --install build
- mkdir -p {{prefix}}/pkgshare/graphs
- mv ./src/graphs/* {{prefix}}/pkgshare/graphs/
# removed in 5.2
- run: |
mkdir -p {{prefix}}/pkgshare/graphs
mv ./src/graphs/* {{prefix}}/pkgshare/graphs/
if: <5.2
env:
ARGS:
- -DCMAKE_INSTALL_PREFIX={{prefix}}
@ -32,8 +36,10 @@ provides:
- bin/mpmetis
- bin/ndmetis
test:
dependencies:
curl.se: '*'
script:
- cp {{prefix}}/pkgshare/graphs/4elt.graph ./
- curl -LO 'https://raw.githubusercontent.com/KarypisLab/METIS/v5.1.1-DistDGL-v0.5/graphs/4elt.graph'
- graphchk 4elt.graph
- gpmetis 4elt.graph 2
- ndmetis 4elt.graph