Sacha Ligthert sacha
sacha commented on issue golang/sudoku-funpark#10 2025-01-27 00:13:35 +01:00
Splitting the workload

Done with 74f1fb63e1 This was a fun one.

sacha pushed to trunk at golang/sudoku-funpark 2025-01-27 00:13:05 +01:00
74f1fb63e1 Have the ability to do partial workloads.
sacha commented on issue golang/sudoku-funpark#10 2025-01-26 22:20:46 +01:00
Splitting the workload

This worked like a charm.

package main

import "fmt"

func main() {
	var tasks int = 159203
	var split int = 6
	var tracker int

	agents := make([]int, split)

	for tasks != 0…
sacha opened issue golang/sudoku-funpark#11 2025-01-26 02:26:04 +01:00
Start with Gitea Actions
sacha commented on issue golang/sudoku-funpark#10 2025-01-26 02:17:32 +01:00
Splitting the workload

https://go.dev/play/p/GqX8a_vdkNd

package main

import (
	"fmt"
	"math"
	"strconv"
)

func main() {
	var tasks int = 159203
	var split int = 6
	var even_split float64

	even_sp…
sacha commented on issue golang/sudoku-funpark#10 2025-01-26 01:40:27 +01:00
Splitting the workload

First iteration would be just dealing with the first row.

  1. Check if the first row can be split up. If not, exit.
  2. Check if the first row can be divided by the workload:
  • If it can be…
sacha opened issue golang/sudoku-funpark#10 2025-01-26 00:29:12 +01:00
Splitting the workload
sacha pushed to trunk at golang/sudoku-funpark 2025-01-25 19:45:55 +01:00
a7feb7101a precommit
sacha pushed to trunk at golang/sudoku-funpark 2025-01-25 19:45:36 +01:00
28ecc74d7a Allows setting of cores to use (sorta fixes #8)
sacha closed issue golang/sudoku-funpark#8 2025-01-25 19:45:36 +01:00
Manage Go Routines
sacha closed issue golang/sudoku-funpark#9 2025-01-25 19:26:24 +01:00
Look into usage of Atomic package
sacha commented on issue golang/sudoku-funpark#9 2025-01-25 19:26:24 +01:00
Look into usage of Atomic package

This is working miracles.

sacha pushed to trunk at golang/sudoku-funpark 2025-01-25 19:08:34 +01:00
6d6db0ed28 #9 Make use of the Atomic package to keep track of solver.counter.
sacha opened issue golang/sudoku-funpark#9 2025-01-25 18:46:13 +01:00
Look into usage of Atomic package
sacha pushed to trunk at golang/sudoku-funpark 2025-01-25 17:54:22 +01:00
53953cf47c Fixing a leftover of #6, refactored to int64.
sacha closed issue golang/sudoku-funpark#7 2025-01-25 17:33:19 +01:00
Fix end-state (allow searches to finish)
sacha commented on issue golang/sudoku-funpark#7 2025-01-25 17:33:19 +01:00
Fix end-state (allow searches to finish)

This commit should fix the end-state issue. But it seems #6 ruined the estimation for long running estimations (rates seem to be off, halved).

sacha pushed to trunk at golang/sudoku-funpark 2025-01-25 17:32:14 +01:00
acf6ad1bb9 #7 (Should) fix end-state issue.
sacha commented on issue golang/sudoku-funpark#7 2025-01-25 14:45:52 +01:00
Fix end-state (allow searches to finish)

for solver.iter != solver.counter {} never works. For some reason the counter never reaches iter, making this a while true. Due to how if track <= int(percentage) {} is setup and all the…

sacha closed issue golang/sudoku-funpark#6 2025-01-25 14:35:22 +01:00
Improve estimation algorithm