diff options
author | Michael Gilroy <michael.gilroy24@gmail.com> | 2017-07-07 03:14:08 +0000 |
---|---|---|
committer | Michael Gilroy <michael.gilroy24@gmail.com> | 2017-07-07 03:14:08 +0000 |
commit | 9b0f43c3e44933bbf3e65d5c92eaabd354388153 (patch) | |
tree | 69cfaeec6c882e9d0829b83377b3556ac7365112 | |
parent | modifications to MPI_TARGETS (diff) | |
download | gentoo-mpi-9b0f43c3e44933bbf3e65d5c92eaabd354388153.tar.gz gentoo-mpi-9b0f43c3e44933bbf3e65d5c92eaabd354388153.tar.bz2 gentoo-mpi-9b0f43c3e44933bbf3e65d5c92eaabd354388153.zip |
setting mpich-specific econf & src_install
-rw-r--r-- | eclass/mpi-select-r1.eclass | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/eclass/mpi-select-r1.eclass b/eclass/mpi-select-r1.eclass index 5a7eb13..2e36b0a 100644 --- a/eclass/mpi-select-r1.eclass +++ b/eclass/mpi-select-r1.eclass @@ -125,8 +125,27 @@ mpi-select_etcdir() mpi_src_configure() { - # hmmm how to handle econf flags.... - default + if [[ "${imp}" == "mpich" ]]; then + local c= + if use mpi-threads; then + c="${c} --with-thread-package=pthreads" + c="${c} --enable-threds=runtime" + else + if use threads; then + c="${c} --with-thrad-package=pthreads" + else + c="${c} --with-thread-package=none" + fi + c="${c} --enable-threds=single" + fi + + c="${c} --sysconfidr=${EPREFIX}/etc/${PF}" + + econf ${c} + + elif [[ "${imp}" == "openmpi" ]]; then + einfo "hit openmpi" + fi } mpi_src_compile() @@ -134,6 +153,12 @@ mpi_src_compile() local imp=$(mpi-select_get_implementation) if [[ "${imp}" == "mpich" ]]; then + if use fortran; then + mkdir "${T}"/fortran || die + mv "${ED}"usr/include/mpif* "${T}"fortran || die + else + + fi einfo "hit mpich" elif [[ "${imp}" == "openmpi" ]]; then einfo "hit openmpi" @@ -142,7 +167,7 @@ mpi_src_compile() mpi_src_test() { - default + emake -j1 check } mpi_src_install() |