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

Hip: fix template deduction #3393

Merged
merged 2 commits into from
Sep 17, 2020
Merged

Conversation

lucbv
Copy link
Contributor

@lucbv lucbv commented Sep 17, 2020

Casting inputs parameters for std::min to get successful template deduction, see issue #3386.
Added a small test that exemplifies the failure mode in first commit, second commit fixes the test.

Basically adding a reproducer for a bug in Kokkos_HIP_Parallel_Range.hpp
A call to std::min does not deduce template because of two different
types in input arguments.
Fixing a few issues with std::min calls that won't deduce templates
properly when policy::index_type=long.
@dalg24-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@dalg24
Copy link
Member

dalg24 commented Sep 17, 2020

OK to test

Copy link
Contributor

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@dalg24 dalg24 merged commit 4ad15e3 into kokkos:develop Sep 17, 2020
@lucbv lucbv deleted the HIP_fix_template_deduction branch September 17, 2020 13:38
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

4 participants