-
Notifications
You must be signed in to change notification settings - Fork 529
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
Missing const T&
conversion for Scalar_accessor
#2359
Comments
Another example, with a simpler test-case that also fails with
compiled with
Replacing the |
@Oblomov Apologies for the lack of response. Can you please test with latest ROCm 6.0.2 (HIP 6.0.32831)? If resolved, please close ticket. Thanks! |
Thank you, this seems to be fixed in 6.0.2 |
Hello,
I'm in the process of adding HIP support to GPUSPH, and one of the obstacles I've encountered so far is the lack of a
operator const T&() const
conversion operator forScalar_accessor
. The issue manifests only when building the host code usingg++ $(hipconfig -C)
, and can be observed e.g. with this simple test case:compiled with
g++ $(hipconfig -C | tr -d \") -c test.cc
, giving the errorThe same error does not appear when compiling with
hipcc
, or when usingclang++
instead ofg++
as host compiler, so it's possible that the issue is due to the different representation used for vector types in the two cases. I noticed that theScalar_accessor
does provideoperator T() const
conversions, but these aren't apparently sufficient to satisfyg++
. A solution could be to conver them intoconst T&
operators, that should work just as well for both theT
andconst T&
case.The text was updated successfully, but these errors were encountered: