[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8169] Patch to allow openmpi_ext package
From: |
Alexander Hansen |
Subject: |
[Octave-patch-tracker] [patch #8169] Patch to allow openmpi_ext package to build against openmpi 1.5+ |
Date: |
Sat, 24 Aug 2013 18:45:41 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1 |
URL:
<http://savannah.gnu.org/patch/?8169>
Summary: Patch to allow openmpi_ext package to build against
openmpi 1.5+
Project: GNU Octave
Submitted by: alexkhansen
Submitted on: Sat 24 Aug 2013 06:45:40 PM GMT
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
When building against openmpi-1.5 or later, the following error occurs. I've
seen this on OS X using Fink, but the error is a missing member, and seems
like it should occur elsewhere, too:
/sw/bin/mkoctfile-3.6.4
-I/sw/include/openmpi/opal/mca/hwloc/hwloc132/hwloc/include -I/sw/include
-I/sw/include/openmpi -L/sw/lib/openmpi -lmpi_cxx -lmpi -lm MPI_Iprobe.cc
MPI_Iprobe.cc:38:14: error: no member named '_count' in
'ompi_status_public_t';
did you mean '_ucount'?
tmp = stat._count;
^~~~~~
_ucount
/sw/include/mpi.h:346:12: note: '_ucount' declared here
size_t _ucount;
^
1 error generated.
I used the following patch to address this:
diff -Nurd openmpi_ext/src/MPI_Iprobe.cc
openmpi_ext.patched/src/MPI_Iprobe.cc
--- openmpi_ext/src/MPI_Iprobe.cc 2012-08-29 09:54:42.000000000 -0700
+++ openmpi_ext.patched/src/MPI_Iprobe.cc 2013-08-24 11:36:12.000000000
-0700
@@ -35,7 +35,7 @@
map.assign ("tag", tmp );
tmp = stat.MPI_ERROR;
map.assign ("err", tmp );
- tmp = stat._count;
+ tmp = stat._ucount;
map.assign ("cnt", tmp);
tmp = stat._cancelled;
map.assign ("can", tmp);
diff -Nurd openmpi_ext/src/MPI_Probe.cc openmpi_ext.patched/src/MPI_Probe.cc
--- openmpi_ext/src/MPI_Probe.cc 2012-08-29 09:54:42.000000000 -0700
+++ openmpi_ext.patched/src/MPI_Probe.cc 2013-08-24 11:36:12.000000000
-0700
@@ -34,7 +34,7 @@
map.assign ("tag", tmp);
tmp = stat.MPI_ERROR;
map.assign ("err", tmp);
- tmp = stat._count;
+ tmp = stat._ucount;
map.assign("cnt", tmp);
tmp = stat._cancelled;
map.assign("can", tmp);
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8169>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #8169] Patch to allow openmpi_ext package to build against openmpi 1.5+,
Alexander Hansen <=