-
Notifications
You must be signed in to change notification settings - Fork 548
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 assert - Memory access fault by GPU node-8 on address (nil). Reason: Page not present or supervisor privilege. #2676
Comments
I think that the issue is the assert statement in the kernel. Some threads in a warp throw an exception and some of them succeeds. I don't think this is valid on a GPU. May I ask why you need the assert in the kernel? Why cannot you use a if statement instead? |
Thank you for explaining the cause. Developers and researchers may call 'assert' in a kernel for testing and debugging. May the cuda version be an example for adding HIP support of 'assert' in a kernel ? Thanks. |
Please refer to CUDA programming guide section B29. The following information is from CUDA programming guide. |
For the HIP program, the expected behavior is not memory access fault, is it ? |
Regardless of the 'yes' or 'no' answer, I added an example that might be useful for you to evaluate assert in cuda and hip. https://github.com/zjin-lcf/HeCBench/tree/master/assert-hip |
assert is already supported. I believe the issue is that the compiler detection of the mechanism that assert uses was flawed. You can probably work around for now by adding a call to printf somewhere, e.g. in a kernel that is never called. This will be fixed in a future release. |
Thanks. |
Running the following HIP program shows memory access fault message. Can you reproduce the error ? Thanks.
The hipcc version is 4.5.2
The text was updated successfully, but these errors were encountered: