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: dependencies:
gnu.org/make: '*' gnu.org/make: '*'
cmake.org: '*' cmake.org: '*'
git-scm.org: '*'
script: script:
- cmake -B build $ARGS - cmake -B build $ARGS
- cmake --build build --parallel - cmake --build build --parallel
- cmake --install build - cmake --install build
- mkdir -p {{prefix}}/pkgshare/graphs # removed in 5.2
- mv ./src/graphs/* {{prefix}}/pkgshare/graphs/ - run: |
mkdir -p {{prefix}}/pkgshare/graphs
mv ./src/graphs/* {{prefix}}/pkgshare/graphs/
if: <5.2
env: env:
ARGS: ARGS:
- -DCMAKE_INSTALL_PREFIX={{prefix}} - -DCMAKE_INSTALL_PREFIX={{prefix}}
@ -32,8 +36,10 @@ provides:
- bin/mpmetis - bin/mpmetis
- bin/ndmetis - bin/ndmetis
test: test:
dependencies:
curl.se: '*'
script: 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 - graphchk 4elt.graph
- gpmetis 4elt.graph 2 - gpmetis 4elt.graph 2
- ndmetis 4elt.graph - ndmetis 4elt.graph