-
Notifications
You must be signed in to change notification settings - Fork 47
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
Running AMDGPU for MultiGPU using an Array of Pointers #662
Comments
Thanks for sharing. Could you maybe format the code in triple back-ticks blocs to avoid issues when copy-pasting it and for better readability? 🙏 |
Haven't run the code, but one problem I see here is that you create AMDGPU.device!(AMDGPU.device(1))
amdgpu_pointer_ret = ROCArray(pointer_ret)
x_ret[1] = amdgpu_pointer_ret But then you pass it to other devices: AMDGPU.device!(AMDGPU.device(i))
dev_id = i
println(dev_id)
@roc groupsize=threads gridsize=blocks multi_scal(dev_id,alpha,x_ret[1]) |
How does CUDA equivalent access array of pointers? |
Hi folks!
|
Is there a way to do so in AMDGPU? |
I cannot run AMDGPU on MultiGPU using an Array of Pointers.
The system is a 2x AMD Mi100 GPU.
The code runs well on the first GPU, but not on the second GPU.
When running the code I got this:
The equivalent code using CUDA.jl works well.
Please, let me know if you have any questions.
Here is the code to replicate the problem:
The text was updated successfully, but these errors were encountered: