Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2004 08:46:04 -0800 (PST)
From:      Doug White <dwhite@gumbysoft.com>
To:        eqe <eqe@cox.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: problem smp w/ crafty chess engine
Message-ID:  <20040116084230.Y92448@carver.gumbysoft.com>
In-Reply-To: <200401151316.24827.eqe@cox.net>
References:  <200401151316.24827.eqe@cox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 15 Jan 2004, eqe wrote:

> Can anyone help with this, I am trying to get my dual amd mp system to compile
> crafty so that it can use the smp features, but I am having no luck :(

Isn't this in ports?

> gcc  -o crafty searchr.o search.o singular.o thread.o searchmp.o repeat.o
> next.o nexte.o nextr.o history.o quiesce.o evaluate.o movgen.o make.o
> unmake.o hash.o attacks.o swap.o boolean.o utility.o valid.o probe.o book.o
> data.o drawn.o edit.o epd.o epdglue.o init.o input.o interupt.o iterate.o
> main.o option.o output.o phase.o ponder.o preeval.o resign.o root.o learn.o
> setboard.o test.o testepd.o time.o validate.o annotate.o analyze.o evtest.o
> bench.o egtb.o dgt.o -lstdc++ -lpthread X86.o -lm
> /usr/bin/ld: cannot find -lpthread

s/pthread/c_r/

Be careful.... FreeBSD doesn't currently schedule different threads of the
same program on different processors.  If crafty isn't forking, then you
aren't getting what you think you're getting.

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040116084230.Y92448>