-
Notifications
You must be signed in to change notification settings - Fork 51
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
Runtime error when copying to constant device memory with HIP #912
Comments
One more thing to add to this. I did look into the implementation a bit and I did not see any calls to |
Following a similar approach as in
I didn't have any luck with that though,
|
Hello, just wanted to follow up on this. Does anyone have any thoughts/suggestions for this? ping: @davidbeckingsale @mcfadden8 |
Hey @gzagaris I will try and reproduce and debug locally. No ideas I'm afraid |
Thank you @davidbeckingsale! I pushed some of my changes in my effort to debug this a bit further in #920 in case you find them helpful. I also include a unit test natively in Umpire, which might help with reproducing this on your end. Note, my changes to Unfortunately, what I found was that I was able to reproduce the
So, this could be an error in rocm/hip? or perhaps, I am somehow calling I submitted the standalone HIP reproducer to some folks from AMD and I am awaiting to hear back.... |
Yup, it could well be. My other thought in the Umpire case is that we actually don't compile that resource file as a HIP file, just C++ and link against hip runtime. I tried hacking it to compile as HIP but then ran into some linking errors. Let me know what you hear back |
Hi @davidbeckingsale, just wanted to give you a quick update on this. AMD was not able to reproduce the issue with the standalone reproducer. However, based on your comment, I tried compiling the standalone reproducer with the HIP compiler ( So, in addition to the changes in #920, there is also a build-system issue, as you have guessed it. We should be able to instruct CMake to build a source file as a HIP program using source file properties, e.g.,
Or, perhaps, there is a better way to do this within BLT(?) Thoughts? NOTE: Looks like CMake added support for HIP as a language in 3.21 I believe. |
That's what I tried, but then it wouldn't link. We have a BLT PR that will use |
Excellent! Thank you for your help with this @davidbeckingsale! |
Describe the bug
Copying data from the host to constant device memory using HIP throws a runtime error. The code works fine with CUDA , but, Umpire throws the following runtime error when compiled with HIP:
To Reproduce
Here is a code snippet that reproduces this behavior:
I am compiling Umpire with
-DENABLE_HIP=On -DUMPIRE_ENABLE_DEVICE_CONST=On
.Am I missing anything?
Expected behavior
I would have expected this to work and not throw a runtime error.
Compilers & Libraries (please complete the following information):
The text was updated successfully, but these errors were encountered: