From owner-freebsd-current@FreeBSD.ORG Fri Jan 16 08:46:07 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E53E916A4CE for ; Fri, 16 Jan 2004 08:46:07 -0800 (PST) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D94243D73 for ; Fri, 16 Jan 2004 08:46:05 -0800 (PST) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 0072472DC9; Fri, 16 Jan 2004 08:46:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id EFA3F72DC7; Fri, 16 Jan 2004 08:46:04 -0800 (PST) Date: Fri, 16 Jan 2004 08:46:04 -0800 (PST) From: Doug White To: eqe In-Reply-To: <200401151316.24827.eqe@cox.net> Message-ID: <20040116084230.Y92448@carver.gumbysoft.com> References: <200401151316.24827.eqe@cox.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: problem smp w/ crafty chess engine X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 16:46:08 -0000 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