[yocto] MPI support on Yocto

Victor Rodriguez vm.rod25 at gmail.com
Thu Feb 19 11:54:21 PST 2015


No problem Alex, here is the second version


Thanks a lot to Alex Hernandez

>From 7ef5b510333c1eac535484881beddf2604d7ed6a Mon Sep 17 00:00:00 2001
From: Victor Rodriguez <victor.rodriguez.bahena at intel.com>
Date: Thu, 19 Feb 2015 11:00:22 -0600
Subject: [PATCH] Add mpich suppor

This patch add mpich support to yocto in order to run MPI framework on embedded
systems.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez at linux.intel.com>
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena at intel.com>
---
 meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb | 33 +++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb

diff --git a/meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb
b/meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb
new file mode 100644
index 0000000..ac87e04
--- /dev/null
+++ b/meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb
@@ -0,0 +1,33 @@
+SUMMARY = "Message Passing Interface(MPI) implementation"
+HOMEPAGE = "http://git.mpich.org/mpich.git/"
+SECTION = "devel"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=2106f0435056f3dd9349747a766e5816"
+SRC_URI = "http://www.mpich.org/static/downloads/${PV}/mpich-${PV}.tar.gz"
+SRC_URI[md5sum] = "40dc408b1e03cc36d80209baaa2d32b7"
+
+RDEPENDS_${PN} += "bash perl"
+
+
+EXTRA_OECONF = "--enable-debuginfo \
+                --enable-fast \
+                --enable-shared  \
+                --disable-f77 \
+                --disable-fc \
+                --disable-fortran \
+                --disable-cxx"
+
+inherit autotools gettext
+
+do_configure_prepend() {
+    cd ../mpich-3.1.1
+    autoreconf --verbose --install --force -I . -I confdb/ -I maint/
+    oe_runconf
+    exit
+}
+do_compile_prepend() {
+    cd ../mpich-3.1.1
+}
+do_install_prepend() {
+    cd ../mpich-3.1.1
+}
-- 
1.9.3

This is creating a problem with QA , nothing too hard to fix , Working on it

Regards

Victor Rodriguez



On Thu, Feb 19, 2015 at 1:21 PM, Alexandru Vaduva
<vaduvajanalexandru at yahoo.com> wrote:
> Hello Victor,
>
> Sorry for this late reply. I took a look at the mpich recipe error, but was
> not able to find a solution.
> I admit that I only looked at it for a few moments(around 2 hours), my
> schedule did not permit more.
>
> If I`ll have any progress on this I will try to keep you posted.
>
>
> Alex Vaduva
>
>
> On Monday, February 9, 2015 8:45 AM, Alexandru Vaduva
> <vaduvajanalexandru at yahoo.com> wrote:
>
>
> I will try to take a look at it ;)
>
>
> On Monday, February 9, 2015 7:13 AM, Victor Rodriguez <vm.rod25 at gmail.com>
> wrote:
>
>
> On Tue, Feb 3, 2015 at 4:57 PM, Alexandru Vaduva
> <vaduvajanalexandru at yahoo.com> wrote:
>> I would suggest a layer under meta-openembeded:
>> meta-openembedded/meta-oe/recipes-devtools/ caould be a start.
>
> Hi Alex
>
> This is the first version that I have:
>
> diff --git a/meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb
> b/meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb
> new file mode 100644
> index 0000000..bf94714
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb
> @@ -0,0 +1,18 @@
> +SUMMARY = "Message Passing Interface(MPI) implementation"
> +HOMEPAGE = "http://git.mpich.org/mpich.git/"
> +SECTION = "devel"
> +LICENSE = "BSD-2-Clause"
> +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=673935943"
> +SRC_URI = "http://www.mpich.org/static/downloads/${PV}/mpich-${PV}.tar.gz"
> +SRC_URI[md5sum] = "40dc408b1e03cc36d80209baaa2d32b7"
> +
> +
> +EXTRA_OECONF = "--enable-debuginfo \
> +                --enable-fast \
> +                --enable-shared  \
> +                --disable-f77 \
> +                --disable-fc \
> +                --disable-fortran \
> +                --disable-cxx"
> +
> +inherit autotools gettext
>
> However is failing in do_configure
>
> autoreconf: configure.ac: tracing
> autoreconf: configure.ac: adding subdirectory test/mpi to autoreconf
> autoreconf: Entering directory `test/mpi'
> aclocal: error:
> /home/vrodri3/poky/build/tmp/work/i586-poky-linux/mpich/3.1.1-r0/mpich-3.1.1/subsys_include.m4:5:
> file 'src/mpid/pamid/subconfigure.m4' does not exist
> autoreconf: aclocal failed with exit status: 1
> ERROR: autoreconf execution failed.
>
> Any idea ?
>
> BTW. I am adding those extra configures from upstream spec files
>
> All the help is more than welcome
>
> Regards
>
> Victor Rodriguez
>
>
>
>
>>
>> Alex Vaduva
>>
>>
>> On Wednesday, February 4, 2015 12:21 AM, Victor Rodriguez
>> <vm.rod25 at gmail.com> wrote:
>>
>>
>> On Tue, Feb 3, 2015 at 12:14 PM, Alexandru Vaduva
>> <vaduvajanalexandru at yahoo.com> wrote:
>>> I will be more then happy to help you with this.
>>>
>>>
>>> Alex Vaduva
>>>
>>>
>>> On Tuesday, February 3, 2015 5:41 PM, Victor Rodriguez
>>> <vm.rod25 at gmail.com>
>>> wrote:
>>>
>>>
>>> HI team
>>>
>>> I wonder if there is any project or efforts to implement Message
>>> Passing Interface (MPICH ) support on Yocto ?
>>>
>>> If no I am more than happy to work on it , I just will need a little
>>> bit of guidance
>>>
>>> Thanks a lot
>>>
>>> Regards
>>>
>>> Victor Rodriguez
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>>
>>
>> Thanks Alex
>>
>> Does anybody knows under which meta - list should we send the patch to
>> review?
>>
>>
>> Regards
>>
>> Victor Rodriguez
>>
>>
>
>
>
>



More information about the yocto mailing list