← Back to team overview

dolfin team mailing list archive

Re: Linking pastix

 

On Thursday November 17 2011 02:36:56 Garth N. Wells wrote:
> On 17 November 2011 07:36, Johan Hake <johan.hake@xxxxxxxxx> wrote:
> > On Wednesday November 16 2011 23:12:32 Garth N. Wells wrote:
> >> On 17 Nov 2011, at 05:30, Johan Hake <johan.hake@xxxxxxxxx> wrote:
> >> > Hello!
> >> > 
> >> > I have problems with the CMake configure script trying to find pastix.
> >> > It fails with the following:
> >> > 
> >> > /usr/lib/ccache/gcc     -DCHECK_FUNCTION_EXISTS=pthread_create
> >> >  -fopenmp CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o  -o
> >> > cmTryCompileExec - rdynamic -lpthreads
> >> > /usr/bin/ld: cannot find -lpthreads
> >> > collect2: ld returned 1 exit status
> >> > gmake[1]: *** [cmTryCompileExec] Error 1
> >> > gmake[1]: Leaving directory `/home/hake/bzr/fenics/dolfin/dolfin-
> >> > gpu/build/CMakeFiles/CMakeTmp'
> >> > gmake: *** [cmTryCompileExec/fast] Error 2
> >> > 
> >> > Does anyone know why pthreads get added to the the linking? If I
> >> > remove -lpthreads from the linkning it passes just fine.
> >> 
> >> Configuring PaStiX is complicated and pthreads is usually required. The
> >> PaStiX cake module needs to do some proper testing. It's very primitive
> >> at the moment.
> > 
> > Ok, then I suggest we disable it by default.
> 
> pthread is not added manually anywhere, so its should not be added by
> the build system unless it's available on your system. It's most
> likely being added as a BLAS flag. Which BLAS are you using?

Good question... How do I find that out?

Johan

> Garth
> 
> > Johan
> > 
> >> Garth
> >> 
> >> > I am on a Natty Ubuntu.
> >> > 
> >> > Johan
> >> > 
> >> > _______________________________________________
> >> > Mailing list: https://launchpad.net/~dolfin
> >> > Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> >> > Unsubscribe : https://launchpad.net/~dolfin
> >> > More help   : https://help.launchpad.net/ListHelp
> >> 
> >> _______________________________________________
> >> Mailing list: https://launchpad.net/~dolfin
> >> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> >> Unsubscribe : https://launchpad.net/~dolfin
> >> More help   : https://help.launchpad.net/ListHelp


Follow ups

References