Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions conda/build.sh
Original file line number Diff line number Diff line change
@@ -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 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why disable El::Quad?

-DCMAKE_BUILD_TYPE=Release \
-DEL_HYBRID=ON \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend not enabling the Hybrid build by default: is there a good reason to do so?

-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 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to avoid GMP/MPFR/MPC?

..


make -j $NPROC

make install
34 changes: 34 additions & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package:
name: libelemental
version: "0.87.5"

source:
git_url: https://github.com/elemental/Elemental.git

build:
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'