Skip to content

Conversation

@stijnh
Copy link
Member

@stijnh stijnh commented Jun 18, 2025

Previously, CostFunc would return -inf when object_higher_is_better==True. However, all search strategies implicitly assume that lower is better.

stijnh added 2 commits June 18, 2025 15:14
Previously, `CostFunc` would return `-inf` when `object_higher_is_better==True`.
However, all search strategies implicitly assume that lower is better.
…aling, as it is already done by `CostFunc`
@benvanwerkhoven
Copy link
Collaborator

Great catch! This is indeed a bug.

When we fix this, we also need to change this line:
https://github.com/KernelTuner/kernel_tuner/blob/master/kernel_tuner/strategies/simulated_annealing.py#L90
Perhaps it should even just ask costfunc for what the error value is, to avoid the two drifting away.

@sonarqubecloud
Copy link

@benvanwerkhoven benvanwerkhoven merged commit 57d853a into master Jun 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants