-
Notifications
You must be signed in to change notification settings - Fork 145
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
Cuda memory error when using Cuda forward projector #594
Comments
Fixes RTKConsortium#594. Opened files with command line $(find -type f -exec grep -lE 'cuda(Malloc|Memset|Memcpy)' {} \;) and searched for occurences with vim regular expression cuda\(Malloc\|Memset\|Memcpy\)
Fixes #594. Opened files with command line $(find -type f -exec grep -lE 'cuda(Malloc|Memset|Memcpy)' {} \;) and searched for occurences with vim regular expression cuda\(Malloc\|Memset\|Memcpy\)
Dear Obaid,
Can you test the fix <#598> that I
have implemented? The new Python wheel can be downloaded from the CI if
you're logged in Github, at the bottom of the workflow page
<https://github.com/RTKConsortium/RTK/actions/runs/9051385855>.
Simon
…On Mon, Apr 29, 2024 at 7:47 PM ObaidullahRahman ***@***.***> wrote:
My image size is 1264x1356x1356=2324162304
Projection size: (slice/row, view, column)=(1456,145,1840)
My GPU has 80 GB memory.
When I use *CudaForwardProjectionImageFilter* I get memory error (please
refer to the attachment).
Simon confirmed that in *line 115* of *rtkCudaUtilities.cu*, my image
exceeds the predefined max size of the image.
Please increase the predefined max size for images.
(I'd like to be able to forward project 2000x2000x2000 image or as much as
possible).
Thanks.
Best,
Obaid
Screenshot.2024-04-24.at.8.34.20.PM.png (view on web)
<https://github.com/RTKConsortium/RTK/assets/36867277/e6554b6c-d682-4f0c-b41b-826685434683>
—
Reply to this email directly, view it on GitHub
<#594>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACP64FO7Z4WKAYA2BSKCDDY72BTFAVCNFSM6AAAAABG6YWQZKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DSNRQHAYTCNI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
That does not seem to be the right installation. In a fresh environment, the requirement is ITK 5.4rc1, which can be installed with |
If you downgrade, you cannot test the fix! Segmentation faults occur for me when I don't have a matching ITK version or if I do not install the correct linux version. There are two linux versions, 2014 for older versions and 2_28 for newer ones, have you tested both? BTW, ITK has released v5.4.0, you can test the new CudaCommon and RTK packages |
The linux version depends on your OS version, see https://github.com/pypa/manylinux. |
I'm surprised that you did not have that before. We do not ship the cuda libraries with the package, you have to install cuda 11.6 on your computer. You can have multiple versions of cuda on the same computer. For windows, you can add the cuda path like this: https://github.com/RTKConsortium/RTK/blob/master/examples/FirstReconstruction/FirstCudaReconstruction.py#L13-L14. For linux, add the cuda lib directory (containing libcudart.so.11.0 among others) to |
This just indicates the Cuda compability of your driver. Which OS are you using? |
My image size is 1264x1356x1356=2324162304
Projection size: (slice/row, view, column)=(1456,145,1840)
My GPU has 80 GB memory.
When I use CudaForwardProjectionImageFilter I get memory error (please refer to the attachment).
Simon confirmed that in line 115 of rtkCudaUtilities.cu, my image exceeds the predefined max size of the image.
Please increase the predefined max size for images.
(I'd like to be able to forward project 2000x2000x2000 image or as much as possible).
Thanks.
Best,
Obaid
The text was updated successfully, but these errors were encountered: