Re: [computer-go] Digital Mars
Ben Shoemaker wrote: Success! I was able to build on WinXP using Scons and minGW (with gcc4.3.3). Here's what (finally) worked for me: 1. Install Python 2.6.2 http://www.python.org/ftp/python/2.6.2/python-2.6.2.msi 2. Install minGW (using TDM's installer on empty minGW directory) http://downloads.sourceforge.net/tdm-gcc/tdm-mingw-1.902.0-f1.exe ... Is there a nice installer like this anywhere for 64-bit (Windows 7)? ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
On Fri, Apr 24, 2009 at 01:52, Łukasz Lew lukasz@gmail.com wrote: I get g++-4.1 35 kpps/GHz g++-4.2 45 kpps/GHz g++-4.3 40 kpps/GHz I'm happy it's quite consistent on core2 I'm curious about 4.4 as well. g++-4.4 45 kpps/GHz package gcc-snapshot on ubuntu $ /usr/lib/gcc-snapshot/bin/g++ --version g++ (Ubuntu 20081024-0ubuntu1) 4.4.0 20081024 (experimental) [trunk revision 141342] so quite old. Lukasz Lukasz PS On Fri, Apr 24, 2009 at 01:29, Adrian Grajdeanu adria...@cox.net wrote: I have two benchmarks: On an: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz stepping 06 g++ --version g++ (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33) I had to modify SConstruct to refer to the default g++, not g++.4.2 and had to remove -march=native = Benchmarking, please wait ... = 20 playouts in 2.72759 seconds 73.3249 kpps 36.5657 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 2.73858 seconds 73.0304 kpps 36.4108 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 2.72858 seconds 73.2981 kpps 36.5291 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 2.76258 seconds 72.3961 kpps 36.1141 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 2.74358 seconds 72.8974 kpps 36.3124 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' on an: Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz stepping 0a g++ --version g++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8) (with -march=native flag) = Benchmarking, please wait ... = 20 playouts in 1.65575 seconds 120.791 kpps 40.2566 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 1.65275 seconds 121.011 kpps 40.3069 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 1.65375 seconds 120.937 kpps 40.2789 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 1.65475 seconds 120.864 kpps 40.2917 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 1.65175 seconds 121.084 kpps 40.3084 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' I'd be curious g++ 4.4 what gives? Cheers, Adrian ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
According to my math, that comes out to around 205 cycles per playout move. Pretty damn good, I'd say. Łukasz Lew wrote: On Fri, Apr 24, 2009 at 01:52, Łukasz Lew lukasz@gmail.com wrote: I get g++-4.1 35 kpps/GHz g++-4.2 45 kpps/GHz g++-4.3 40 kpps/GHz I'm happy it's quite consistent on core2 I'm curious about 4.4 as well. g++-4.4 45 kpps/GHz package gcc-snapshot on ubuntu $ /usr/lib/gcc-snapshot/bin/g++ --version g++ (Ubuntu 20081024-0ubuntu1) 4.4.0 20081024 (experimental) [trunk revision 141342] so quite old. Lukasz Lukasz PS On Fri, Apr 24, 2009 at 01:29, Adrian Grajdeanu adria...@cox.net wrote: I have two benchmarks: On an: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz stepping 06 g++ --version g++ (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33) I had to modify SConstruct to refer to the default g++, not g++.4.2 and had to remove -march=native = Benchmarking, please wait ... = 20 playouts in 2.72759 seconds 73.3249 kpps 36.5657 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 2.73858 seconds 73.0304 kpps 36.4108 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 2.72858 seconds 73.2981 kpps 36.5291 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 2.76258 seconds 72.3961 kpps 36.1141 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 2.74358 seconds 72.8974 kpps 36.3124 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' on an: Intel(R) Core(TM)2 Quad CPUQ9650 @ 3.00GHz stepping 0a g++ --version g++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8) (with -march=native flag) = Benchmarking, please wait ... = 20 playouts in 1.65575 seconds 120.791 kpps 40.2566 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 1.65275 seconds 121.011 kpps 40.3069 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 1.65375 seconds 120.937 kpps 40.2789 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 1.65475 seconds 120.864 kpps 40.2917 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 1.65175 seconds 121.084 kpps 40.3084 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' I'd be curious g++ 4.4 what gives? Cheers, Adrian ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
My math seems to be way different 1e9 / 45000= 22,222 cycles per playout On Apr 24, 2009, at 12:22 PM, Michael Williams michaelwilliam...@gmail.com wrote: According to my math, that comes out to around 205 cycles per playout move. Pretty damn good, I'd say. Łukasz Lew wrote: On Fri, Apr 24, 2009 at 01:52, Łukasz Lew lukasz@gmail.com w rote: I get g++-4.1 35 kpps/GHz g++-4.2 45 kpps/GHz g++-4.3 40 kpps/GHz I'm happy it's quite consistent on core2 I'm curious about 4.4 as well. g++-4.4 45 kpps/GHz package gcc-snapshot on ubuntu $ /usr/lib/gcc-snapshot/bin/g++ --version g++ (Ubuntu 20081024-0ubuntu1) 4.4.0 20081024 (experimental) [trunk revision 141342] so quite old. Lukasz Lukasz PS On Fri, Apr 24, 2009 at 01:29, Adrian Grajdeanu adria...@cox.net wrote: I have two benchmarks: On an: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz stepping 06 g++ --version g++ (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33) I had to modify SConstruct to refer to the default g++, not g++. 4.2 and had to remove -march=native = Benchmarking, please wait ... = 20 playouts in 2.72759 seconds 73.3249 kpps 36.5657 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 2.73858 seconds 73.0304 kpps 36.4108 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 2.72858 seconds 73.2981 kpps 36.5291 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 2.76258 seconds 72.3961 kpps 36.1141 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 2.74358 seconds 72.8974 kpps 36.3124 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' on an: Intel(R) Core(TM)2 Quad CPUQ9650 @ 3.00GHz stepping 0a g++ --version g++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8) (with -march=native flag) = Benchmarking, please wait ... = 20 playouts in 1.65575 seconds 120.791 kpps 40.2566 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 1.65275 seconds 121.011 kpps 40.3069 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 1.65375 seconds 120.937 kpps 40.2789 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 1.65475 seconds 120.864 kpps 40.2917 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 1.65175 seconds 121.084 kpps 40.3084 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' I'd be curious g++ 4.4 what gives? Cheers, Adrian ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
Of course, I now realize what I missed after sending it. Playout vs. Playout move... At a little over 100 moves per playout, our numbers agree Sent from my iPhone On Apr 24, 2009, at 12:54 PM, Jason House jason.james.ho...@gmail.com wrote: My math seems to be way different 1e9 / 45000= 22,222 cycles per playout On Apr 24, 2009, at 12:22 PM, Michael Williams michaelwilliam...@gmail.com wrote: According to my math, that comes out to around 205 cycles per playout move. Pretty damn good, I'd say. Łukasz Lew wrote: On Fri, Apr 24, 2009 at 01:52, Łukasz Lew lukasz@gmail.com wrote: I get g++-4.1 35 kpps/GHz g++-4.2 45 kpps/GHz g++-4.3 40 kpps/GHz I'm happy it's quite consistent on core2 I'm curious about 4.4 as well. g++-4.4 45 kpps/GHz package gcc-snapshot on ubuntu $ /usr/lib/gcc-snapshot/bin/g++ --version g++ (Ubuntu 20081024-0ubuntu1) 4.4.0 20081024 (experimental) [trunk revision 141342] so quite old. Lukasz Lukasz PS On Fri, Apr 24, 2009 at 01:29, Adrian Grajdeanu adria...@cox.net wrote: I have two benchmarks: On an: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz stepping 06 g++ --version g++ (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33) I had to modify SConstruct to refer to the default g++, not g++. 4.2 and had to remove -march=native = Benchmarking, please wait ... = 20 playouts in 2.72759 seconds 73.3249 kpps 36.5657 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 2.73858 seconds 73.0304 kpps 36.4108 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 2.72858 seconds 73.2981 kpps 36.5291 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 2.76258 seconds 72.3961 kpps 36.1141 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 2.74358 seconds 72.8974 kpps 36.3124 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' on an: Intel(R) Core(TM)2 Quad CPUQ9650 @ 3.00GHz stepping 0a g++ --version g++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8) (with -march=native flag) = Benchmarking, please wait ... = 20 playouts in 1.65575 seconds 120.791 kpps 40.2566 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 1.65275 seconds 121.011 kpps 40.3069 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 1.65375 seconds 120.937 kpps 40.2789 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 1.65475 seconds 120.864 kpps 40.2917 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 1.65175 seconds 121.084 kpps 40.3084 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' I'd be curious g++ 4.4 what gives? Cheers, Adrian ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
You have to take into account that there is time needed to load base position and score the game after playout. I remember that in my old tests it was around 180 cc per move. (libego got a little bit faster since then) Lukasz On Fri, Apr 24, 2009 at 18:56, Jason House jason.james.ho...@gmail.com wrote: Of course, I now realize what I missed after sending it. Playout vs. Playout move... At a little over 100 moves per playout, our numbers agree Sent from my iPhone On Apr 24, 2009, at 12:54 PM, Jason House jason.james.ho...@gmail.com wrote: My math seems to be way different 1e9 / 45000= 22,222 cycles per playout On Apr 24, 2009, at 12:22 PM, Michael Williams michaelwilliam...@gmail.com wrote: According to my math, that comes out to around 205 cycles per playout move. Pretty damn good, I'd say. Łukasz Lew wrote: On Fri, Apr 24, 2009 at 01:52, Łukasz Lew lukasz@gmail.com wrote: I get g++-4.1 35 kpps/GHz g++-4.2 45 kpps/GHz g++-4.3 40 kpps/GHz I'm happy it's quite consistent on core2 I'm curious about 4.4 as well. g++-4.4 45 kpps/GHz package gcc-snapshot on ubuntu $ /usr/lib/gcc-snapshot/bin/g++ --version g++ (Ubuntu 20081024-0ubuntu1) 4.4.0 20081024 (experimental) [trunk revision 141342] so quite old. Lukasz Lukasz PS On Fri, Apr 24, 2009 at 01:29, Adrian Grajdeanu adria...@cox.net wrote: I have two benchmarks: On an: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz stepping 06 g++ --version g++ (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33) I had to modify SConstruct to refer to the default g++, not g++. 4.2 and had to remove -march=native = Benchmarking, please wait ... = 20 playouts in 2.72759 seconds 73.3249 kpps 36.5657 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 2.73858 seconds 73.0304 kpps 36.4108 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 2.72858 seconds 73.2981 kpps 36.5291 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 2.76258 seconds 72.3961 kpps 36.1141 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 2.74358 seconds 72.8974 kpps 36.3124 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' on an: Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz stepping 0a g++ --version g++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8) (with -march=native flag) = Benchmarking, please wait ... = 20 playouts in 1.65575 seconds 120.791 kpps 40.2566 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 1.65275 seconds 121.011 kpps 40.3069 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 1.65375 seconds 120.937 kpps 40.2789 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 1.65475 seconds 120.864 kpps 40.2917 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 1.65175 seconds 121.084 kpps 40.3084 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' I'd be curious g++ 4.4 what gives? Cheers, Adrian ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups libego-devel group. To post to this group, send email to libego-de...@googlegroups.com To unsubscribe from this group, send email to libego-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/libego-devel?hl=en -~--~~~~--~~--~--~--- ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
Hi Łukasz , It's fixed now. Thanks a lot! laptop:/u/SW/src/lukaszlew-libego-e4acac7545770fe008c1ff30cf99f874fd7e9272$ build/example/opt/ego = Benchmarking, please wait ... = 20 playouts in 2.83218 seconds 70.6171 kpps 34.8904 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 2.82418 seconds 70.8171 kpps 35.324 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 2.81217 seconds 71.1193 kpps 35.4917 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 2.80818 seconds 71.2206 kpps 35.518 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 2.81618 seconds 71.0183 kpps 35.5761 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
On Thu, Apr 23, 2009 at 01:25, elife elife2...@gmail.com wrote: On my Intel(R) Core(TM)2 Duo CPU T7200 @ 2.00GHz, using linux and the exact compiler libego was tuned for, I get 70 kpps/GHz. = 20 playouts in 2.85618 seconds 70.0236 kpps -154.124 kpps/GHz (clock independent) I found this kind of garbage associated with 64 bit systems. It's probably because of my poor assembly, but I thought I fixed it recently. Can you check newest version? http://github.com/lukaszlew/libego/zipball/master Lukasz 104896/94794 (black wins / white wins) ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
I have two benchmarks: On an: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz stepping 06 g++ --version g++ (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33) I had to modify SConstruct to refer to the default g++, not g++.4.2 and had to remove -march=native = Benchmarking, please wait ... = 20 playouts in 2.72759 seconds 73.3249 kpps 36.5657 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 2.73858 seconds 73.0304 kpps 36.4108 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 2.72858 seconds 73.2981 kpps 36.5291 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 2.76258 seconds 72.3961 kpps 36.1141 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 2.74358 seconds 72.8974 kpps 36.3124 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' on an: Intel(R) Core(TM)2 Quad CPUQ9650 @ 3.00GHz stepping 0a g++ --version g++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8) (with -march=native flag) = Benchmarking, please wait ... = 20 playouts in 1.65575 seconds 120.791 kpps 40.2566 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 1.65275 seconds 121.011 kpps 40.3069 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 1.65375 seconds 120.937 kpps 40.2789 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 1.65475 seconds 120.864 kpps 40.2917 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 1.65175 seconds 121.084 kpps 40.3084 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' I'd be curious g++ 4.4 what gives? Cheers, Adrian ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
I get g++-4.1 35 kpps/GHz g++-4.2 45 kpps/GHz g++-4.3 40 kpps/GHz I'm happy it's quite consistent on core2 I'm curious about 4.4 as well. Lukasz PS On Fri, Apr 24, 2009 at 01:29, Adrian Grajdeanu adria...@cox.net wrote: I have two benchmarks: On an: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz stepping 06 g++ --version g++ (GCC) 4.1.2 20070925 (Red Hat 4.1.2-33) I had to modify SConstruct to refer to the default g++, not g++.4.2 and had to remove -march=native = Benchmarking, please wait ... = 20 playouts in 2.72759 seconds 73.3249 kpps 36.5657 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 2.73858 seconds 73.0304 kpps 36.4108 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 2.72858 seconds 73.2981 kpps 36.5291 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 2.76258 seconds 72.3961 kpps 36.1141 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 2.74358 seconds 72.8974 kpps 36.3124 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' on an: Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz stepping 0a g++ --version g++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8) (with -march=native flag) = Benchmarking, please wait ... = 20 playouts in 1.65575 seconds 120.791 kpps 40.2566 kpps/GHz (clock independent) 105316/94359 (black wins / white wins) = 20 playouts in 1.65275 seconds 121.011 kpps 40.3069 kpps/GHz (clock independent) 104924/94746 (black wins / white wins) = 20 playouts in 1.65375 seconds 120.937 kpps 40.2789 kpps/GHz (clock independent) 105097/94582 (black wins / white wins) = 20 playouts in 1.65475 seconds 120.864 kpps 40.2917 kpps/GHz (clock independent) 105139/94547 (black wins / white wins) = 20 playouts in 1.65175 seconds 121.084 kpps 40.3084 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) = Try 'help' I'd be curious g++ 4.4 what gives? Cheers, Adrian ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
Please download newest version, I made some ifdefWIN 32 ... to aid mingw porting. http://github.com/lukaszlew/libego/zipball/master Under linux I can cross compile to windows binary with a following command $ i586-mingw32msvc-g++ -o engine.exe ego/ego.cpp example/main.cpp -O3 -march=native -Iego -fomit-frame-pointer -ffast-math -frename-registers It might just work :) FYI $ i586-mingw32msvc-g++ --version i586-mingw32msvc-g++ (GCC) 4.2.1-sjlj (mingw32-2) And the performance I get is around 32 kpps/GHz Lukasz 2009/4/22 Michael Williams michaelwilliam...@gmail.com: Ok, I have Mingw installed now. That sounds like the way to go. But I still don't know how to compile it :/ According to the SConstruct file, I should be doing something like this to build, but it complains: C:\Libego g++ /Fobuild\ego\dbg\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -fno-inline /nologo /Iego g++: /Fobuild\ego\dbg\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory In file included from ego\ego.h:27, from ego\ego.cpp:47: ego\gtp.h:73: warning: `class Gtp' has virtual functions but non-virtual destructor In file included from ego\ego.cpp:54: ego\player.cpp: In constructor `Player::Player()': ego\player.cpp:27: warning: converting of negative value `-0x1' to `uint' In file included from ego\ego.cpp:55: ego\color.cpp: In constructor `Color::Color()': ego\color.cpp:27: warning: converting of negative value `-0x1' to `uint' I also tried the build command for the optimized version: C:\Libego g++ /Fobuild\ego\opt\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -O3 -march=native -fomit-frame-pointer -ffast-math -frename-registers /nologo /Iego g++: /Fobuild\ego\opt\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory ego\ego.cpp:1: error: bad value (native) for -march= switch ego\ego.cpp:1: error: bad value (native) for -mtune= switch Sorry for my ignorance. Łukasz Lew wrote: 2009/4/21 Łukasz Lew lukasz@gmail.com: mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) I used wine to run resulting exe on linux:) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
Success! I was able to build on WinXP using Scons and minGW (with gcc4.3.3). Here's what (finally) worked for me: 1. Install Python 2.6.2 http://www.python.org/ftp/python/2.6.2/python-2.6.2.msi 2. Install minGW (using TDM's installer on empty minGW directory) http://downloads.sourceforge.net/tdm-gcc/tdm-mingw-1.902.0-f1.exe 3. Install SCons 1.2.0 http://prdownloads.sourceforge.net/scons/scons-1.2.0.win32.exe 4. add C:\Python26\Scripts\ to path (for scons.bat) 5. add C:\MinGW\bin to path (for g++.exe) 6. unpack latest version of libego http://github.com/lukaszlew/libego/zipball/master 7. edit SConstruct (CXX = g++.exe) 8. run scons.bat (from root directory of libego) 9. run build\example\opt\ego.exe (from root directory of libego) 10. report benchmark results The benchmark results for me were: 31.0417 kpps/GHz Hope this helps. Ben. - Original Message From: Łukasz Lew lukasz@gmail.com To: computer-go computer-go@computer-go.org Sent: Wednesday, April 22, 2009 3:38:14 AM Subject: Re: [computer-go] Digital Mars Please download newest version, I made some ifdefWIN 32 ... to aid mingw porting. http://github.com/lukaszlew/libego/zipball/master Under linux I can cross compile to windows binary with a following command $ i586-mingw32msvc-g++ -o engine.exe ego/ego.cpp example/main.cpp -O3 -march=native -Iego -fomit-frame-pointer -ffast-math -frename-registers It might just work :) FYI $ i586-mingw32msvc-g++ --version i586-mingw32msvc-g++ (GCC) 4.2.1-sjlj (mingw32-2) And the performance I get is around 32 kpps/GHz Lukasz 2009/4/22 Michael Williams michaelwilliam...@gmail.com: Ok, I have Mingw installed now. That sounds like the way to go. But I still don't know how to compile it :/ According to the SConstruct file, I should be doing something like this to build, but it complains: C:\Libego g++ /Fobuild\ego\dbg\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -fno-inline /nologo /Iego g++: /Fobuild\ego\dbg\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory In file included from ego\ego.h:27, from ego\ego.cpp:47: ego\gtp.h:73: warning: `class Gtp' has virtual functions but non-virtual destructor In file included from ego\ego.cpp:54: ego\player.cpp: In constructor `Player::Player()': ego\player.cpp:27: warning: converting of negative value `-0x1' to `uint' In file included from ego\ego.cpp:55: ego\color.cpp: In constructor `Color::Color()': ego\color.cpp:27: warning: converting of negative value `-0x1' to `uint' I also tried the build command for the optimized version: C:\Libego g++ /Fobuild\ego\opt\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -O3 -march=native -fomit-frame-pointer -ffast-math -frename-registers /nologo /Iego g++: /Fobuild\ego\opt\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory ego\ego.cpp:1: error: bad value (native) for -march= switch ego\ego.cpp:1: error: bad value (native) for -mtune= switch Sorry for my ignorance. Łukasz Lew wrote: 2009/4/21 Łukasz Lew lukasz@gmail.com: mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) I used wine to run resulting exe on linux:) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go
Re: [computer-go] Digital Mars
I do have a core2, but it complained about that switch: ego/ego.cpp:1: error: bad value (core2) for -march= switch ego/ego.cpp:1: error: bad value (core2) for -mtune= switch example/main.cpp:1: error: bad value (core2) for -march= switch example/main.cpp:1: error: bad value (core2) for -mtune= switch When using i686, it did not complain, and I get these results: 23.0972 kpps/GHz Łukasz Lew wrote: 2009/4/22 Michael Williams michaelwilliam...@gmail.com: This worked for me: C:\Libego\lukaszlew-libego-476a46885f80e1f4d83494bb632398b3974e901bg++ -o engine.exe ego/ego.cpp example/main.cpp -O3 -Iego -fomit-frame-pointer -ffast-math -frename-registers (I removed the -march switch) 22.5101 kpps/GHz No too much :) Can you try -march=i686 and -march=core2 (if you have core2) ? And I was able to create a DLL like this: C:\Libego\lukaszlew-libego-476a46885f80e1f4d83494bb632398b3974e901bg++ -shared -o libego.dll ego/eg o.cpp exported.cpp -O3 -Iego -fomit-frame-pointer -ffast-math -frename-registers 46274.8727441 pps SUCCESS! Thanks for everyone's help. Here are the contents of exported.cpp: This is almost the same as Benchmark::do_playout in benchmark.cpp #include ego/ego.h __declspec(dllexport) void DoPlayouts(int playout_cnt, int * blackWins, int * whiteWins) { SimplePolicy policy; Board board [1]; Board mc_board [1]; PlayoutSimplePolicy playout(policy, mc_board); for (int i = 0; i != playout_cnt; i++) { mc_board-load(board); playout_status_t status = playout.run (); if (status != too_long) { int score = mc_board - score (); if (score 0) { (*blackWins)++; } else { (*whiteWins)++; } } } } Łukasz Lew wrote: Please download newest version, I made some ifdefWIN 32 ... to aid mingw porting. http://github.com/lukaszlew/libego/zipball/master Under linux I can cross compile to windows binary with a following command $ i586-mingw32msvc-g++ -o engine.exe ego/ego.cpp example/main.cpp -O3 -march=native -Iego -fomit-frame-pointer -ffast-math -frename-registers It might just work :) FYI $ i586-mingw32msvc-g++ --version i586-mingw32msvc-g++ (GCC) 4.2.1-sjlj (mingw32-2) And the performance I get is around 32 kpps/GHz Lukasz 2009/4/22 Michael Williams michaelwilliam...@gmail.com: Ok, I have Mingw installed now. That sounds like the way to go. But I still don't know how to compile it :/ According to the SConstruct file, I should be doing something like this to build, but it complains: C:\Libego g++ /Fobuild\ego\dbg\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -fno-inline /nologo /Iego g++: /Fobuild\ego\dbg\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory In file included from ego\ego.h:27, from ego\ego.cpp:47: ego\gtp.h:73: warning: `class Gtp' has virtual functions but non-virtual destructor In file included from ego\ego.cpp:54: ego\player.cpp: In constructor `Player::Player()': ego\player.cpp:27: warning: converting of negative value `-0x1' to `uint' In file included from ego\ego.cpp:55: ego\color.cpp: In constructor `Color::Color()': ego\color.cpp:27: warning: converting of negative value `-0x1' to `uint' I also tried the build command for the optimized version: C:\Libego g++ /Fobuild\ego\opt\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -O3 -march=native -fomit-frame-pointer -ffast-math -frename-registers /nologo /Iego g++: /Fobuild\ego\opt\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory ego\ego.cpp:1: error: bad value (native) for -march= switch ego\ego.cpp:1: error: bad value (native) for -mtune= switch Sorry for my ignorance. Łukasz Lew wrote: 2009/4/21 Łukasz Lew lukasz@gmail.com: mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) I used wine to run resulting exe on linux:) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list
Re: [computer-go] Digital Mars
After I used a better MinGW build, with a newer gcc (the one Ben suggested), I get must better results with no compiler warnings: 40.0609 kpps/GHz Lukasz, the march options of native, i686 and core2 all worked and came out to similar results with i686 being slightly faster for me. Łukasz Lew wrote: 2009/4/22 Michael Williams michaelwilliam...@gmail.com: This worked for me: C:\Libego\lukaszlew-libego-476a46885f80e1f4d83494bb632398b3974e901bg++ -o engine.exe ego/ego.cpp example/main.cpp -O3 -Iego -fomit-frame-pointer -ffast-math -frename-registers (I removed the -march switch) 22.5101 kpps/GHz No too much :) Can you try -march=i686 and -march=core2 (if you have core2) ? And I was able to create a DLL like this: C:\Libego\lukaszlew-libego-476a46885f80e1f4d83494bb632398b3974e901bg++ -shared -o libego.dll ego/eg o.cpp exported.cpp -O3 -Iego -fomit-frame-pointer -ffast-math -frename-registers 46274.8727441 pps SUCCESS! Thanks for everyone's help. Here are the contents of exported.cpp: This is almost the same as Benchmark::do_playout in benchmark.cpp #include ego/ego.h __declspec(dllexport) void DoPlayouts(int playout_cnt, int * blackWins, int * whiteWins) { SimplePolicy policy; Board board [1]; Board mc_board [1]; PlayoutSimplePolicy playout(policy, mc_board); for (int i = 0; i != playout_cnt; i++) { mc_board-load(board); playout_status_t status = playout.run (); if (status != too_long) { int score = mc_board - score (); if (score 0) { (*blackWins)++; } else { (*whiteWins)++; } } } } Łukasz Lew wrote: Please download newest version, I made some ifdefWIN 32 ... to aid mingw porting. http://github.com/lukaszlew/libego/zipball/master Under linux I can cross compile to windows binary with a following command $ i586-mingw32msvc-g++ -o engine.exe ego/ego.cpp example/main.cpp -O3 -march=native -Iego -fomit-frame-pointer -ffast-math -frename-registers It might just work :) FYI $ i586-mingw32msvc-g++ --version i586-mingw32msvc-g++ (GCC) 4.2.1-sjlj (mingw32-2) And the performance I get is around 32 kpps/GHz Lukasz 2009/4/22 Michael Williams michaelwilliam...@gmail.com: Ok, I have Mingw installed now. That sounds like the way to go. But I still don't know how to compile it :/ According to the SConstruct file, I should be doing something like this to build, but it complains: C:\Libego g++ /Fobuild\ego\dbg\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -fno-inline /nologo /Iego g++: /Fobuild\ego\dbg\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory In file included from ego\ego.h:27, from ego\ego.cpp:47: ego\gtp.h:73: warning: `class Gtp' has virtual functions but non-virtual destructor In file included from ego\ego.cpp:54: ego\player.cpp: In constructor `Player::Player()': ego\player.cpp:27: warning: converting of negative value `-0x1' to `uint' In file included from ego\ego.cpp:55: ego\color.cpp: In constructor `Color::Color()': ego\color.cpp:27: warning: converting of negative value `-0x1' to `uint' I also tried the build command for the optimized version: C:\Libego g++ /Fobuild\ego\opt\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -O3 -march=native -fomit-frame-pointer -ffast-math -frename-registers /nologo /Iego g++: /Fobuild\ego\opt\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory ego\ego.cpp:1: error: bad value (native) for -march= switch ego\ego.cpp:1: error: bad value (native) for -mtune= switch Sorry for my ignorance. Łukasz Lew wrote: 2009/4/21 Łukasz Lew lukasz@gmail.com: mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) I used wine to run resulting exe on linux:) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
That seems like a good speed. On my Intel(R) Core(TM)2 Duo CPU T5450 @ 1.66GHz, using linux and the exact compiler libego was tuned for, I get 42 kpps/GHz. On my AMD Athlon(tm) 64 X2 Dual Core Processor 5000+, using the same compiler, I only get 37 kpps/GHz. On Wed, 2009-04-22 at 18:09 -0400, Michael Williams wrote: After I used a better MinGW build, with a newer gcc (the one Ben suggested), I get must better results with no compiler warnings: 40.0609 kpps/GHz Lukasz, the march options of native, i686 and core2 all worked and came out to similar results with i686 being slightly faster for me. Łukasz Lew wrote: 2009/4/22 Michael Williams michaelwilliam...@gmail.com: This worked for me: C:\Libego\lukaszlew-libego-476a46885f80e1f4d83494bb632398b3974e901bg++ -o engine.exe ego/ego.cpp example/main.cpp -O3 -Iego -fomit-frame-pointer -ffast-math -frename-registers (I removed the -march switch) 22.5101 kpps/GHz No too much :) Can you try -march=i686 and -march=core2 (if you have core2) ? And I was able to create a DLL like this: C:\Libego\lukaszlew-libego-476a46885f80e1f4d83494bb632398b3974e901bg++ -shared -o libego.dll ego/eg o.cpp exported.cpp -O3 -Iego -fomit-frame-pointer -ffast-math -frename-registers 46274.8727441 pps SUCCESS! Thanks for everyone's help. Here are the contents of exported.cpp: This is almost the same as Benchmark::do_playout in benchmark.cpp #include ego/ego.h __declspec(dllexport) void DoPlayouts(int playout_cnt, int * blackWins, int * whiteWins) { SimplePolicy policy; Board board [1]; Board mc_board [1]; PlayoutSimplePolicy playout(policy, mc_board); for (int i = 0; i != playout_cnt; i++) { mc_board-load(board); playout_status_t status = playout.run (); if (status != too_long) { int score = mc_board - score (); if (score 0) { (*blackWins)++; } else { (*whiteWins)++; } } } } Łukasz Lew wrote: Please download newest version, I made some ifdefWIN 32 ... to aid mingw porting. http://github.com/lukaszlew/libego/zipball/master Under linux I can cross compile to windows binary with a following command $ i586-mingw32msvc-g++ -o engine.exe ego/ego.cpp example/main.cpp -O3 -march=native -Iego -fomit-frame-pointer -ffast-math -frename-registers It might just work :) FYI $ i586-mingw32msvc-g++ --version i586-mingw32msvc-g++ (GCC) 4.2.1-sjlj (mingw32-2) And the performance I get is around 32 kpps/GHz Lukasz 2009/4/22 Michael Williams michaelwilliam...@gmail.com: Ok, I have Mingw installed now. That sounds like the way to go. But I still don't know how to compile it :/ According to the SConstruct file, I should be doing something like this to build, but it complains: C:\Libego g++ /Fobuild\ego\dbg\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -fno-inline /nologo /Iego g++: /Fobuild\ego\dbg\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory In file included from ego\ego.h:27, from ego\ego.cpp:47: ego\gtp.h:73: warning: `class Gtp' has virtual functions but non-virtual destructor In file included from ego\ego.cpp:54: ego\player.cpp: In constructor `Player::Player()': ego\player.cpp:27: warning: converting of negative value `-0x1' to `uint' In file included from ego\ego.cpp:55: ego\color.cpp: In constructor `Color::Color()': ego\color.cpp:27: warning: converting of negative value `-0x1' to `uint' I also tried the build command for the optimized version: C:\Libego g++ /Fobuild\ego\opt\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -O3 -march=native -fomit-frame-pointer -ffast-math -frename-registers /nologo /Iego g++: /Fobuild\ego\opt\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory ego\ego.cpp:1: error: bad value (native) for -march= switch ego\ego.cpp:1: error: bad value (native) for -mtune= switch Sorry for my ignorance. Łukasz Lew wrote: 2009/4/21 Łukasz Lew lukasz@gmail.com: mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) I used wine to run resulting exe on linux:) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the
Re: [computer-go] Digital Mars
There's a big difference between kpps and kpps/GHz! For your system, you need to divide by two (and on my core2, divide by 1.66). For raw kpps, I think I had 70 on my core2 and 100 on the AMD64. Do you consistently get garbage such as -154.124 for your kpps/GHz? Sent from my iPhone On Apr 22, 2009, at 7:25 PM, elife elife2...@gmail.com wrote: On my Intel(R) Core(TM)2 Duo CPU T7200 @ 2.00GHz, using linux and the exact compiler libego was tuned for, I get 70 kpps/GHz. = 20 playouts in 2.85618 seconds 70.0236 kpps -154.124 kpps/GHz (clock independent) 104896/94794 (black wins / white wins) ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
On Tue, Apr 21, 2009 at 04:59, Jason House jason.james.ho...@gmail.com wrote: I always recommend cygwin. I'm a linux guy and can't live without all my little tools and simple package installation. You should be able to get the exact gcc libego was optimized for that way. I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? I use the digital mars d compiler and it's blazingly fast. All my d files can compile and link faster than gcc compiles one of libego's c++ files. I'm not knocking libego, just giving a relevent reference point. I'm using libego under the hood for playouts. the reason of slow libego compilation is conntected to speed of playouts. It has everything in one file optimized with O3. After compilation there are almost no functions calls. Lukasz Sent from my iPhone On Apr 20, 2009, at 9:18 PM, Michael Williams michaelwilliam...@gmail.com wrote: I got Libego compiled to a Windows DLL using Visual Studio and was able to call it, but I was only getting around 5k pps on my Core2. So I wanted to try another compiler. Has anyone used the Digital Mars C++ compiler? Or is there another compiler I should try? ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
2009/4/21 Łukasz Lew lukasz@gmail.com: mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) I used wine to run resulting exe on linux:) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
Just to add my 2c for the performance freaks. I've noticed that code generated by g++ 4.3.x was about 40-45% faster non-optimized when compared to previous versions of g++ (native linux platform). When optimizing code (-O3), 4.3 generated code that was 20% faster. This is probably the more relevant number for those that optimize their code anyway. Don't know about you, but I was impressed by 20% gain. If you already use g++ 4.3, pardon my interruption. But if you don't, you will be pleasantly surprised once you upgrade to it. Adrian Łukasz Lew wrote: mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
Funny story: I have worse performance with g++-4.3 (20% as well) I probably overoptimized for g++-4.2 or something :) FYI g++4.4 is about to be released. it is already in experimental debian repository Lukasz 2009/4/21 Adrian Grajdeanu adria...@cox.net: Just to add my 2c for the performance freaks. I've noticed that code generated by g++ 4.3.x was about 40-45% faster non-optimized when compared to previous versions of g++ (native linux platform). When optimizing code (-O3), 4.3 generated code that was 20% faster. This is probably the more relevant number for those that optimize their code anyway. Don't know about you, but I was impressed by 20% gain. If you already use g++ 4.3, pardon my interruption. But if you don't, you will be pleasantly surprised once you upgrade to it. Adrian Łukasz Lew wrote: mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
2009/4/21 Łukasz Lew lukasz@gmail.com Funny story: I have worse performance with g++-4.3 (20% as well) I probably overoptimized for g++-4.2 or something :) FYI g++4.4 is about to be released. it is already in experimental debian repository Lukasz 2009/4/21 Adrian Grajdeanu adria...@cox.net: Just to add my 2c for the performance freaks. I've noticed that code generated by g++ 4.3.x was about 40-45% faster non-optimized when compared to previous versions of g++ (native linux platform). When optimizing code (-O3), 4.3 generated code that was 20% faster. This is probably the more relevant number for those that optimize their code anyway. Don't know about you, but I was impressed by 20% gain. If you already use g++ 4.3, pardon my interruption. But if you don't, you will be pleasantly surprised once you upgrade to it. Adrian Łukasz Lew wrote: mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ Fedora 11 has MinGW-compiler with gcc 4.4. It's a pitty that not all the libraries are ported yet. https://fedoraproject.org/wiki/Fedora_11_Beta_release_notes#Windows_cross_compiler_.28mingw32-.2A.29 -- With kind regards, Ben Lambrechts Fedora Ambassador Fedora always leads and never follows ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
Ok, I have Mingw installed now. That sounds like the way to go. But I still don't know how to compile it :/ According to the SConstruct file, I should be doing something like this to build, but it complains: C:\Libego g++ /Fobuild\ego\dbg\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -fno-inline /nologo /Iego g++: /Fobuild\ego\dbg\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory In file included from ego\ego.h:27, from ego\ego.cpp:47: ego\gtp.h:73: warning: `class Gtp' has virtual functions but non-virtual destructor In file included from ego\ego.cpp:54: ego\player.cpp: In constructor `Player::Player()': ego\player.cpp:27: warning: converting of negative value `-0x1' to `uint' In file included from ego\ego.cpp:55: ego\color.cpp: In constructor `Color::Color()': ego\color.cpp:27: warning: converting of negative value `-0x1' to `uint' I also tried the build command for the optimized version: C:\Libego g++ /Fobuild\ego\opt\ego.obj /c ego\ego.cpp -DDEBUG -ggdb3 -Wall -Wextra -Wswitch-enum -O3 -march=native -fomit-frame-pointer -ffast-math -frename-registers /nologo /Iego g++: /Fobuild\ego\opt\ego.obj: No such file or directory g++: /c: No such file or directory g++: /nologo: No such file or directory g++: /Iego: No such file or directory ego\ego.cpp:1: error: bad value (native) for -march= switch ego\ego.cpp:1: error: bad value (native) for -mtune= switch Sorry for my ignorance. Łukasz Lew wrote: 2009/4/21 Łukasz Lew lukasz@gmail.com: mingw rules! I compiled libego with it and got a decent 32kpps / GHz ( native g++ was 44kpps / GHz) I used wine to run resulting exe on linux:) Lukasz 2009/4/21 Don Dailey dailey@gmail.com: I use mingw to produce cros platform executables. I can build executables for linux, win32 and win64, which for my chess program is a must since it's 64 bit. - Don On Tue, Apr 21, 2009 at 5:33 AM, Łukasz Lew lukasz@gmail.com wrote: On Tue, Apr 21, 2009 at 11:23, elife elife2...@gmail.com wrote: I forgot about cygwin indeed. It is a good idea. But can you ran the binary on a system without cygwin? We can run the binary on a system without cygwin if we provide cygwin1.dll. That is great. Another good idea is mingw. BTW I would like to recommend stackoverflow.com for programming questions. I asked this question there http://stackoverflow.com/questions/771756/what-is-the-difference-between-cygwin-and-mingw and got few good answers within a minute. Lukasz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
[computer-go] Digital Mars
I got Libego compiled to a Windows DLL using Visual Studio and was able to call it, but I was only getting around 5k pps on my Core2. So I wanted to try another compiler. Has anyone used the Digital Mars C++ compiler? Or is there another compiler I should try? ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Digital Mars
From my expirience on windows, the best results I had with Intel C++ compiler http://software.intel.com/en-us/articles/intel-c-compiler-professional-edition-for-windows-evaluation/ It had around 70%-90% of g++. Lukasz On Tue, Apr 21, 2009 at 03:18, Michael Williams michaelwilliam...@gmail.com wrote: I got Libego compiled to a Windows DLL using Visual Studio and was able to call it, but I was only getting around 5k pps on my Core2. So I wanted to try another compiler. Has anyone used the Digital Mars C++ compiler? Or is there another compiler I should try? ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/