From 68e5395ce7c1c27db8199bb3a6a91e1b9083c776 Mon Sep 17 00:00:00 2001 From: Georgios Kollias Date: Wed, 30 Nov 2016 22:43:14 -0500 Subject: [PATCH 1/5] recipe builds --- conda/build.sh | 32 ++++++++++++++++++++++++++++++++ conda/meta.yaml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 conda/build.sh create mode 100644 conda/meta.yaml diff --git a/conda/build.sh b/conda/build.sh new file mode 100644 index 0000000000..265ff52009 --- /dev/null +++ b/conda/build.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +NPROC=`nproc` + +git checkout tags/v0.87.5 + +mkdir build + +cd build + +cmake \ +-DCMAKE_INSTALL_PREFIX="${PREFIX}" \ +-DCMAKE_CXX_COMPILER="${PREFIX}/bin/g++" \ +-DCMAKE_C_COMPILER="${PREFIX}/bin/gcc" \ +-DCMAKE_Fortran_COMPILER="${PREFIX}/bin/gfortran" \ +-DEL_USE_64BIT_INTS=ON \ +-DEL_HAVE_QUADMATH=OFF \ +-DCMAKE_BUILD_TYPE=Release \ +-DEL_HYBRID=ON \ +-DBUILD_SHARED_LIBS=ON \ +-DMATH_LIBS="-L${PREFIX}/lib -lopenblas -lm" \ +-DINSTALL_PYTHON_PACKAGE=ON \ +-DEL_BUILD_METIS=ON \ +-DEL_DISABLE_VALGRIND=ON \ +-DEL_DISABLE_PARMETIS=ON \ +-DEL_HAVE_MPC=OFF \ +.. + + +make -j $NPROC + +make install diff --git a/conda/meta.yaml b/conda/meta.yaml new file mode 100644 index 0000000000..7427b0a2b5 --- /dev/null +++ b/conda/meta.yaml @@ -0,0 +1,37 @@ +package: + name: libelemental + version: "0.87.5" + +source: + git_url: https://github.com/elemental/Elemental.git + +build: + features: + - xdata + + rpaths: + - lib/ + - lib64/ + +requirements: + build: + - gcc >=4.8.5 + - python >=2.7,<3 + - openblas + - mpich2 + - git + - cmake >=2.8 + + run: + - libgcc + - python >=2.7,<3 + - openblas + - mpich2 + - numpy + - matplotlib + - networkx + +about: + home: http://libelemental.org + license: New BSD license + summary: 'C++ library for distributed memory linear algebra and optimization' From 813b45dc91547e358bfd95815b30ae438f2f05f9 Mon Sep 17 00:00:00 2001 From: Georgios Kollias Date: Wed, 30 Nov 2016 23:13:35 -0500 Subject: [PATCH 2/5] removed xdata feature --- conda/meta.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index 7427b0a2b5..9bcf52fe32 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -6,9 +6,6 @@ source: git_url: https://github.com/elemental/Elemental.git build: - features: - - xdata - rpaths: - lib/ - lib64/ From 0a2e8e2d1650bcc8a7f337ad916007bb9d9dcb1e Mon Sep 17 00:00:00 2001 From: Georgios Kollias Date: Fri, 2 Dec 2016 00:05:26 -0500 Subject: [PATCH 3/5] enabled quadmath --- conda/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/build.sh b/conda/build.sh index 265ff52009..ec803eea8e 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -14,7 +14,7 @@ cmake \ -DCMAKE_C_COMPILER="${PREFIX}/bin/gcc" \ -DCMAKE_Fortran_COMPILER="${PREFIX}/bin/gfortran" \ -DEL_USE_64BIT_INTS=ON \ --DEL_HAVE_QUADMATH=OFF \ +-DEL_HAVE_QUADMATH=ON \ -DCMAKE_BUILD_TYPE=Release \ -DEL_HYBRID=ON \ -DBUILD_SHARED_LIBS=ON \ From 409b5e5fae310ba36f385386dd93a51b4274c552 Mon Sep 17 00:00:00 2001 From: Georgios Kollias Date: Fri, 2 Dec 2016 00:15:21 -0500 Subject: [PATCH 4/5] disabled hyrid build; removed unused metis build flag --- conda/build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conda/build.sh b/conda/build.sh index ec803eea8e..a92938f261 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -16,11 +16,10 @@ cmake \ -DEL_USE_64BIT_INTS=ON \ -DEL_HAVE_QUADMATH=ON \ -DCMAKE_BUILD_TYPE=Release \ --DEL_HYBRID=ON \ +-DEL_HYBRID=OFF \ -DBUILD_SHARED_LIBS=ON \ -DMATH_LIBS="-L${PREFIX}/lib -lopenblas -lm" \ -DINSTALL_PYTHON_PACKAGE=ON \ --DEL_BUILD_METIS=ON \ -DEL_DISABLE_VALGRIND=ON \ -DEL_DISABLE_PARMETIS=ON \ -DEL_HAVE_MPC=OFF \ From 4de418956b7f99999d31c8609f4fe6b633e2262f Mon Sep 17 00:00:00 2001 From: Georgios Kollias Date: Fri, 2 Dec 2016 01:56:16 -0500 Subject: [PATCH 5/5] enabled mpc through conda-forge --- conda/build.sh | 1 - conda/meta.yaml | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/conda/build.sh b/conda/build.sh index a92938f261..4369e2d98c 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -22,7 +22,6 @@ cmake \ -DINSTALL_PYTHON_PACKAGE=ON \ -DEL_DISABLE_VALGRIND=ON \ -DEL_DISABLE_PARMETIS=ON \ --DEL_HAVE_MPC=OFF \ .. diff --git a/conda/meta.yaml b/conda/meta.yaml index 9bcf52fe32..9460b8a911 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -10,12 +10,18 @@ build: - lib/ - lib64/ +extra: + channels: + - defaults + - conda-forge + requirements: build: - gcc >=4.8.5 - python >=2.7,<3 - openblas - mpich2 + - mpc - git - cmake >=2.8 @@ -24,6 +30,7 @@ requirements: - python >=2.7,<3 - openblas - mpich2 + - mpc - numpy - matplotlib - networkx