bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Re: gnubg bug? Baseline Information


From: Christian Anthon
Subject: Re: [Bug-gnubg] Re: gnubg bug? Baseline Information
Date: Sat, 8 Aug 2009 15:27:49 +0200

It was indeed a compiler issue. The following non-fix made the problem
disappear for me:

replace

          pm->rScore = UtilityME(arOutput, pci);
          if( i < nPruneMoves ) {

with

          pm->rScore = UtilityME(arOutput, pci);
          g_print("%f\n", pm->rScore)
          if( i < nPruneMoves ) {

around line 5811 in eval.c.

I attempted to fix the code. But my attempts made the code a bit
slower or did nothing. I ended up committing something that is much
simpler, but slightly slower than before. You are welcome to suggest
changes and test it for speed. In particular the sorting is a bit
overkill since we only need the 10 best pruned moves in no particular
order. And I'm not sure that the forced inline of eval_prune is an
advantage.

Christian.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]