Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
34 changes: 34 additions & 0 deletions pkgs/scorec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
extends: [cmake_package]
dependencies:
build: [mpi, parmetis, zoltan]

sources:
- key: git:1d2f5438d3dff3f1120649577bb2a05f9ac8c556
url: https://github.com/SCOREC/core.git

defaults:
relocatable: false

build_stages:

- name: setup_builddir
after: prologue
handler: bash
bash: |
mkdir -p _build
cd _build

- name: configure
extra: [
'-DCMAKE_C_COMPILER=${MPICC}',
'-DCMAKE_CXX_COMPILER=${MPICXX}',
'-DENABLE_ZOLTAN=ON',
'-DMETIS_LIBRARY=${PARMETIS_DIR}/lib/libmetis.so',
'-DPARMETIS_LIBRARY=${PARMETIS_DIR}/lib/libparmetis.so',
'-DPARMETIS_INCLUDE_DIR=${PARMETIS_DIR}/include',
'-DZOLTAN_LIBRARY=${ZOLTAN_DIR}/lib/libzoltan.a',
'-DZOLTAN_INCLUDE_DIR=${ZOLTAN_DIR}/include',
'-DBUILD_SHARED_LIBS=True',
'-DSIM_MPI=mpich2',
]

32 changes: 32 additions & 0 deletions pkgs/zoltan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
extends: [autotools_package]
dependencies:
build: [mpi, {{build_with}}]

sources:
- key: tar.gz:lpoumvepxhdtwis3xtz5ebwfldbrrszj
url: http://www.cs.sandia.gov/~kddevin/Zoltan_Distributions/zoltan_distrib_v3.8.tar.gz
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't Zoltan part of Trilinos?


defaults:
#include/Makefile.export.zoltan.macros
relocatable: false

build_stages:

- name: setup_builddir
after: prologue
handler: bash
bash: |
mkdir -p _build
cd _build

- name: setEnv
after: setup_builddir
handler: bash
bash: |
export MPI_DIR=$(dirname $(dirname $MPICC) )
export LD_LIBRARY_PATH=${MPI_DIR}/lib
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is very hackish to set LD_LIBRARY_PATH, even if during the build only. Usually there is a better solution. But that's fine for now to get something that works.


- name: configure
after: setEnv
configure_path: ".."
extra: ['--with-cflags=-fPIC', '--with-cxxflags=-fPIC']