Where to find CFish 11 Latest exe file

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Where to find CFish 11 Latest exe file

Post by MikeB »

ehas wrote: Mon Jul 06, 2020 3:43 am
syzygy wrote: Sun Jul 05, 2020 10:53 pm
ehas wrote: Sun Jul 05, 2020 5:08 am Is there a site wherein we can download latest exe?
https://github.com/syzygy1/Cfish/releas ... h_11_fixed

I've just uploaded two binaries, one for Linux and one for Windows. They should work on Haswell and later. They are BMI2 versions, so won't work great on Ryzen.

Tell me what you need and I will see what I can do.
It would be great if we can have for AMD Cpu's also. I'm currently using an AMD processor.

Thank you in advance.
For AMD Threadrippers ,-has -bmi flag , but no -bmi2. If it works, great! , if not sayonara.


https://github.com/MichaelB7/Cfish/tree/private/src (exe is in src folder)

Code: Select all

cfish  bench >/dev/null
===========================
Total time (ms) : 1611
Nodes searched  : 4431626
Nodes/second    : 2750854
ymmv
Image
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Where to find CFish 11 Latest exe file

Post by syzygy »

ehas wrote: Mon Jul 06, 2020 3:43 am
syzygy wrote: Sun Jul 05, 2020 10:53 pm
ehas wrote: Sun Jul 05, 2020 5:08 am Is there a site wherein we can download latest exe?
https://github.com/syzygy1/Cfish/releas ... h_11_fixed

I've just uploaded two binaries, one for Linux and one for Windows. They should work on Haswell and later. They are BMI2 versions, so won't work great on Ryzen.

Tell me what you need and I will see what I can do.
It would be great if we can have for AMD Cpu's also. I'm currently using an AMD processor.
Ryzen?

edit: Then I guess MikeB's compile should work. I will add it to the Release page later today. (Thanks MikeB!)
maxdeg
Posts: 229
Joined: Thu Mar 10, 2016 6:17 pm
Location: Canada

Re: Where to find CFish 11 Latest exe file

Post by maxdeg »

:D
Mac version please !
Somebody !
:D
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Where to find CFish 11 Latest exe file

Post by MikeB »

maxdeg wrote: Mon Jul 06, 2020 4:24 pm :D
Mac version please !
Somebody !
:D
Max you can find some here
https://github.com/MichaelB7/Cfish/tree/master/src

Bonth clang and gcc - gcc are the fastest for me - clang is the most compatible with other users. Strangely, the Popcnt version is now fastest on my bmi2 CPU mac. I also updated the source in type.h so that they can compile on the macOS if one was having issues before. Sorry that the diff in Github showed everything a being changed - not sure what happened there.

I had to add size_t and long to the max, min and clamp functions to compile on macOS -:

#define MAX(T) INLINE T max_##T(T a, T b) { return a > b ? a : b; }
MAX(int)
MAX(uint64_t)
MAX(unsigned)
MAX(int64_t)
MAX(uint8_t)
MAX(double)
MAX(size_t)
MAX(long)
#undef MAX

#define MIN(T) INLINE T min_##T(T a, T b) { return a < b ? a : b; }
MIN(int)
MIN(uint64_t)
MIN(unsigned)
MIN(int64_t)
MIN(uint8_t)
MIN(double)
MIN(size_t)
MIN(long)
#undef MIN

#define CLAMP(T) INLINE T clamp_##T(T a, T b, T c) { return a < b ? b : a > c ? c : a; }
CLAMP(int)
CLAMP(uint64_t)
CLAMP(unsigned)
CLAMP(int64_t)
CLAMP(uint8_t)
CLAMP(double)
CLAMP(size_t)
CLAMP(long)
#undef CLAMP

#define max(a,b) _Generic((a), \
int: max_int, \
uint64_t: max_uint64_t, \
unsigned: max_unsigned, \
int64_t: max_int64_t, \
uint8_t: max_uint8_t, \
double: max_double, \
size_t: max_size_t, \
long: max_long \
) (a,b)

#define min(a,b) _Generic((a), \
int: min_int, \
uint64_t: min_uint64_t, \
unsigned: min_unsigned, \
int64_t: min_int64_t, \
uint8_t: min_uint8_t, \
double: min_double, \
size_t: min_size_t, \
long: min_long \
) (a,b)

#define clamp(a,b,c) _Generic((a), \
int: clamp_int, \
uint64_t: clamp_uint64_t, \
unsigned: clamp_unsigned, \
int64_t: clamp_int64_t, \
uint8_t: clamp_uint8_t, \
double: clamp_double, \
size_t: clamp_size_t, \
long: clamp_long \
) (a,b,c)
Image
maxdeg
Posts: 229
Joined: Thu Mar 10, 2016 6:17 pm
Location: Canada

Re: Where to find CFish 11 Latest exe file

Post by maxdeg »

MikeB wrote: Mon Jul 06, 2020 6:58 pm
Max you can find some here
https://github.com/MichaelB7/Cfish/tree/master/src

Thank you very much Mike .. :D
+3
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Where to find CFish 11 Latest exe file

Post by syzygy »

syzygy wrote: Mon Jul 06, 2020 10:11 am
ehas wrote: Mon Jul 06, 2020 3:43 am
syzygy wrote: Sun Jul 05, 2020 10:53 pm
ehas wrote: Sun Jul 05, 2020 5:08 am Is there a site wherein we can download latest exe?
https://github.com/syzygy1/Cfish/releas ... h_11_fixed

I've just uploaded two binaries, one for Linux and one for Windows. They should work on Haswell and later. They are BMI2 versions, so won't work great on Ryzen.

Tell me what you need and I will see what I can do.
It would be great if we can have for AMD Cpu's also. I'm currently using an AMD processor.
Ryzen?

edit: Then I guess MikeB's compile should work. I will add it to the Release page later today. (Thanks MikeB!)
It seems MikeB's compile corresponds to current master, not to Cfish 11.
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Where to find CFish 11 Latest exe file

Post by syzygy »

MikeB wrote: Mon Jul 06, 2020 6:58 pm I had to add size_t and long to the max, min and clamp functions to compile on macOS -:
That's interesting. Apparently some types are defined differently on macOS.
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Where to find CFish 11 Latest exe file

Post by syzygy »

syzygy wrote: Mon Jul 06, 2020 10:11 am Ryzen?
I've added eight Ryzen compiles: zen1/zen2, magic/avx2, windows/linux.

My guess is that there is no real speed difference between zen1 and zen2 and that the avx2 versions are a bit slower. However, it would be interesting if people could test this.
JManion
Posts: 205
Joined: Wed Dec 23, 2009 8:53 am

Re: Where to find CFish 11 Latest exe file

Post by JManion »

Are you going to do a Popcnt windows version? I did not see it on the list.

Thanks again for all the hard work!
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Where to find CFish 11 Latest exe file

Post by MikeB »

syzygy wrote: Tue Jul 07, 2020 12:04 am
syzygy wrote: Mon Jul 06, 2020 10:11 am
ehas wrote: Mon Jul 06, 2020 3:43 am
syzygy wrote: Sun Jul 05, 2020 10:53 pm
ehas wrote: Sun Jul 05, 2020 5:08 am Is there a site wherein we can download latest exe?
https://github.com/syzygy1/Cfish/releas ... h_11_fixed

I've just uploaded two binaries, one for Linux and one for Windows. They should work on Haswell and later. They are BMI2 versions, so won't work great on Ryzen.

Tell me what you need and I will see what I can do.
It would be great if we can have for AMD Cpu's also. I'm currently using an AMD processor.
Ryzen?

edit: Then I guess MikeB's compile should work. I will add it to the Release page later today. (Thanks MikeB!)
It seems MikeB's compile corresponds to current master, not to Cfish 11.
Sorry - I just assumed folks would want the latest and greatest. Did not give it much thought. When I have some time, I will build some 11's.
Image