← Back to team overview

dolfin team mailing list archive

Re: Buildbot and MTL4

 

On Mon, August 18, 2008 16:47, Ola Skavhaug wrote:
> Johannes Ring skrev den 18/08-2008 følgende:
>> On Mon, August 18, 2008 15:49, Ola Skavhaug wrote:
>> >
>> > Johannes Ring skrev den 18/08-2008 følgende:
>> >> On Mon, August 18, 2008 13:52, Anders Logg wrote:
>> >> > On Mon, Aug 18, 2008 at 01:33:25PM +0200, Johannes Ring wrote:
>> >> >> On Mon, August 18, 2008 13:25, Anders Logg wrote:
>> >> >> > On Mon, Aug 18, 2008 at 01:18:04PM +0200, Dag Lindbo wrote:
>> >> >> >>
>> >> >> >>
>> >> >> >> Ilmar Wilbers wrote:
>> >> >> >> > Hi,
>> >> >> >> >
>> >> >> >> > No, I will need to install the MTL4 backend manually on all
>> the
>> >> >> build
>> >> >> >> > slaves. The build slaves run on different machines, setting a
>> >> path
>> >> >> for
>> >> >> >> > only the fenics server wouldn't be sufficient.
>> >> >> >>
>> >> >> >> I was suggesting that the MTL4 path could be relative to the
>> >> dolfin
>> >> >> >> source, i.e. ./sandbox/mtl_src/boost/numeric/mtl4. But if you
>> >> could
>> >> >> >> install as usual, that would be better.
>> >> >> >>
>> >> >> >> >
>> >> >> >> > If you send me the instructions, I will be happy to do so!
>> >> >> >>
>> >> >> >> It simple:
>> >> >> >>
>> >> >> >> svn co https://svn.osl.iu.edu/tlc/trunk/mtl4/trunk mtl4
>> >> >> >>
>> >> >> >> I would put everything from mtl4/boost in a system-wide
>> directory,
>> >> >> e.g.
>> >> >> >> next to uBLAS in /usr/local/include/boost
>> >> >> >>
>> >> >> >> Again, there is nothing to build and install. Just add
>> -DHAS_MTL4
>> >> to
>> >> >> the
>> >> >> >> CFLAGS and add any non-standard include path
>> >> >> >>
>> >> >> >> /Dag
>> >> >> >
>> >> >> > Can we add a test for MTL4 that sets the HAS_MTL4 flag as for
>> the
>> >> >> > other backends?
>> >> >>
>> >> >> Yes, I will create a pkg-config generator for MTL4 as well.
>> >> >>
>> >> >> Johannes
>> >> >
>> >> > Nice!
>> >>
>> >> The MTL4 pkg-config generator is finished, but I have some problems
>> with
>> >> the Python demos. All of them are failing with the error below. Any
>> >> ideas?
>> >>
>> >> Johannes
>> >>
>> > It looks like there's something wrong going on during the construction
>> of
>> > the
>> > shared library, since this symbol should be defined in the MTL4Matrix
>> > source
>> > file. Try cleaning and rebuilding:
>> >
>> > scons -c
>> > scons install
>>
>> No, it didn't help. Same error. Other suggestions?
>
> Perhaps HAS_MTL4 is only defined during the compilation of the swig
> wrappers?
> Check the compile flags.

No, it seems that -DHAS_MTL4 is included everywhere. I tried to disable
all other optional dependencies and I also disabled ccache, but I still
get the same error. Should I just push the MTL4 pkg-config generator? All
it does is to add -DHAS_MTL4.

Johannes

johannr@simula-x61:dolfin$ nm dolfin/swig/_dolfin.so | grep MTL4
0004f0a0 t MTL4Factory_swigregister
0004f520 t MTL4Matrix_swigregister
0004f340 t MTL4Vector_swigregister
         U _ZN6dolfin10MTL4Matrix13init_inserterEv
         U _ZN6dolfin10MTL4Matrix3matEv
         U _ZN6dolfin10MTL4MatrixC1ERKS0_
         U _ZN6dolfin10MTL4MatrixC1Ejj
         U _ZN6dolfin10MTL4MatrixC1Ejjj
         U _ZN6dolfin10MTL4MatrixC1Ev
         U _ZN6dolfin10MTL4Vector3vecEv
         U _ZN6dolfin10MTL4VectorC1ERKS0_
         U _ZN6dolfin10MTL4VectorC1Ej
         U _ZN6dolfin10MTL4VectorC1Ev
         U _ZN6dolfin10MTL4VectoraSERKS0_
         U _ZN6dolfin11MTL4Factory7factoryE
         U
_ZN6dolfin15ITLKrylovSolver5solveERKNS_10MTL4MatrixERNS_10MTL4VectorERKS4_
         U _ZN6dolfinlsERNS_9LogStreamERKNS_10MTL4VectorE
         U _ZNK6dolfin10MTL4Matrix18assert_no_inserterEv
         U _ZNK6dolfin10MTL4Matrix3matEv
         U _ZNK6dolfin10MTL4Vector3vecEv
         U _ZTIN6dolfin10MTL4MatrixE
         U _ZTIN6dolfin10MTL4VectorE
00042c50 t _p_dolfin__MTL4FactoryTo_p_dolfin__LinearAlgebraFactory
00042510 t _p_dolfin__MTL4MatrixTo_p_dolfin__GenericMatrix
00043110 t _p_dolfin__MTL4MatrixTo_p_dolfin__GenericTensor
00042ed0 t _p_dolfin__MTL4MatrixTo_p_dolfin__Variable
00043080 t _p_dolfin__MTL4VectorTo_p_dolfin__GenericTensor
00042fb0 t _p_dolfin__MTL4VectorTo_p_dolfin__GenericVector
00042c90 t _p_dolfin__MTL4VectorTo_p_dolfin__Variable
002bb460 d _swigc__p_dolfin__MTL4Factory
002bb480 d _swigc__p_dolfin__MTL4Matrix
002bb4a0 d _swigc__p_dolfin__MTL4Vector
002b929c d _swigt__p_dolfin__MTL4Factory
002b92b4 d _swigt__p_dolfin__MTL4Matrix
002b92cc d _swigt__p_dolfin__MTL4Vector
000bb4e0 t _wrap_MTL4Factory_createMatrix
000bb1e0 t _wrap_MTL4Factory_createPattern
000bb360 t _wrap_MTL4Factory_createVector
000455c0 t _wrap_MTL4Factory_instance
000d02e0 t _wrap_MTL4Matrix___idiv__
000d04b0 t _wrap_MTL4Matrix___imul__
00116890 t _wrap_MTL4Matrix_add
000d1450 t _wrap_MTL4Matrix_apply
000cfcb0 t _wrap_MTL4Matrix_assert_no_inserter
000d1780 t _wrap_MTL4Matrix_copy
000d0110 t _wrap_MTL4Matrix_data
000d1060 t _wrap_MTL4Matrix_disp
000cff90 t _wrap_MTL4Matrix_factory
0012d780 t _wrap_MTL4Matrix_get
000d0d70 t _wrap_MTL4Matrix_getrow
0019b030 t _wrap_MTL4Matrix_ident
000d1900 t _wrap_MTL4Matrix_init
000cfe20 t _wrap_MTL4Matrix_init_inserter
000cf920 t _wrap_MTL4Matrix_mat
000d0680 t _wrap_MTL4Matrix_mult
0012ccb0 t _wrap_MTL4Matrix_set
0010a060 t _wrap_MTL4Matrix_setrow
000d15c0 t _wrap_MTL4Matrix_size
0019c0a0 t _wrap_MTL4Matrix_zero
0019b870 t _wrap_MTL4Matrix_zero__SWIG_1
000c0da0 t _wrap_MTL4Vector___iadd__
000c1680 t _wrap_MTL4Vector___idiv__
000c1850 t _wrap_MTL4Vector___imul__
000c0ba0 t _wrap_MTL4Vector___isub__
00194510 t _wrap_MTL4Vector_add
00193c40 t _wrap_MTL4Vector_add__SWIG_0
000c2c80 t _wrap_MTL4Vector_apply
000c0fa0 t _wrap_MTL4Vector_assign
000c2300 t _wrap_MTL4Vector_axpy
000c2f60 t _wrap_MTL4Vector_copy
000c0810 t _wrap_MTL4Vector_data
000c2890 t _wrap_MTL4Vector_disp
000c0690 t _wrap_MTL4Vector_factory
0018fc50 t _wrap_MTL4Vector_get
0018f380 t _wrap_MTL4Vector_get__SWIG_0
000c26c0 t _wrap_MTL4Vector_init
000c2100 t _wrap_MTL4Vector_inner
000c1a20 t _wrap_MTL4Vector_max
000c1b90 t _wrap_MTL4Vector_min
000c1d00 t _wrap_MTL4Vector_norm
001981b0 t _wrap_MTL4Vector_set
001978e0 t _wrap_MTL4Vector_set__SWIG_0
000c2550 t _wrap_MTL4Vector_size
000c0300 t _wrap_MTL4Vector_vec
000c2df0 t _wrap_MTL4Vector_zero
000bb660 t _wrap_delete_MTL4Factory
000d1df0 t _wrap_delete_MTL4Matrix
000c30e0 t _wrap_delete_MTL4Vector
000d1f70 t _wrap_new_MTL4Matrix
000c3260 t _wrap_new_MTL4Vector
johannr@simula-x61:dolfin$

> Ola
>
>
>> Johannes
>>
>> > Ola
>> >
>> >
>> >> Traceback (most recent call last):
>> >>   File "demo.py", line 21, in <module>
>> >>     from dolfin import *
>> >>   File
>> >> "/home/johannr/src/hg/dolfin/local/lib/python2.5/site-packages/dolfin/__init__.py",
>> >> line 13, in <module>
>> >>     from assemble import *
>> >>   File
>> >> "/home/johannr/src/hg/dolfin/local/lib/python2.5/site-packages/dolfin/assemble.py",
>> >> line 22, in <module>
>> >>     from dolfin import *
>> >>   File
>> >> "/home/johannr/src/hg/dolfin/local/lib/python2.5/site-packages/dolfin/dolfin.py",
>> >> line 7, in <module>
>> >>     import _dolfin
>> >> ImportError:
>> >> /home/johannr/src/hg/dolfin/local/lib/python2.5/site-packages/dolfin/_dolfin.so:
>> >> undefined symbol: _ZNK6dolfin10MTL4Matrix18assert_no_inserterEv
>> >>
>> >>
>> >> _______________________________________________
>> >> DOLFIN-dev mailing list
>> >> DOLFIN-dev@xxxxxxxxxx
>> >> http://www.fenics.org/mailman/listinfo/dolfin-dev
>> >
>>
>>
>> _______________________________________________
>> DOLFIN-dev mailing list
>> DOLFIN-dev@xxxxxxxxxx
>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>




References