<div dir="ltr"><div>Hi,</div><div>To compile python packages, you must turn on ITK_WRAP_PYTHON. For example, I use</div><div>cmake $SCRIPT_PATH/itk \<br>    -DITKPythonPackage_ITK_BINARY_REUSE:BOOL=OFF \<br>    -DITKPythonPackage_WHEEL_NAME:STRING="itk" \<br>    -DCMAKE_BUILD_TYPE=RelWithDebInfo \<br>    -DBUILD_EXAMPLES=OFF \<br>    -DBUILD_SHARED_LIBS=OFF \<br>    -DBUILD_TESTING=OFF \<br>    -DITK_WRAP_PYTHON=ON \<br>    -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH \<br>    -DModule_RTK:BOOL=ON \<br>    -DModule_RTK_GIT_TAG="" \<br>    -DRTK_USE_CUDA:BOOL=ON \<br>    -DRTK_BUILD_APPLICATIONS:BOOL=OFF \<br>    -DPY_SITE_PACKAGES_PATH:STRING=${BINDINGS_PATH} \<br>    -DITK_WRAP_unsigned_short:BOOL=ON \<br>    -DITK_WRAP_double:BOOL=ON \<br>    -DITK_WRAP_complex_double:BOOL=ON \<br>    -DITK_WRAP_IMAGE_DIMS:STRING="2;3;4"<br>to reproduce the options used by ITK to create module python packages.</div><div>Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 17, 2022 at 11:27 PM 雅之 服部 <<a href="mailto:masayuki.h.0215@gmail.com">masayuki.h.0215@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><pre style="font-size:small;white-space:pre-wrap"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">Dear rtk-users</span></pre>I look at the following question and I want to compile the python wrappings.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">But I didn't know how to do it. I haven't used ITK so much, so I don't know.<br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I would appreciate it if you could tell me..<br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Thank you.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, sans-serif">
<a href="https://public.kitware.com/pipermail/rtk-users/2021-September/011102.html" style="font-size:medium;white-space:normal;background-color:rgb(255,255,255)" target="_blank">[Rtk-users] Python RTK + CUDA </a><a name="m_735820059764687681_11102" style="font-size:medium;white-space:normal;background-color:rgb(255,255,255)"> </a><span style="font-size:medium;white-space:normal"> </span><i style="font-size:medium;white-space:normal">Gabriele Belotti in </i>September2021</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, sans-serif">”””
</font>Hi Gabriele,</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">You can check the example here
<<a href="https://github.com/SimonRit/RTK/blob/master/examples/FirstReconstruction/FirstCudaReconstruction.py" target="_blank">https://github.com/SimonRit/RTK/blob/master/examples/FirstReconstruction/FirstCudaReconstruction.py</a>>.
Note, however, that the CUDA python packages are still not distributed. The
ones on pypi only have CPU code. So you would need to compile the python
wrappings, which would require the three CMake options ITK_WRAP_PYTHON=ON,
Module_RTK=ON, RTK_USE_CUDA=ON.
Simon</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, sans-serif">”””</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, sans-serif"><br></font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, sans-serif"><br></font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, sans-serif"><br></font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, sans-serif">
</font><h1 style="white-space:normal"><br></h1>

</pre></div>
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br>
<a href="https://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/rtk-users</a><br>
</blockquote></div>