Life In 19x19
http://lifein19x19.com/

Rayon (rn-3.9) is the strongest open source go AI
http://lifein19x19.com/viewtopic.php?f=18&t=14017
Page 3 of 5

Author:  Shoreline [ Thu Feb 23, 2017 8:41 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

I got an alert from the author that Rn.3.10.2 windows binary version is available for download. But it requires GPU

Author:  Gomoto [ Thu Feb 23, 2017 8:49 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

Can you provide the link to the binary? Thanks.

Author:  as0770 [ Thu Feb 23, 2017 8:54 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

Shoreline wrote:
as0770 wrote:
Shoreline wrote:
Here is source link:
https://github.com/zakki/Ray


When I compile this it says it is version 8.0.1, the same as a compile from one year ago.


There is link "6 releases", pick the latest one, rn3.10, which was released just couple of days ago



Thanks but it won't compile:

g++ -O3 -Wall -std=c++11 -g -c src/UctSearch.cpp -o src/UctSearch.o
src/UctSearch.cpp:39:18: fatal error: Eval.h: Datei oder Verzeichnis nicht gefunden
#include "Eval.h"
^
compilation terminated.

Author:  roy7 [ Thu Feb 23, 2017 8:56 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

Gomoto wrote:
Can you provide the link to the binary? Thanks.


https://github.com/zakki/Ray/releases

Author:  roy7 [ Thu Feb 23, 2017 8:57 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

as0770 wrote:
Thanks but it won't compile:

g++ -O3 -Wall -std=c++11 -g -c src/UctSearch.cpp -o src/UctSearch.o
src/UctSearch.cpp:39:18: fatal error: Eval.h: Datei oder Verzeichnis nicht gefunden
#include "Eval.h"
^
compilation terminated.


You have to download the CNTK as well and add the cntk/Include directory to the includes path when compiling. Either add to your PATH in general or add
Code:
-I /path/to/cntk/Include
When you link at the end you'll need to add cntk/ctnk/EvalDll.dll (I think it was called) to the list of objects on the file command make does.

Author:  Gomoto [ Thu Feb 23, 2017 9:55 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

Thanks for the link, i use it just now to play with Drago. I can use the gtp window to show win percentages and to suggest moves ("genmove b" or "genmove w" for example).

Are there any options to show alternative moves and win percentages in the gtp output available?
Or are there any other hidden analysis features available already?

Dear Rayon developers,

thanks for your outstanding work on this engine. It is very nice to have such a strong open source engine available. I am looking forward to analyze my games with your engine. And it even makes sense to develop some custom tools for analyzing because the engine is open source :-)

Regards
Gomoto

Author:  kdbaby1412 [ Thu Feb 23, 2017 11:15 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

Can ypu post an instruction on how to compile? Cause I'm unable to compile it.
Is there a way to run this on an engine like Drago or fuego?

Author:  as0770 [ Fri Feb 24, 2017 5:56 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

roy7 wrote:
as0770 wrote:
Thanks but it won't compile:

g++ -O3 -Wall -std=c++11 -g -c src/UctSearch.cpp -o src/UctSearch.o
src/UctSearch.cpp:39:18: fatal error: Eval.h: Datei oder Verzeichnis nicht gefunden
#include "Eval.h"
^
compilation terminated.


You have to download the CNTK as well and add the cntk/Include directory to the includes path when compiling. Either add to your PATH in general or add
Code:
-I /path/to/cntk/Include
When you link at the end you'll need to add cntk/ctnk/EvalDll.dll (I think it was called) to the list of objects on the file command make does.


Thanks, but I still have problems. After downloading cntk I get this error:

src/UctSearch.cpp: In function ‘void ParallelUctSearch(thread_arg_t*)’:
src/UctSearch.cpp:1263:15: error: ‘atomic_int64_t’ in namespace ‘std’ does not name a type
static std::atomic_int64_t queue_full;
^
src/UctSearch.cpp:1281:25: error: ‘queue_full’ was not declared in this scope
std::atomic_fetch_add(&queue_full, 1);
^
I can remove the function:

void
ParallelUctSearch(thread_arg_t *arg)
{
}

And get the next error:

/home/alex/Programme/Engines/Go/Rayon/src/UctSearch.cpp:2070: Nicht definierter Verweis auf `GetEvalF'

I can fix this by:

// GetEvalF(&nn_model);

And it compiles but of course it don't work:

./ray
Init CNTK
Get EvalModel failed

Author:  zakki [ Fri Feb 24, 2017 6:26 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

Perhaps you need to link libeval like
Code:
-L<cntk lib dir> -leval
.

Author:  roy7 [ Fri Feb 24, 2017 6:57 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

as0770 wrote:
Thanks, but I still have problems. After downloading cntk I get this error:

src/UctSearch.cpp: In function ‘void ParallelUctSearch(thread_arg_t*)’:
src/UctSearch.cpp:1263:15: error: ‘atomic_int64_t’ in namespace ‘std’ does not name a type
static std::atomic_int64_t queue_full;
^
src/UctSearch.cpp:1281:25: error: ‘queue_full’ was not declared in this scope
std::atomic_fetch_add(&queue_full, 1);


See my comments here:

viewtopic.php?p=216681#p216681

Author:  as0770 [ Fri Feb 24, 2017 8:50 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

zakki wrote:
Perhaps you need to link libeval like
Code:
-L<cntk lib dir> -leval
.


Then I get this:

Code:
alex@alex-Aspire-VN7-791:~/Downloads/Ray-rn-2.3$ make
g++ -O3 -Wall -std=c++11 -g -o ray src/Command.o src/DynamicKomi.o src/GoBoard.o src/Gtp.o src/Ladder.o src/Message.o src/Nakade.o src/Pattern.o src/PatternHash.o src/Point.o src/Rating.o src/RayMain.o src/Semeai.o src/Simulation.o src/UctRating.o src/UctSearch.o src/Utility.o src/ZobristHash.o -lm -pthread -L/home/alex/Downloads/cntk/cntk/lib -leval
/usr/bin/ld: warning: libcudart.so.8.0, needed by /home/alex/Downloads/cntk/cntk/lib/libeval.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libiomp5.so, needed by /home/alex/Downloads/cntk/cntk/lib/libeval.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcntkmath.so, needed by /home/alex/Downloads/cntk/cntk/lib/libeval.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libmultiverso.so, needed by /home/alex/Downloads/cntk/cntk/lib/libeval.so, not found (try using -rpath or -rpath-link)
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::Matrix<double>::CopyColumnsStrided(Microsoft::MSR::CNTK::Matrix<double> const&, unsigned long, unsigned long, unsigned long)'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `cudaGetDevice'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::Matrix<double>::operator()(unsigned long, unsigned long)'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::Matrix<float>::AssignRowSliceValuesOf(Microsoft::MSR::CNTK::Matrix<float> const&, unsigned long, unsigned long)'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::Matrix<float>::InplaceSoftThreshold(float)'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::Matrix<float>::Reset()'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::ProfilerTimeEnd(long long, int)'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `cudaDeviceSynchronize'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::Matrix<float>::AddScaledDifference(Microsoft::MSR::CNTK::Matrix<float> const&, Microsoft::MSR::CNTK::Matrix<float> const&, Microsoft::MSR::CNTK::Matrix<float> const&, Microsoft::MSR::CNTK::Matrix<float>&)'
.
.
.
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::Matrix<float>::AddElementToElement(Microsoft::MSR::CNTK::Matrix<float> const&, unsigned long, unsigned long, Microsoft::MSR::CNTK::Matrix<float>&, unsigned long, unsigned long)'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::File::operator>>(std::string&)'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::CUDAPageLockedMemAllocator::CUDAPageLockedMemAllocator(int)'
/home/alex/Downloads/cntk/cntk/lib/libeval.so: Nicht definierter Verweis auf `Microsoft::MSR::CNTK::Matrix<double>::Write(Microsoft::MSR::CNTK::File&) const'
collect2: error: ld returned 1 exit status
Makefile:22: die Regel für Ziel „ray“ scheiterte
make: *** [ray] Fehler 1
alex@alex-Aspire-VN7-791:~/Downloads/Ray-rn-2.3$


:sad:

Author:  roy7 [ Fri Feb 24, 2017 8:53 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

as0770 wrote:
[code]alex@alex-Aspire-VN7-791:~/Downloads/Ray-rn-2.3$ make
g++ -O3 -Wall -std=c++11 -g -o ray src/Command.o src/DynamicKomi.o src/GoBoard.o src/Gtp.o src/Ladder.o src/Message.o src/Nakade.o src/Pattern.o src/PatternHash.o src/Point.o src/Rating.o src/RayMain.o src/Semeai.o src/Simulation.o src/UctRating.o src/UctSearch.o src/Utility.o src/ZobristHash.o -lm -pthread -L/home/alex/Downloads/cntk/cntk/lib -leval


Instead of adding the -L and the -leval, I just moved EvalDll.dll to the build directory and did this:

g++ -O3 -Wall -std=c++11 -g -o ray src/Command.o src/DynamicKomi.o src/GoBoard.o src/Gtp.o src/Ladder.o src/Message.o src/Nakade.o src/Pattern.o src/PatternHash.o src/Point.o src/Rating.o src/RayMain.o src/Semeai.o src/Simulation.o src/UctRating.o src/UctSearch.o src/Utility.o src/ZobristHash.o EvalDll.dll -lm -pthread

Author:  as0770 [ Fri Feb 24, 2017 9:13 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

roy7 wrote:
as0770 wrote:
[code]alex@alex-Aspire-VN7-791:~/Downloads/Ray-rn-2.3$ make
g++ -O3 -Wall -std=c++11 -g -o ray src/Command.o src/DynamicKomi.o src/GoBoard.o src/Gtp.o src/Ladder.o src/Message.o src/Nakade.o src/Pattern.o src/PatternHash.o src/Point.o src/Rating.o src/RayMain.o src/Semeai.o src/Simulation.o src/UctRating.o src/UctSearch.o src/Utility.o src/ZobristHash.o -lm -pthread -L/home/alex/Downloads/cntk/cntk/lib -leval


Instead of adding the -L and the -leval, I just moved EvalDll.dll to the build directory and did this:

g++ -O3 -Wall -std=c++11 -g -o ray src/Command.o src/DynamicKomi.o src/GoBoard.o src/Gtp.o src/Ladder.o src/Message.o src/Nakade.o src/Pattern.o src/PatternHash.o src/Point.o src/Rating.o src/RayMain.o src/Semeai.o src/Simulation.o src/UctRating.o src/UctSearch.o src/Utility.o src/ZobristHash.o EvalDll.dll -lm -pthread



Doesn't work for me, same error messages... :sad:

Author:  Claes1981 [ Fri Feb 24, 2017 10:20 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

as0770 wrote:
Doesn't work for me, same error messages... :sad:

If you compile on Linux, maybe you need to compile CNTK too, as bihonglu writes he has done in the first post here: https://github.com/zakki/Ray/issues/5.

Author:  as0770 [ Fri Feb 24, 2017 12:35 pm ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

Claes1981 wrote:
as0770 wrote:
Doesn't work for me, same error messages... :sad:

If you compile on Linux, maybe you need to compile CNTK too, as bihonglu writes he has done in the first post here: https://github.com/zakki/Ray/issues/5.


In the meantime I was able to compile ray with: -L/home/alex/Downloads/cntk/cntk/lib -L/home/alex/Downloads/cntk/cntk/dependencies/lib -leval

I downloaded the bin version of cntk and used the install script, my problem was that I have to "activate" cntk before compiling...

Code:
alex@alex-Aspire-VN7-791:~/Downloads/Ray-rn-2.3$ source "/home/alex/Downloads/cntk/activate-cntk"

************************************************************
CNTK is activated.

Please checkout tutorials and examples here:
  /home/alex/Downloads/cntk/Tutorials
  /home/alex/Downloads/cntk/Examples

************************************************************
(/home/alex/anaconda3/envs/cntk-py35) alex@alex-Aspire-VN7-791:~/Downloads/Ray-rn-2.3$ make
g++ -O3 -Wall -std=c++11 -g -o ray src/Command.o src/DynamicKomi.o src/GoBoard.o src/Gtp.o src/Ladder.o src/Message.o src/Nakade.o src/Pattern.o src/PatternHash.o src/Point.o src/Rating.o src/RayMain.o src/Semeai.o src/Simulation.o src/UctRating.o src/UctSearch.o src/Utility.o src/ZobristHash.o -lm -pthread -L/home/alex/Downloads/cntk/cntk/lib -L/home/alex/Downloads/cntk/cntk/dependencies/lib -leval
(/home/alex/anaconda3/envs/cntk-py35) alex@alex-Aspire-VN7-791:~/Downloads/Ray-rn-2.3$


When I started ray I got this kind of error messages:

Code:
./ray: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory


I copied the libraries to the /lib directory and now I am stuck with this error:

Code:
./ray
Init CNTK
terminate called after throwing an instance of 'Microsoft::MSR::CNTK::ExceptionWithCallStack<std::runtime_error>'
  what():  unmatched bracket found in parameters
Abgebrochen (Speicherabzug geschrieben)
(/home/alex/anaconda3/envs/cntk-py35)


Now I am tired and go to bed, maybe I have more luck tomorrow :)

Author:  ez4u [ Sat Feb 25, 2017 7:22 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

Gomoto wrote:
Thanks for the link, i use it just now to play with Drago. I can use the gtp window to show win percentages and to suggest moves ("genmove b" or "genmove w" for example).

Are there any options to show alternative moves and win percentages in the gtp output available?
Or are there any other hidden analysis features available already?

Dear Rayon developers,

thanks for your outstanding work on this engine. It is very nice to have such a strong open source engine available. I am looking forward to analyze my games with your engine. And it even makes sense to develop some custom tools for analyzing because the engine is open source :-)

Regards
Gomoto

How did you add it to drago? What does your engines.config look like? I downloaded the binary and then cntk (based on the readme) but I don't have any success with drago, gogui, or just trying to run Rn.3.10.2.exe in a command window. :-(

Author:  kdbaby1412 [ Sat Feb 25, 2017 7:04 pm ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

ez4u wrote:
Gomoto wrote:
Thanks for the link, i use it just now to play with Drago. I can use the gtp window to show win percentages and to suggest moves ("genmove b" or "genmove w" for example).

Are there any options to show alternative moves and win percentages in the gtp output available?
Or are there any other hidden analysis features available already?

Dear Rayon developers,

thanks for your outstanding work on this engine. It is very nice to have such a strong open source engine available. I am looking forward to analyze my games with your engine. And it even makes sense to develop some custom tools for analyzing because the engine is open source :-)

Regards
Gomoto

How did you add it to drago? What does your engines.config look like? I downloaded the binary and then cntk (based on the readme) but I don't have any success with drago, gogui, or just trying to run Rn.3.10.2.exe in a command window. :-(


Same. I'm still trying to compile this thing

Author:  daal [ Sun Feb 26, 2017 12:30 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

Wake me up when I can buy it.

Author:  Gomoto [ Sun Feb 26, 2017 2:43 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

How to play with Drago:

Binary for Win 64 & Nvidia GPU:

https://github.com/zakki/Ray/releases

Add the engine manually after adding this to the engines config file in the Drago directory:

[Ray]
url = https://github.com/zakki/Ray/releases
connection = not.required
level = not.handled
boardsize = not.required
chinese.rules = not.required
japanese.rules = not.handled
time.per.move = not.handled
total.time = not.handled
overtime = not.handled

This are just the settings I am using, not the optimal settings. Drago can pass commandline options to the engine. And you can use the GTP window too.

Regards
Gomoto

Author:  kdbaby1412 [ Sun Feb 26, 2017 10:15 am ]
Post subject:  Re: Rayon (rn-3.9) is the strongest open source go AI

Gomoto wrote:
How to play with Drago:

Binary for Win 64 & Nvidia GPU:

https://github.com/zakki/Ray/releases

Add the engine manually after adding this to the engines config file in the Drago directory:

[Ray]
url = https://github.com/zakki/Ray/releases
connection = not.required
level = not.handled
boardsize = not.required
chinese.rules = not.required
japanese.rules = not.handled
time.per.move = not.handled
total.time = not.handled
overtime = not.handled

This are just the settings I am using, not the optimal settings. Drago can pass commandline options to the engine. And you can use the GTP window too.

Regards
Gomoto


Is there the way to optimize this engine on i7 computer? I tried but it's failed. Anyway, thanks for the guidelines

Page 3 of 5 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/