-
Notifications
You must be signed in to change notification settings - Fork 106
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
"GPU fault detected" for concurrency::parallel_for_each #71
Comments
@LWisteria From dmesg it seems there's something wrong in the kernel. Could you first check if ROCm stack is working properly on your system? In section "Verify Installation" at: there's a "vector_copy" example which only use HSA API and doesn't involve HCC. Please check if this work or not. |
@LWisteria I've changed your test case a bit, please check my updated version. It works fine on my system with AMD R9 Nano + Ubuntu 14.04 + ROCm 1.1 stack. I changed:
According to C++ AMP spec, concurrency::array_view instances shall be captured by copy, and concurrency::array instances shall be captured by reference. HCC front end doesn't check this yet so you need to be cautious on how you capture variables in your kernel. |
Thank you for your answer. I overlooked https://github.com/RadeonOpenCompute/ROCm#verify-installation and I found hsa_signal_wait_acquire() doesn't return. And thanks for modifying my code. |
@LWisteria I noticed you are using an Intel i7-3770k, which is Ivy Bridge. To my knowledge to get ROCm stack working properly you need a Haswell, Skylake or later ones which support PCIe 3.0 atomics. I would still recommend you raise the question at ROCm git repo so folks there could help you triage your issue better. |
Thank you for your very helpful advice. I file the problem on the ROCm repo's issue. Please close this issue if you don't have any other problem. |
I'm trying C++AMP with simple "vector_add" code, but it doesn't work.
Environment is following:
Steps to reproduce are following:
No cored dumped when "concurrency::parallel_for_each" is commented out.
I think it's not a problem of the "vector_add.cpp" because it can build and run on VisualStudio2015.
What's the problem and how can I fix this?
The text was updated successfully, but these errors were encountered: