mikepound / cubes

This code calculates all the variations of 3D polycubes for any size (time permitting!)
MIT License
163 stars 43 forks source link

RUST Compile optimisations built on the excellent work of others. Linux & Windows. With a RUST setup guide for Windows #28

Open HakMe2Deth opened 7 months ago

HakMe2Deth commented 7 months ago

Expanding on some great work done by other contributors, I created a few optimisations for the RUST implementations

e.g.

  1. Additional compile options for RUST in Linux based on @dzamlo native cpu script - https://gitlab.com/dzamlo/polycubes2
  2. Linux and Windows RUST implementation using the script by @pbj4 - https://github.com/pbj4/polycubes
  3. Additional steps on Linux to setup a ram disk, copy the project to it run in ram
  4. Windows batch script for RUST converted on the above
  5. RUST install for Windows tutorial

Note: When compiling I found that AMD processors where more efficient than Intel. Although I only had two systems to test. My personal PC with an AMD R7 5700X (8C/16T) overclocked and an Intel XEON Silver 4210 (10C/20T) but that may be down to processor clock speed.

There were a few more contributors such as @hidny that inspired ideas.

My guides are at https://github.com/pbj4/polycubes/issues/1 Main thread where I posted some timings while going through the compile optimisations - https://github.com/mikepound/opencubes/issues/52

Hope this helps

Tony