Skip to content
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-implementation #2

Open
17barbieri opened this issue Jul 11, 2022 · 4 comments
Open

GPU-implementation #2

17barbieri opened this issue Jul 11, 2022 · 4 comments
Assignees

Comments

@17barbieri
Copy link

Hi,
I am a PhD student working on tomosynthesis and I would like to know if you have yet implemented the GPU compatibility for the toolbox. If not, do you still plan to do it in the foreseeable future ?
Otherwise, have you tried other GPU-based libraries ?
Thank you a lot,

@rodrigovimieiro rodrigovimieiro self-assigned this Jul 11, 2022
@rodrigovimieiro
Copy link
Member

Hello,

The toolbox already works with GPU. There are instructions how to compile the codes on the readme file.

Let me know if you have any problems.

@17barbieri
Copy link
Author

17barbieri commented Jul 11, 2022

Hi, thank you very much for your swift response!
My bad, everything is complied correctly, I just had to switch from the default "projectionDDb" to "projectionDDb_cuda" and so on.
I'm getting a lot of warnings/errors though. They look like this:
"cudaMemset Padding Volume"
"cudaMemset Padding Projections"
"cudaMemset Zeros"
and
"cudaMemcpy Final".
Should I worry about those ?
Actually, all the results of "projectionDDb_cuda" are 0.0 everywhere...

@rodrigovimieiro
Copy link
Member

rodrigovimieiro commented Jul 11, 2022

The CUDA codes were not properly compiled.

It might be related to item 5 on readme:

If you have problems with arch=sm_XX, modify it in the setup.py code according to your NVIDIA-GPU architecture. This link has some references.

@17barbieri
Copy link
Author

Thanks a lot, works great now !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants