# Speed up the reconstruction

**URL:** <https://discourse.itk.org/t/speed-up-the-reconstruction/6599>\
**Category:** Algorithms\
**Tags:** rtk, python\
**Created:** [April 26, 2024, 7:53am UTC](https://discourse.itk.org/t/speed-up-the-reconstruction/6599 "2024-04-26T07:53:15Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![zhangm](https://discourse.itk.org/letter_avatar_proxy/v4/letter/z/34f0e0/32.png) [@zhangm](https://discourse.itk.org/u/zhangm)\
**Post date:** [May 22, 2024, 7:52am UTC](https://discourse.itk.org/t/speed-up-the-reconstruction/6599/21 "2024-05-22T07:52:08Z")

</div>

Yes , I hve tried this method, and run `.\windows-download-cache-and-build-module-wheels.ps1 -python_version_minor 9 -setup_options "--exclude-libs nvcuda.dll" -cmake-options "-DRTK_USE_CUDA:BOOL=ON"`

 ![企业微信截图_20240522154645](https://discourse.itk.org/uploads/default/original/2X/8/83991d92270a396536f1856b09408a69a4b6398c.png)  
But I don’t konw where to set `(ITK_WRAP_IMAGE_DIMS:STRING=2;3)`? And on the .ps1 file the verion can only set as `{ $env:ITK_PACKAGE_VERSION = 'v5.4.0' }` not `{ $env:ITK_PACKAGE_VERSION = 'v5.4rc1' }`

---

<div class="post-metadata">

**Author:** ![simon.rit](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@simon.rit](https://discourse.itk.org/u/simon.rit)\
**Post date:** [May 22, 2024, 7:56am UTC](https://discourse.itk.org/t/speed-up-the-reconstruction/6599/22 "2024-05-22T07:56:31Z")

</div>

I’m assuming you download the ITKPythonPackage repository locally so there is nothing that prevents you from modifying ITK\_WRAP\_IMAGE\_DIMS option and ITK\_PACKAGE\_VERSION in the scripts.

---

<div class="post-metadata">

**Author:** ![zhangm](https://discourse.itk.org/letter_avatar_proxy/v4/letter/z/34f0e0/32.png) [@zhangm](https://discourse.itk.org/u/zhangm)\
**Post date:** [May 27, 2024, 9:44am UTC](https://discourse.itk.org/t/speed-up-the-reconstruction/6599/23 "2024-05-27T09:44:28Z")

</div>

I use git clone to pull ITKPythonPackage. When I search the methods that meet my needs, there are different ways, such as use `windows-download-cache-and-build-module-wheels.ps1` or `setup.py` or `windows_build_wheels.py`. But they all failed. 😭  
Now I use `windows_build_wheels.py` to generate wheels because I can set some parameters on the code. But when I run this, the error occurs as below:

 ![企业微信截图_20240527174456](https://discourse.itk.org/uploads/default/original/2X/6/61a7cc448bc4ca655fd634b94e690d865d42a05e.png)

I tried to find out what caused it, but there was no progress. 😭

---

<div class="post-metadata">

**Author:** ![zhangm](https://discourse.itk.org/letter_avatar_proxy/v4/letter/z/34f0e0/32.png) [@zhangm](https://discourse.itk.org/u/zhangm)\
**Post date:** [May 31, 2024, 2:03am UTC](https://discourse.itk.org/t/speed-up-the-reconstruction/6599/24 "2024-05-31T02:03:09Z")

</div>

Good News, I succeed generate itk wheels! The next step is to generate itk-rtk-cuda(I have tried use the wheels to pip itk and use pip install it-rtk-cuda, but there has the error beacause the image dims).  
The tips is that you need make sure the compilation environment is consistent with your requirements, and my computer defaults to x86 but I need x64.

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [July 19, 2024, 6:53pm UTC](https://discourse.itk.org/t/speed-up-the-reconstruction/6599/25 "2024-07-19T18:53:47Z")

</div>

@zhangm thanks for sharing your updates and success!

Just a note that @simon.rit recently released [itk-rtk 2.6.0](https://pypi.org/project/itk-rtk/#history) binaries based on `itk-5.4.0`.

[Previous page](https://discourse.itk.org/t/speed-up-the-reconstruction/6599.md?page=1)
