-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1427 from basnijholt/master
Added recipe for scotch
- Loading branch information
Showing
4 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
EXE = | ||
LIB = .a | ||
OBJ = .o | ||
|
||
MAKE = make | ||
AR = ar | ||
ARFLAGS = -ruv | ||
CAT = cat | ||
CCS = clang | ||
CCP = mpicc | ||
CCD = clang | ||
CFLAGS = -I${PREFIX}/include -O3 -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_PTHREAD_BARRIER -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_PTHREAD -DSCOTCH_RENAME | ||
CLIBFLAGS = | ||
LDFLAGS = -L${PREFIX}/lib -lz -lm -lpthread | ||
CP = cp | ||
LEX = flex -Pscotchyy -olex.yy.c | ||
LN = ln | ||
MKDIR = mkdir | ||
MV = mv | ||
RANLIB = ranlib | ||
YACC = bison -pscotchyy -y -b y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
EXE = | ||
LIB = .a | ||
OBJ = .o | ||
|
||
MAKE = make | ||
AR = ar | ||
ARFLAGS = -ruv | ||
CAT = cat | ||
CCS = gcc | ||
CCP = mpicc | ||
CCD = gcc | ||
CFLAGS = -I${PREFIX}/include -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -Drestrict=__restrict -DIDXSIZE64 | ||
CLIBFLAGS = -fPIC | ||
LDFLAGS = -L${PREFIX}/lib -lz -lm -lrt -pthread | ||
CP = cp | ||
LEX = flex -Pscotchyy -olex.yy.c | ||
LN = ln | ||
MKDIR = mkdir | ||
MV = mv | ||
RANLIB = ranlib | ||
YACC = bison -pscotchyy -y -b y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
cd src/ | ||
|
||
if [ `uname` == "Darwin" ]; then | ||
cp $RECIPE_DIR/Makefile.inc.i686_mac_darwin10 Makefile.inc | ||
else | ||
cp $RECIPE_DIR/Makefile.inc.x86-64_pc_linux2 Makefile.inc | ||
sed -i 's#-l$(SCOTCHLIB)errexit#-l$(SCOTCHLIB)errexit -lm#g' esmumps/Makefile | ||
fi | ||
|
||
make esmumps | tee make.log 2>&1 | ||
make check | ||
cd .. | ||
|
||
# install. | ||
mkdir -p $PREFIX/lib/ | ||
cp lib/* $PREFIX/lib/ | ||
mkdir -p $PREFIX/bin/ | ||
cp bin/* $PREFIX/bin/ | ||
mkdir -p $PREFIX/include/ | ||
cp include/* $PREFIX/include/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{% set name = "scotch" %} | ||
{% set version = "6.0.4" %} | ||
{% set md5 = "d58b825eb95e1db77efe8c6ff42d329f" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
fn: {{ name }}-{{ version }}.tar.gz | ||
md5: {{ md5 }} | ||
url: https://gforge.inria.fr/frs/download.php/latestfile/298/{{ name }}_{{ version }}.tar.gz | ||
|
||
build: | ||
skip: true # [win] | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- toolchain | ||
- zlib 1.2.* | ||
- bison | ||
- flex | ||
run: | ||
- zlib 1.2.* | ||
|
||
test: | ||
commands: | ||
- test -f "${PREFIX}/lib/libscotch.a" | ||
- test -f "${PREFIX}/lib/libscotcherr.a" | ||
- test -f "${PREFIX}/lib/libscotcherrexit.a" | ||
- test -f "${PREFIX}/lib/libscotchmetis.a" | ||
- test -f "${PREFIX}/lib/libesmumps.a" | ||
- test -f "${PREFIX}/include/esmumps.h" | ||
- test -f "${PREFIX}/include/metis.h" | ||
- test -f "${PREFIX}/include/scotch.h" | ||
- test -f "${PREFIX}/include/scotchf.h" | ||
- mord -V | ||
- gotst -V | ||
- gord -V | ||
- gpart -V | ||
- gmap -V | ||
|
||
about: | ||
home: https://www.labri.fr/perso/pelegrin/scotch/ | ||
license: CeCILL-C | ||
license_file: LICENSE_en.txt | ||
summary: 'SCOTCH: Static Mapping, Graph, Mesh and Hypergraph Partitioning, and Parallel and Sequential Sparse Matrix Ordering Package' | ||
description: | | ||
Software package and libraries for sequential and parallel | ||
graph partitioning, static mapping and clustering, sequential | ||
mesh and hypergraph partitioning, and sequential and parallel | ||
sparse matrix block ordering. | ||
doc_url: http://gforge.inria.fr/docman/?group_id=248 | ||
|
||
extra: | ||
recipe-maintainers: | ||
- basnijholt |