question about smp and memory features
Posted: 23 Nov 2011, 19:45
When Crafty sends a feature string it sets smp to the number of allowable cores, and memory to the allowable memory size, like this:
But the Winboard protocol page here http://home.hccnet.nl/h.g.muller/engine-intf.html only mentions smp and memory being set to 1 if the engine supports this feature. So which is right? It does seem reasonable to me that the engine should be able to tell the UI what the allowable values are.
- Code: Select all
Print(4095, "feature ping=1 setboard=1 san=1 time=1 draw=1\n");
Print(4095, "feature sigint=0 sigterm=0 reuse=1 analyze=1\n");
Print(4095, "feature myname=\"Crafty-%s\" name=1\n", version);
Print(4095, "feature playother=1 colors=0 memory=%d\n", allow_memory);
#if (CPUS > 1)
Print(4095, "feature smp=%d\n", allow_cores);
#endif
Print(4095, "feature variants=\"normal,nocastle\"\n");
Print(4095, "feature done=1\n");
But the Winboard protocol page here http://home.hccnet.nl/h.g.muller/engine-intf.html only mentions smp and memory being set to 1 if the engine supports this feature. So which is right? It does seem reasonable to me that the engine should be able to tell the UI what the allowable values are.