Skip to contentSkip to conversation

Add mpich support

PATCH In review Victor Rodriguez 2 participants 4 messages Mar 9, 2015 – Mar 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Add mpich support

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

---
 meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb | 29 +++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb
meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb new file +29 -0
new file mode 100644
index 0000000..2f4226e
@@ -0,0 +1,29 @@
+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"
+SRC_URI[sha256sum] = "455ccfaf4ec724d2cf5d8bff1f3d26a958ad196121e7ea26504fd3018757652d"
+
+RDEPENDS_${PN} += "bash perl tcsh"
+S = "${WORKDIR}/${PN}-${PV}"
+
+EXTRA_OECONF = "--enable-debuginfo \
+                --enable-fast \
+                --enable-shared  \
+                --disable-f77 \
+                --disable-fc \
+                --disable-fortran \
+                --disable-cxx"
+
+inherit autotools-brokensep gettext
+
+do_configure_prepend() {
+    autoreconf --verbose --install --force -I . -I confdb/ -I maint/
+    oe_runconf
+    exit
+}
Signature · 1 line
1.9.3
#1 lore raw

PATCH 2/2 mpich: Disable RPATH to avoid issues in package_qa

From: Aníbal Limón <[email protected]>

Set --disable-rpath to extra opts in order to avoid issues in package_qa also change default pm to gforker because hydra has problems with RPATH.

TODO: Make a patch for solve hydra rpath issues.

---
 meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb +9 -4
index 2f4226e..0225cee 100644
@@ -1,20 +1,25 @@
-SUMMARY = "Message Passing Interface(MPI) implementation"
-HOMEPAGE = "http://git.mpich.org/mpich.git/"
+SUMMARY = "Message Passing Interface (MPI) implementation"
+HOMEPAGE = "http://www.mpich.org/"
 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 = " \
+	http://www.mpich.org/static/downloads/${PV}/mpich-${PV}.tar.gz \
+"
+
 SRC_URI[md5sum] = "40dc408b1e03cc36d80209baaa2d32b7"
 SRC_URI[sha256sum] = "455ccfaf4ec724d2cf5d8bff1f3d26a958ad196121e7ea26504fd3018757652d"
 
-RDEPENDS_${PN} += "bash perl tcsh"
+RDEPENDS_${PN} += "bash perl libxml2"
 S = "${WORKDIR}/${PN}-${PV}"
 
 EXTRA_OECONF = "--enable-debuginfo \
                 --enable-fast \
                 --enable-shared  \
+                --with-pm=gforker  \
+		--disable-rpath \
                 --disable-f77 \
                 --disable-fc \
                 --disable-fortran \
Signature · 1 line
1.9.3
#2 lore raw
In reply to Victor Rodriguez

meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb line 29

Quoted 8 lines · Victor Rodriguez
meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb new file +5 -0
+do_configure_prepend() {
+    autoreconf --verbose --install --force -I . -I confdb/ -I maint/
+    oe_runconf
+    exit
+}

Can this be replaced with EXTRA_AUTORECONF += “” mentioning any extra options you added above to autoreconf

#3 lore raw
Quoted 10 lines · Khem Raj

meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb line 29

Quoted 7 lines · Victor Rodriguez
meta-oe/recipes-devtools/mpich/mpich_3.1.1.bb new file +5 -0
+do_configure_prepend() {
+    autoreconf --verbose --install --force -I . -I confdb/ -I maint/
+    oe_runconf
+    exit
+}

Can this be replaced with EXTRA_AUTORECONF += “” mentioning any extra options you added above to autoreconf

Sure , thanks for the feedback .. I will test it and send V2

Signature · 3 lines
Victor Rodriguez

Open Source Technology Center