Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a categorical tuner #3955

Merged
merged 7 commits into from
Apr 28, 2021

Conversation

DavidPoliakoff
Copy link
Contributor

So, this adds another class of tuning problems, one I think will be helpful for users. I did something similar in Kokkos Kernels a while back, but I think it makes sense in Kokkos. Basically, Tuning currently supports sets and ranges of int64_t, double, and char* (string). But what if I want to pick among a set of ComplicatedCPPClass? This adds an implementation for exactly that case. You pass in a vector of ComplicatedCPPClass, and on begin the tuner hands you an instance of such a class (well, a cref to one), and begins a tuning context. On end, the, tuning context is ended. If no tool is loaded, the zeroth element of the vector is treated as the default

Basically everybody is going to have to write this code at some point, I've already written it in a couple of test harnesses, I think we should just provide it.

Note that I added a test, but there's minimal real testing happening without a tool, we just verify that we don't crash an application in the absence of a tool. Which is necessary, but probably not sufficient :)

# Conflicts:
#	core/unit_test/CMakeLists.txt
@crtrott crtrott merged commit d4ed86f into kokkos:develop Apr 28, 2021
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.

None yet

2 participants