-
Notifications
You must be signed in to change notification settings - Fork 143
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
Copy 2 arrays into GPU memory using GDRCOPY #242
Comments
Hi @bonbax, Based on the output, I guess that there was an error in A few requests:
|
Thanks for the reply. specs
Maybe because I installed dgrcopy kernelmodule with RPM, it was not possible.
installed package
Result(My Program)
copybw succeeds.
|
It failed in
Please provide us the output from |
I uninstalled the RPM package and performed a build installation.
|
Hi @bonbax, Thank you for the debug info. In your case, the failure is because your second buffer is not GPU-page-aligned. We documented this restriction in README.md in the second paragraph of the "Restrictions and known issues" section. So, the failure in Nevertheless, it should not cause To solve your issue, I would like to suggest that you properly align both buffers. You will not run into #244 if you do that. You can look at https://github.com/NVIDIA/gdrcopy/blob/master/tests/common.cpp#L46 to see how we allocate aligned CUDA buffers. |
We are happy to have found the bug.
|
Your
|
#define PAGE_ROUND_UP(x, n) (((x) + ((n) - 1)) & ~((n) - 1)) defines. [root@devel gdrcopy]# git branch
Result
Program
|
You problem this time is in CUDA, not in GDRCopy. If you want to use the driver API ( |
Sorry.
|
I didn't understand. |
They could find the bug, but they couldn't fix mine. |
Hi @bonbax, This should work. Basically, your CUDA driver API setup was incomplete.
|
Thank you very much. |
I know this is not a programming class, but please let me know.
I want to copy 2 arrays into GPU memory using GDRCOPY.
I read gdrapi.h but could not understand it. What is the reason why the following does not work?
The sample programs sanity, copylat, and copylat use a working GPU.
Result
The text was updated successfully, but these errors were encountered: