<div>Greetings,</div><div> </div><div>I have Linux system with RTK version "2.3.0, git hash 601715281db1ebb7a8a7e436bb0608814ee30e91",</div><div><div>ITK-5.2.1 compiled as a part of 3D Slicer, CUDA-11.4, GCC-10.3.</div><div><br /></div></div><div>Everything compiled without problems (library, applications) with CUDA support, except FirstReconstruction example. For some reason it can't find CUDA, but beforehand it was able to compile RTK applications with CUDA support! Without CUDA the FirstReconstruction example compiles without problems.</div><div> </div><div> </div><div>Basically standard compilation procedure:</div><div><span style="font-family:'courier new' , monospace">cd RTK/examples/FirstReconstruction</span></div><div><span style="font-family:'courier new' , monospace">mkdir -p build</span></div><div><span style="font-family:'courier new' , monospace">cd build</span></div><div><span style="font-family:'courier new' , monospace">cmake .. -DITK_DIR=~/devel/git/Slicer/Slicer-SuperBuild-Release/ITK-build</span></div><div><span style="font-family:'courier new' , monospace">make</span></div><div> </div><div>Cmake output:</div><div><div><span style="font-family:'courier new' , monospace">-- Looking for pthread.h</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for pthread.h - found</span></div><div><span style="font-family:'courier new' , monospace">-- Performing Test CMAKE_HAVE_LIBC_PTHREAD</span></div><div><span style="font-family:'courier new' , monospace">-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for pthread_create in pthreads</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for pthread_create in pthreads - not found</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for pthread_create in pthread</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for pthread_create in pthread - found</span></div><div><span style="font-family:'courier new' , monospace">-- Found Threads: TRUE  </span></div><div><span style="font-family:'courier new' , monospace">-- Found X11: /usr/include   </span></div><div><span style="font-family:'courier new' , monospace">-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for gethostbyname</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for gethostbyname - found</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for connect</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for connect - found</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for remove</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for remove - found</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for shmat</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for shmat - found</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for IceConnectionNumber in ICE</span></div><div><span style="font-family:'courier new' , monospace">-- Looking for IceConnectionNumber in ICE - found</span></div><div><span style="font-family:'courier new' , monospace">-- Found OpenGL: /usr/lib64/libOpenGL.so  found components: OpenGL</span></div><div><span style="font-family:'courier new' , monospace">-- Found Python3: /usr/bin/python3.9 (found suitable version "3.9.6", minimum required is "3.6") found components: Interpreter Development.Module Development.Embed</span></div><div><span style="font-family:'courier new' , monospace">-- Configuring done</span></div><div><span style="font-family:'courier new' , monospace">CMake Error at CMakeLists.txt:14 (add_executable):</span></div><div><span style="font-family:'courier new' , monospace">  Target "FirstCudaReconstruction" links to target "CUDA::cufft" but the</span></div><div><span style="font-family:'courier new' , monospace">  target was not found.  Perhaps a find_package() call is missing for an</span></div><div><span style="font-family:'courier new' , monospace">  IMPORTED target, or an ALIAS target is missing?</span></div><div> </div><div> </div><div><span style="font-family:'courier new' , monospace">CMake Error at CMakeLists.txt:14 (add_executable):</span></div><div><span style="font-family:'courier new' , monospace">  Target "FirstCudaReconstruction" links to target "CUDA::cublas" but the</span></div><div><span style="font-family:'courier new' , monospace">  target was not found.  Perhaps a find_package() call is missing for an</span></div><div><span style="font-family:'courier new' , monospace">  IMPORTED target, or an ALIAS target is missing?</span></div><div> </div><div> </div><div><span style="font-family:'courier new' , monospace">CMake Error at CMakeLists.txt:11 (add_executable):</span></div><div><span style="font-family:'courier new' , monospace">  Target "FirstReconstruction" links to target "CUDA::cufft" but the target</span></div><div><span style="font-family:'courier new' , monospace">  was not found.  Perhaps a find_package() call is missing for an IMPORTED</span></div><div><span style="font-family:'courier new' , monospace">  target, or an ALIAS target is missing?</span></div><div> </div><div> </div><div><span style="font-family:'courier new' , monospace">CMake Error at CMakeLists.txt:11 (add_executable):</span></div><div><span style="font-family:'courier new' , monospace">  Target "FirstReconstruction" links to target "CUDA::cublas" but the target</span></div><div><span style="font-family:'courier new' , monospace">  was not found.  Perhaps a find_package() call is missing for an IMPORTED</span></div><div><span style="font-family:'courier new' , monospace">  target, or an ALIAS target is missing?</span></div><div> </div><div> </div><div><span style="font-family:'courier new' , monospace">-- Generating done</span></div><div><span style="font-family:'courier new' , monospace">CMake Generate step failed.  Build files cannot be regenerated correctly.</span></div><div> </div><div> </div></div><div>Compilation output:</div><div><div><span style="font-family:'courier new' , monospace">[ 25%] Building CXX object CMakeFiles/FirstCudaReconstruction.dir/FirstCudaReconstruction.cxx.o</span></div><div><span style="font-family:'courier new' , monospace">In file included from /home/michel/devel/git/RTK/utilities/ITKCudaCommon/include/itkCudaImageDataManager.h:24,</span></div><div><span style="font-family:'courier new' , monospace">                 from /home/michel/devel/git/RTK/utilities/ITKCudaCommon/include/itkCudaImage.h:22,</span></div><div><span style="font-family:'courier new' , monospace">                 from /home/michel/devel/git/RTK/include/rtkCudaFDKWeightProjectionFilter.h:29,</span></div><div><span style="font-family:'courier new' , monospace">                 from /home/michel/devel/git/RTK/include/rtkCudaFDKConeBeamReconstructionFilter.h:27,</span></div><div><span style="font-family:'courier new' , monospace">                 from /home/michel/devel/git/RTK/examples/FirstReconstruction/FirstCudaReconstruction.cxx:5:</span></div><div><span style="font-family:'courier new' , monospace">/home/michel/devel/git/RTK/utilities/ITKCudaCommon/include/itkCudaUtil.h:33:10: fatal error: cuda.h: Not such file or directory</span></div><div><span style="font-family:'courier new' , monospace">   33 | #include <cuda.h></span></div><div> </div><div> </div><div>Best regards,</div><div>Mikhail</div><div> </div></div>