-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added recipe for scotch #1427
Added recipe for scotch #1427
Changes from 20 commits
ecf9d3e
5ad5a14
4e3dc89
3cf9e8a
74a83b6
8e2bbb8
a72d719
f5ea92b
440d5a5
2962671
afd3266
ce06309
0bffdd0
abcbff5
904a2b4
86bbec6
9470b2b
ef9c127
31a58b4
6bb7c0c
1c8e316
2c6496b
7d376d6
3b65579
5c36d65
e92001e
42e220b
a4d5035
d87384b
1423d7a
5a3c137
763fcbd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 = -O3 -fPIC -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_PTHREAD_BARRIER -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME | ||
CLIBFLAGS = | ||
LDFLAGS = -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 |
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
cd src/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
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/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So that's confusing. Why do we need to copy stuff over then? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{% set name = "scotch" %} | ||
{% set version = "6.0.4" %} | ||
{% set md5 = "d58b825eb95e1db77efe8c6ff42d329f" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
fn: scotch_6.0.4.tar.gz | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please change to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now jinja templated |
||
md5: {{ md5 }} | ||
url: http://gforge.inria.fr/frs/download.php/file/34618/scotch_6.0.4.tar.gz | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please template the version with jinja here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed it, but because the number in the url changes for every file I initially didn't. |
||
|
||
build: | ||
skip: true # [win] | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- toolchain | ||
- zlib 1.2.* # [unix] | ||
- bison | ||
- flex | ||
run: | ||
- zlib 1.2.* # [unix] | ||
|
||
test: | ||
commands: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There seems to be a bunch of executables that are installed. Can we please run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have added a few. |
||
# Check for library. | ||
- 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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jakirkham I can't find a better way to test these files? What do you think? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we check for some dylibs/sos? Also some tests for installed headers would be helpful. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no dylibs/sos as far as I can see. I did include the header file tests now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I'm not seeing them either now that I'm looking. Is there an option to build dynamic libraries? |
||
|
||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use
clang
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to
clang
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I do it in the Linux
Makefile.inc
too?