Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 2.28 KB

README.md

File metadata and controls

36 lines (24 loc) · 2.28 KB

RakeSearch Rank 10

Rake search of Diagonal Latin Squares Rank 10

Compilation

Application is compiled using gcc and make. Windows version is compiled using MinGW gcc crosscompiler.

To compile everything, you must have BOINC client libraries. Make sure you compile them using the same gcc version as this app, otherwise you may get link errors.

When compiling app for x86/x86_64, you will need gcc 9.x (I used gcc 9.3). Older gcc versions may not support some options used in Makefile.

To compile app, enter RakeSearchV3/RakeDiagSearchV3/RakeDiagSearchV3 directory first. Open Makefile and update BOINC_DIR variable for selected target, so it will point to place where you have BOINC client library and its include files. You may also update name or path to compiler/crosscompiler - Makefile assumes that it is somewhere in PATH environment variable. After doing so, type make to start compilation.

Makefile supports number of extra parameters. Here are ones used for x86 and x86_64:

  • SSE2=1 - enable SSE2 instructions (x86 and x86_64)
  • SSSE3=1 - enable SSSE3 instructions (x86 and x86_64)
  • AVX=1 - enable AVX instructions (x86_64 only)
  • AVX2=1 - enable AVX2 and BMI1/2 instructions (x86_64 only)
  • AVX512=1 - enable AVX512 instructions (x86_64 only)

Note: SSE2 is always enabled on x86_64, support for it is part of AMD64 specification.

When compiling for ARMv7, you can enable NEON instruction by using NEON=1 parameter. AARCH64 supports it by default, so no need to explicitly enable it.

You can also specify target platform:

  • M32=1 - compile 32-bit app version (used for Linux app)
  • MinGW64=1 - compile 64-bit app for Windows using MinGW crosscompiler
  • MinGW32=1 - compile 32-bit app for Windows using MinGW crosscompiler
  • AARCH64=1 - compile 64-bit app for Linux using AARCH64 crosscompiler
  • ARM=1 - compile 32-bit app for Linux using ARMv7 crosscompiler
  • ARMv6=1 - compile 32-bit app for Linux using ARMv6 crosscompiler

When compiling for ARM or AARCH64 using native compiler, no extra options are needed. You can only add NEON=1 to enable NEON for ARMv7.

It is also possible to disable SIMD instructions with NOSIMD=1 parameter. This may be handy if you want to disable SIMD instructions on platform which always have them enabled - namely SSE2 on x86_s64, NEON on ARM64.