aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/gendata_h48.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* C11 threads!Sebastiano Tronto2026-03-011-3/+3
|
* C11 threads?Sebastiano Tronto2026-03-011-4/+4
|
* Improve pruning value fetching and re-do benchmarksSebastiano Tronto2025-12-171-0/+21
|
* Swap bit pairs in pval_minSebastiano Tronto2025-12-161-5/+4
|
* Update commentsSebastiano Tronto2025-12-141-4/+3
|
* Cleanup, update documentation, fix examplesSebastiano Tronto2025-12-141-64/+57
|
* Bye bye h0k4Sebastiano Tronto2025-12-141-247/+8
|
* Intertwined table seems to workSebastiano Tronto2025-12-141-20/+51
|
* Wrapped pthread use in custom APISebastiano Tronto2025-08-111-35/+44
|
* All coordinates unsignedSebastiano Tronto2025-07-291-21/+21
|
* Cleanup some TODOsSebastiano Tronto2025-07-291-3/+3
|
* Fix small build error with clangSebastiano Tronto2025-05-281-1/+2
|
* Do all loggin in main threadSebastiano Tronto2025-05-231-9/+33
| | | | | | | | | | | | | | | | | Before this committ, the solver (via the generic solution-appender routines in src/solve/solutions.h) and the H48 data generator did some logging in the worker threads, without using any locks. This was not nice, but in practice it did not cause any problem, because the log messages were rare. However, this turned out to be a problem when building to WASM, because web workers do not have access to the main JS memory, and therefore they cannot call functions from the main JS. This includes not only the callback functions for logging, but also those for polling the status of the solver (run / pause / stop). This commit fixes this at the cost or being somewhat inelegant: the solutions are not logged as they are found, but only every 500ms.
* Refactored checkdataSebastiano Tronto2025-05-191-90/+0
| | | | | | | | Relevant changes include: - Changed the signature of nissy_checkdata(). - Removed expected_distribution.h from tools; this data is now included in each solver's src/ code. - Removed distribution check for cocsep; may add back later.
* Refactor solver dispatch and checkdataSebastiano Tronto2025-05-181-62/+24
|
* Added build scriptSebastiano Tronto2025-05-071-1/+1
|
* Always use unsigned char * for data buffersSebastiano Tronto2025-04-211-42/+48
| | | | | Before this commit I was inconsistently using one of void *, char * and uint8_t *.
* Improved logging, especially for solveSebastiano Tronto2025-04-191-21/+29
|
* Sped up checkdata for H48 tablesSebastiano Tronto2025-04-171-9/+49
|
* Some minor changes to the interface.Sebastiano Tronto2025-04-081-1/+1
| | | | | | | | | - Simplified logger to accept only a string, not a variadic list of args like printf(). This can still use some improvement, but now it is easier to use from other languages. - Fixed some misuses of the logger (wrong types etc) - Renamed some constants - Fixed some typos in comments.
* simplified allowedmoves logicSebastiano Tronto2025-04-011-2/+2
|
* More safety with pointers using VLA function parametersSebastiano Tronto2025-03-251-41/+20
|
* Some safety with move arrays, small refactor appendcharSebastiano Tronto2025-03-221-2/+2
|
* Added checkdata for coord EOSebastiano Tronto2025-03-141-0/+1
|
* Fixed alignment bugSebastiano Tronto2024-12-161-0/+6
|
* Merge the "solver-experiments" branch that I have been working on forSebastiano Tronto2024-12-071-16/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a few weeks. This include mainly three things: 1. Various tweaks for a total performance gain of around 30%. 2. Take into account symmetries and avoid repeated work. This required a re-work of the splitting into tasks before the solve. 3. Add a second fallback table (eoesep). This gives huge performance gains for particular scrambles (e.g. superflip). After merging this commit, remove and re-generate all pruning tables. Squashed commit of the following: commit 60f0705d2d69050e6a30581a2810f686d6f69b80 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Dec 7 16:06:48 2024 +0100 Fix indentation commit cc5d489a251812b6188c0ba264ac6cb2236f1afe Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Dec 7 15:56:19 2024 +0100 Updated documentation commit a3f605dd628546e52564f82b139feb473b0725f3 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Dec 7 14:01:11 2024 +0100 use eoesep table as second fallback commit c75e43c9116c64f97e92b0fe038be8a032925a72 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Dec 6 16:13:23 2024 +0100 First commit for gendata_eoesep commit fea7688ab8bdc5ae0c3480622e2510a3bcd39248 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Dec 3 17:31:00 2024 +0100 Add scramble to tool commit 66866cb71dea4ca8278ecb9e90ff4295771feb42 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Dec 3 17:22:59 2024 +0100 Added tool to check multiple solutions commit ef65611c772c3996bddca8d181da3538e0af1674 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Dec 3 17:16:20 2024 +0100 Write all solutions for symmetric positions commit e3ded26db7d7d4ae7c0e2488151ed14f581f7b8e Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Nov 26 09:14:54 2024 +0100 Added symmetry filter (TODO: print excluded solutions) commit 864c437a9751c58d58562650ca9eba4a9e6ad3eb Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Mon Nov 25 14:51:13 2024 +0100 Improved task split commit b88926d36d7ab0c64c5fe3bb954fd15d41267fba Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Nov 22 19:06:41 2024 +0100 Reworked tasks for multi-threading in view of symmetry filter commit 26fa653f97df8cd601aecb80eaf89f0a00e9ba9f Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 15:37:43 2024 +0100 Added transform move commit 19f655ef94d658eaa2fefb5cea3c167a3ec58db6 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 09:29:15 2024 +0100 Clarified doc commit 3b0fe1e5ef8b628854e30f0f0067300e2763c954 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 08:36:58 2024 +0100 Handle solved cube correctly commit 57705cbc4982e3abe97a36ed64871738d4f721c0 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 08:24:30 2024 +0100 Close file commit fc7d462b58bcf3d3a3fbf26c1f3bd04c640a4898 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 15:05:48 2024 +0100 Removed stats tool commit 359bf7cb49ef405ee76ed662207d47cb2abcc5a9 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 15:01:51 2024 +0100 Updated theory doc commit 39c315af562bc4ce896f41004388a4c34d475d37 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 14:51:40 2024 +0100 Remove unused constants commit 57a5d24538aa59a4df9221dad2f99e9f0286bd9d Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 10:20:38 2024 +0100 Add tool to solve scrambles from file commit 07e2918c216636891b1fa6adecc9756086a901e9 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Mon Oct 28 17:00:00 2024 +0100 Add make table to tool commit f5e5266c654eb027a5a35c57cc618555246f5e5e Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Mon Oct 28 09:35:49 2024 +0100 Remove old solver, other small things commit a1ec78025b7959dbb845213f7f4e6851ecebc204 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sun Oct 27 02:00:29 2024 +0200 Improvements commit 8eea23dbe888d923e662e24ae969130e2c67b999 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Oct 26 12:24:19 2024 +0200 Makefile fix commit 3fc3927beacc78971cefeb42da8d71fe6c015fc1 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Oct 25 18:25:09 2024 +0200 More performance gains commit 7b4efa1f9af9722de1ab9ccfc27899825a0d12c4 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Oct 25 15:53:20 2024 +0200 Alternative solver implementation, small performance gain
* Removed redundant coordinate computationSebastiano Tronto2024-10-161-16/+0
|
* Fallback tablesSebastiano Tronto2024-10-141-8/+36
|
* Make gendata and co safer by checking buffer sizeSebastiano Tronto2024-10-121-59/+61
|
* Small warning fixes to gendataSebastiano Tronto2024-10-101-3/+10
|
* Removed some useless outputSebastiano Tronto2024-10-061-6/+2
|
* Fix concurrency issuesSebastiano Tronto2024-10-061-41/+50
| | | | | So I did not have any misconception about Atomics, I just could not apply it where I did because the logic doesn't allow for it.
* Remove unnecessary _AtomicsSebastiano Tronto2024-10-051-20/+28
|
* Merge branch 'master' of tronto.net:h48Sebastiano Tronto2024-10-051-0/+31
|\
| * Added expected distributionsSebastiano Tronto2024-10-051-0/+31
| |
* | Fix rare data raceSebastiano Tronto2024-10-051-23/+22
|/ | | | | | I had some misconception about how _Atomic and const worked. This means the previous commit (expected distribution) could be incorrect.
* Avoid repeating typedefs in testsSebastiano Tronto2024-10-041-73/+0
|
* Remove more locksSebastiano Tronto2024-10-031-23/+19
|
* Removed useless lockSebastiano Tronto2024-10-031-9/+1
|
* Improve gendata performance by replacing locks with atomic operationsSebastiano Tronto2024-10-031-50/+41
|
* oopsieSebastiano Tronto2024-09-271-1/+1
|
* Made table derivation tool more flexibleSebastiano Tronto2024-09-271-8/+11
| | | | | | | | | | So apparently my RAM is broken. That took me a while to figure out. While I get a replacement, I have to restrict myself to a weaker test for the intermediate tables: instead of deriving them from the huge table and checking that they are the same, I have to derive a small h0k2 table from the intermediate ones and check that it is correct. This is not a 100% proof of correctness, but it is good enough (and much faster).
* Use constant instead of magic numberSebastiano Tronto2024-09-271-12/+8
|
* Merge branch 'master' of tronto.net:h48Sebastiano Tronto2024-09-271-1/+23
|\
| * Added checkdata functionSebastiano Tronto2024-09-261-1/+23
| |
* | First try for derive tablesSebastiano Tronto2024-09-271-7/+88
|/
* Added comment on performance issueSebastiano Tronto2024-09-201-0/+13
|
* Simplified code for h4k0Sebastiano Tronto2024-09-201-87/+42
|
* Fix regressionSebastiano Tronto2024-09-191-4/+4
|
* cleanupSebastiano Tronto2024-09-191-65/+2
|

Generated with cgit - Back to sebastiano.tronto.net