Closed carlosesreis closed 3 years ago
Hi Carlos,
In this initial unsupported branch of the code, the nearfield side hasn't yet been implemented. The cuda is there, but the dots aren't joined up yet. The supported branch of the release_candidate that @bjoernenders is about to release obviously doesn't have GPU support, but the following release which we are working on will do.This will have comprehensive support for all ptypy operation modes.
Whilst I'd love to hack something for you to use right now, I think probably the best thing is for me to get it to work properly in for the next release, and let you know when we have something halfway stable which you can start using to test it.
I hope thats ok.
Aaron
Any news on this issue? I have the same problem. I've noticed some work on this branch, and I am wondering what I can do to help. PyCUDA is already working for Farfield propagation, but not for Nearfield propagation because it complains that the BasicNearFieldPropagator object does not have the attribute 'pre_fft'. However, it does have this attribute, but I could not understand why it does not use it. Any plan to solve this in the near future? It would help us a lot if we can make run NF ptycho with CUDA.
Otherwise, any hints about how to fix it? In such a way, I can try to help you guys.
The funny thing is that it is working with the template ptypy_i13_AuStar_farfield_9p0keV.py if we add p.frames_per_block=40
and:
p.engines.engine00.name = 'DM_pycuda'
p.engines.engine00.numiter = 100
p.engines.engine00.numiter_contiguous = 10
which means that something goes wrong with real datasets.
Any hints, please?
That is farfield propagation there. The nearfield propagation is not implemented (yet).
Hi @bjoernenders, thank you for your prompt reply and sorry about the mistyping. I meant ptypy_i13_AuStar_nearfield_9p7keV.py
instead and it worked indeed with the nearfield
propagation. Just need to implement the few changes I mentioned above.
This is really intriguing and surprising. If nearfield
propagation is not implemented, do you have any idea why it worked with this template? I am really curious to understand this.
There is a range of Fresnel number where both propagators should be able to do the job. I looked a the template and it seems like the Farfieldpropagator is used for reconstruction.
Thank you @bjoernenders for your reactivity to check this out. And thank you too for having started working on the new branch pycuda_nf.
Hi guys. First of all thanks for the software! We have been using it with GPUs and it goes really well. We were trying to use DMGpu engine in a nearfield setup but it is dropping us the following error message:
Using the farfield option with yours rspa usafe dataset all works fine. Could you please help us with this issue?
Thanks, Carlos