-
Notifications
You must be signed in to change notification settings - Fork 544
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
Problem with hipMemcpyToSymbol #1920
Comments
Rombur
added a commit
to Rombur/kokkos
that referenced
this issue
Mar 11, 2020
This is not used for now due to a bug in hipcc (see ROCm/HIP#1920)
Rombur
added a commit
to Rombur/kokkos
that referenced
this issue
Mar 11, 2020
This is not used for now due to a bug in hipcc (see ROCm/HIP#1920)
Rombur
added a commit
to Rombur/kokkos
that referenced
this issue
Mar 18, 2020
This is not used for now due to a bug in hipcc (see ROCm/HIP#1920)
Rombur
added a commit
to Rombur/kokkos
that referenced
this issue
Mar 19, 2020
This is not used for now due to a bug in hipcc (see ROCm/HIP#1920)
Rombur
added a commit
to Rombur/kokkos
that referenced
this issue
Mar 25, 2020
This is not used for now due to a bug in hipcc (see ROCm/HIP#1920)
@Rombur Sorry for the lack of response. Please try latest ROCm 6.0.2 (HIP 6.0.32831) to see if your issue still exists? If resolved, please close the ticket. Thanks. |
It has been fixed. Closing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this problem when compiling the HIP backend in Kokkos. I've tried to create a small reproducer to show the problem but I couldn't. So here is what the code does: We create a global variable on the host and a global variable on the device. We use
hipMalloc
to allocate the memory of the host global variable. We then usehipMemcpyToSymbol
to copy the pointers to the device global variable. This works fine if the device global variable is not called in another file. If it's the case the data is never copied. To show the problem, I have create a second device global variable that goes through the same code path but the variable is not called in any other file.As you see the problem is that the data is never copied.
If in file
core/src/HIP/Kokkos_HIP_Parallel_Team.hpp
around line 411, you comment the implementation of__device__ inline void operator()(void) const
(i.e. comment all the calls the device global variable), everything works fine. Note that this code has not been executed by the time I try to copy the data. Simply being there changes the behavior of the other function.The relevant code is here, here, here, here, and here
How to reproduce the error:
I am using
The text was updated successfully, but these errors were encountered: