Skip to content

Commit

Permalink
Merge pull request #12547 from hadim/gklib
Browse files Browse the repository at this point in the history
add gklib
  • Loading branch information
chrisburr committed Jan 7, 2021
2 parents 6028144 + 38bf7b6 commit aa8c463
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
20 changes: 20 additions & 0 deletions recipes/gklib/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
setlocal EnableDelayedExpansion

mkdir build
cd build

cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_BUILD_TYPE=Release ^
-DDEBUG=OFF ^
-DOPENMP=set ^
-DBUILD_SHARED_LIBS=OFF ^
..
if errorlevel 1 exit 1

cmake --build . --config Release
if errorlevel 1 exit 1

cmake --install .
if errorlevel 1 exit 1
13 changes: 13 additions & 0 deletions recipes/gklib/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
mkdir -p build

pushd build

cmake -DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DDEBUG=OFF \
-DOPENMP=set \
-DBUILD_SHARED_LIBS=ON \
..

cmake --build . --config Release
cmake --install .
87 changes: 87 additions & 0 deletions recipes/gklib/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{% set name = "gklib" %}
{% set version = "5.1.1" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/KarypisLab/GKlib/archive/METIS-v{{ version }}-DistDGL-0.5.tar.gz
sha256: 52aa0d383d42360f4faa0ae9537ba2ca348eeab4db5f2dfd6343192d0ff4b833

build:
number: 0
run_exports:
- {{ pin_subpackage('gklib', max_pin='x.x') }}

requirements:
build:
- {{ compiler('c') }}
- cmake >=3.15
- llvm-openmp # [osx]
- libgomp # [linux]

test:
commands:

- cmpnbrs --help
- csrcnv --help
- fis --help
- gkgraph --help
- gkrw --help
- m2mnbrs --help
- test -f ${PREFIX}/include/gk_arch.h # [unix]
- test -f ${PREFIX}/include/gk_defs.h # [unix]
- test -f ${PREFIX}/include/gk_externs.h # [unix]
- test -f ${PREFIX}/include/gk_getopt.h # [unix]
- test -f ${PREFIX}/include/GKlib.h # [unix]
- test -f ${PREFIX}/include/gk_macros.h # [unix]
- test -f ${PREFIX}/include/gk_mkblas.h # [unix]
- test -f ${PREFIX}/include/gk_mkmemory.h # [unix]
- test -f ${PREFIX}/include/gk_mkpqueue2.h # [unix]
- test -f ${PREFIX}/include/gk_mkpqueue.h # [unix]
- test -f ${PREFIX}/include/gk_mkrandom.h # [unix]
- test -f ${PREFIX}/include/gk_mksort.h # [unix]
- test -f ${PREFIX}/include/gk_mkutils.h # [unix]
- test -f ${PREFIX}/include/gk_proto.h # [unix]
- test -f ${PREFIX}/include/gkregex.h # [unix]
- test -f ${PREFIX}/include/gk_struct.h # [unix]
- test -f ${PREFIX}/include/gk_types.h # [unix]
- test -f ${PREFIX}/include/ms_inttypes.h # [unix]
- test -f ${PREFIX}/include/ms_stat.h # [unix]
- test -f ${PREFIX}/include/ms_stdint.h # [unix]
- test -f ${PREFIX}/lib/libGKlib${SHLIB_EXT} # [unix]

- if not exist "%LIBRARY_INC%\\gk_arch.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_defs.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_externs.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_getopt.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\GKlib.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_macros.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_mkblas.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_mkmemory.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_mkpqueue2.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_mkpqueue.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_mkrandom.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_mksort.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_mkutils.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_proto.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gkregex.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_struct.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\gk_types.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\ms_inttypes.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\ms_stat.h" exit 1 # [win]
- if not exist "%LIBRARY_INC%\\ms_stdint.h" exit 1 # [win]
- if not exist "%LIBRARY_LIB%\\GKlib.lib" exit 1 # [win]

about:
home: https://github.com/KarypisLab/GKlib/
license: Apache-2.0
license_family: APACHE
license_file: LICENSE.txt
summary: A library of various helper routines and frameworks used by many of the lab's software

extra:
recipe-maintainers:
- hadim
- SimonBoothroyd

0 comments on commit aa8c463

Please sign in to comment.