<div dir="ltr"><div><div>Hi Mathieu,<br></div>That was not easy but I have pushed a fix that should allow the use of CUDA in SimpleRTK. I have included your json file in the repository and added an example that works for me:<br><a href="https://github.com/SimonRit/RTK/blob/master/utilities/SimpleRTK/Examples/RTKFirstCudaReconstruction.py">https://github.com/SimonRit/RTK/blob/master/utilities/SimpleRTK/Examples/RTKFirstCudaReconstruction.py</a><br>It would be great if some other users can test it.<br></div><div>Simon<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 1, 2015 at 2:47 PM, Julien Jomier <span dir="ltr"><<a href="mailto:julien.jomier@kitware.com" target="_blank">julien.jomier@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mathieu,<br>
<br>
It's actually a little more complicated than just modifying the CMakeLists files, because we define a new image type itk::CudaImage which is not currently handled by the wrapping. We'll see if we can add this soon.<br>
<br>
Julien<div><div class="h5"><br>
<br>
On 30/03/2015 11:14, Mathieu DUPONT wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi rtk-users/developpers,<br>
<br>
<br>
I want to use RTK in a python workflow, and for this I want to use CudaFDKConeBeamReconstructionFilter class.  For this, I created a json file in "utilities/SimpleRTK/Code/BasicFilters/json" directory. I join this file with this email. But when I try to build, I get an error about "cuda.h" file missing.<br>
<br>
<br>
"<br>
[ 65%] Building CXX object Code/BasicFilters/src/CMakeFiles/SimpleRTKBasicFilters1.dir/srtkCudaFDKConeBeamReconstructionFilter.cxx.o<br>
cd /data/mdupont/Compile/openrtk/bin-rtk/SimpleRTK-build/Code/BasicFilters/src && /usr/bin/c++   -DSimpleRTKBasicFilters1_EXPORTS -DSimpleRTKBasicFilters_EXPORTS -fPIC     -fPIC -I/data/mdupont/Compile/openrtk/bin-rtk -I/image/mdupont/soft/RTK/utilities/ITKCudaCommon/include -I/image/mdupont/soft/RTK/code -I/data/soft/include/ITK-4.7/Algorithms -I/data/soft/include/ITK-4.7 -I/image/mdupont/soft/RTK/utilities/SimpleRTK/Code/Common/include -I/image/mdupont/soft/RTK/utilities/SimpleRTK/Code/Registration -I/image/mdupont/soft/RTK/utilities/SimpleRTK/Code/BasicFilters/include -I/image/mdupont/soft/RTK/utilities/SimpleRTK/Code/IO/include -I/data/mdupont/Compile/openrtk/bin-rtk/SimpleRTK-build/Code/BasicFilters/include -I/data/mdupont/Compile/openrtk/bin-rtk/SimpleRTK-build/Code/Common/include -I/image/mdupont/soft/RTK/utilities/SimpleRTK/Code/BasicFilters/src    -o CMakeFiles/SimpleRTKBasicFilters1.dir/srtkCudaFDKConeBeamReconstructionFilter.cxx.o -c /data/mdupont/Compile/openrtk<br>
</blockquote>
/bin-rt<br>
k/SimpleRTK-build/Code/BasicFilters/src/srtkCudaFDKConeBeamReconstructionFilter.cxx<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
In file included from /image/mdupont/soft/RTK/utilities/ITKCudaCommon/include/itkCudaImageDataManager.h:25,<br>
                  from /image/mdupont/soft/RTK/utilities/ITKCudaCommon/include/itkCudaImage.h:22,<br>
                  from /image/mdupont/soft/RTK/code/rtkCudaFDKWeightProjectionFilter.h:25,<br>
                  from /image/mdupont/soft/RTK/code/rtkCudaFDKConeBeamReconstructionFilter.h:23,<br>
                  from /data/mdupont/Compile/openrtk/bin-rtk/SimpleRTK-build/Code/BasicFilters/src/srtkCudaFDKConeBeamReconstructionFilter.cxx:34:<br>
/image/mdupont/soft/RTK/utilities/ITKCudaCommon/include/itkCudaUtil.h:33: fatal error: cuda.h: No such file or directory<br>
"<br>
<br>
How to modify cmakelists files in order to use cuda classes with SimpleRTK ?<br>
<br>
Thanks for your help,<br>
Mathieu Dupont<br>
<br>
<br>
<br></div></div><span class="">
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br>
</span><a href="http://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><br>
<br>
</blockquote><span class="">
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br>
</span><a href="http://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><br>
</blockquote></div><br></div>