[Rtk-users] [EXTERNAL] Some Cuda filters not working

Rahman, Obaid rahmano at ornl.gov
Thu Jul 13 14:12:58 CEST 2023


Hi Simon,

Thank you. I will try it soon and let you know how it went.

Best,
Obaid

On Jul 13, 2023, at 6:07 AM, Simon Rit <simon.rit at creatis.insa-lyon.fr> wrote:

Hi Obaid,
I have added the Cuda Parker and scatter glare filter in two PRs:
https://github.com/RTKConsortium/RTK/pull/550<https://urldefense.us/v2/url?u=https-3A__github.com_RTKConsortium_RTK_pull_550&d=DwMFaQ&c=v4IIwRuZAmwupIjowmMWUmLasxPEgYsgNI-O7C4ViYc&r=J7uT21mkGp7aMwIrHQkTLGwy72wKx_bOB0IkoGp__bQ&m=HB3HIeN7vmvdFLqMJWqSh5N5-_1FtNhWyPyYyKFcdLXD6oiQsbiQn62RqJpM8VBO&s=89VwO3nZdHfmMHawzFA7XYsBAqGtEx8y1RhcaAHPTK8&e=>
https://github.com/RTKConsortium/RTK/pull/554<https://urldefense.us/v2/url?u=https-3A__github.com_RTKConsortium_RTK_pull_554&d=DwMFaQ&c=v4IIwRuZAmwupIjowmMWUmLasxPEgYsgNI-O7C4ViYc&r=J7uT21mkGp7aMwIrHQkTLGwy72wKx_bOB0IkoGp__bQ&m=HB3HIeN7vmvdFLqMJWqSh5N5-_1FtNhWyPyYyKFcdLXD6oiQsbiQn62RqJpM8VBO&s=Q_22mx-PLDZqnDPHVNsLwbtSZYFGaoM-0TW6mU11BHk&e=>
The corresponding Cuda Python packages can be downloaded as artifacts of the Github action (you must be logged in):
https://github.com/RTKConsortium/RTK/actions/runs/5530059614<https://urldefense.us/v2/url?u=https-3A__github.com_RTKConsortium_RTK_actions_runs_5530059614&d=DwMFaQ&c=v4IIwRuZAmwupIjowmMWUmLasxPEgYsgNI-O7C4ViYc&r=J7uT21mkGp7aMwIrHQkTLGwy72wKx_bOB0IkoGp__bQ&m=HB3HIeN7vmvdFLqMJWqSh5N5-_1FtNhWyPyYyKFcdLXD6oiQsbiQn62RqJpM8VBO&s=LqaZZmhpcjpIBPLOxkU7IgI4f2xnwP5lQM2GOJpwdRQ&e=>
Simon

On Tue, Jun 20, 2023 at 12:10 PM Rahman, Obaid <rahmano at ornl.gov<mailto:rahmano at ornl.gov>> wrote:
I will take a look.
And thank you!

On Jun 20, 2023, at 3:16 AM, Simon Rit <simon.rit at creatis.insa-lyon.fr<mailto:simon.rit at creatis.insa-lyon.fr>> wrote:

Hi,
Thanks for the report. Those filters aren't wrapped. For each wrapped filter, one needs to create a .wrap file in the wrapping directory.
I have created a pull request to fix this:
https://github.com/RTKConsortium/RTK/pull/550<https://urldefense.us/v2/url?u=https-3A__github.com_RTKConsortium_RTK_pull_550&d=DwMFaQ&c=v4IIwRuZAmwupIjowmMWUmLasxPEgYsgNI-O7C4ViYc&r=J7uT21mkGp7aMwIrHQkTLGwy72wKx_bOB0IkoGp__bQ&m=kIhsQ53KSQ9xTXy05PQXpv7jVaRCUhCnko-be2omy4UA2LGWOTneXVbnHk7zlM0z&s=JTnVw7yvl99GSXH0LQDILbVr-2SRk3Xh9-OQqgThh8o&e=>
When CI packages are compiled, they will be available for download, I'll let you know.
I would appreciate it if you have a look at the PR and you try to do the wrapping yourself next time.
Thanks in advance!
Simon

On Tue, Jun 20, 2023 at 2:52 AM Rahman, Obaid <rahmano at ornl.gov<mailto:rahmano at ornl.gov>> wrote:
Hello everyone,

I have installed the Cuda version of itk-rtk (pip install itk-rtk-cuda116).
Some filters are working as expected but the following are not:

rtk.ParkerShortScanImageFilter
rtk.CudaScatterGlareCorrectionImageFilter

I get error:
“module 'RTK' has no attribute ‘CudaParkerShortScanImageFilter’"
“module 'RTK' has no attribute ‘CudaScatterGlareCorrectionImageFilter'"

Their CPU counterparts work as expected.
Does anyone have any idea why?
Thanks in advance.

Best,
Obaid
_______________________________________________
Rtk-users mailing list
rtk-users at openrtk.org
https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users<https://urldefense.us/v2/url?u=https-3A__www.creatis.insa-2Dlyon.fr_mailman_listinfo_rtk-2Dusers&d=DwQFaQ&c=v4IIwRuZAmwupIjowmMWUmLasxPEgYsgNI-O7C4ViYc&r=J7uT21mkGp7aMwIrHQkTLGwy72wKx_bOB0IkoGp__bQ&m=kIhsQ53KSQ9xTXy05PQXpv7jVaRCUhCnko-be2omy4UA2LGWOTneXVbnHk7zlM0z&s=u8aIbDAbE4h1_MbM9X62MpLMyqrA6PrCu4Y7c4u4Fr8&e=>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20230713/7cf71d6f/attachment-0001.htm>


More information about the Rtk-users mailing list