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: fully fix build #2937

Merged
merged 7 commits into from
Jul 5, 2019
Merged

hip: fully fix build #2937

merged 7 commits into from
Jul 5, 2019

Conversation

mkuron
Copy link
Member

@mkuron mkuron commented Jun 24, 2019

Fixes #2901.
Fixes #2906.
@KaiSzuttor

I know it's an ugly workaround, but it's the best I could come up with. You can't use variadic template functions here.

Workaround from https://github.com/ROCm-Developer-Tools/HIP/blob/91f82ce541b51ad1106a28e951b410a256e61f62/docs/markdown/hip_bugs.md#errors-related-to-no-matching-constructor, found via ROCm/hcc#860

Hopefully the underlying bug goes away once AMD drops HCC and uses Clang directly.

@KaiSzuttor
Copy link
Member

i don't particularly like it

@mkuron
Copy link
Member Author

mkuron commented Jun 24, 2019

Neither do I, but this is not a beauty contest. It's the official workaround and should soon be taken care of by the compiler.

@KaiSzuttor
Copy link
Member

it is, kind of. elegance and maintainability have quite some correlation.

@codecov
Copy link

codecov bot commented Jun 25, 2019

Codecov Report

Merging #2937 into python will increase coverage by <1%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           python   #2937    +/-   ##
=======================================
+ Coverage      83%     83%   +<1%     
=======================================
  Files         520     520            
  Lines       26702   26702            
=======================================
+ Hits        22303   22304     +1     
+ Misses       4399    4398     -1
Impacted Files Coverage Δ
src/utils/include/utils/Array.hpp 95% <100%> (ø) ⬆️
src/core/electrostatics_magnetostatics/p3m.cpp 85% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb1776b...160d172. Read the comment docs.

@KaiSzuttor
Copy link
Member

So, in general the question is not, if we are able to support HIP any longer but how large the time costs are for the developers. At some point we have to make a cut and wait for the HIP framework to be stable and more mature. The bug list you referenced above was last touched two years ago, which lets me wonder if they are still committed to fix those.

@fweik fweik mentioned this pull request Jun 25, 2019
mkuron and others added 2 commits June 25, 2019 15:31
The prototype is enough to get correct name resolution. The implementation would only be needed when passing an Utils::Array as a kernel argument.
Copy link
Contributor

@RudolfWeeber RudolfWeeber left a comment

Choose a reason for hiding this comment

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

Itś clear that the workaround is not pretty, but since we deferred a decision to remove HIP support, this PR should be merged.

@RudolfWeeber
Copy link
Contributor

RudolfWeeber commented Jul 4, 2019 via email

@KaiSzuttor
Copy link
Member

why don't we have merged then already?

@RudolfWeeber
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Jul 5, 2019
2937: hip: fully fix build r=RudolfWeeber a=mkuron

Fixes #2901.
Fixes #2906.
@KaiSzuttor 

I know it's an ugly workaround, but it's the best I could come up with. You can't use variadic template functions here.

Workaround from https://github.com/ROCm-Developer-Tools/HIP/blob/91f82ce541b51ad1106a28e951b410a256e61f62/docs/markdown/hip_bugs.md#errors-related-to-no-matching-constructor, found via ROCm/hcc#860

Hopefully the underlying bug goes away once AMD drops HCC and uses Clang directly.

Co-authored-by: Kai Szuttor <[email protected]>
Co-authored-by: Michael Kuron <[email protected]>
Co-authored-by: Florian Weik <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jul 5, 2019

Build succeeded

@bors bors bot merged commit 160d172 into espressomd:python Jul 5, 2019
@mkuron mkuron deleted the patch-6 branch September 13, 2019 12:00
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.

4 participants