Hi, Thanks for the report. I can reproduce the error and I have tried to fix it without any success so far, at least for all configurations (RTK compiled within or outside ITK, use install or build, etc.). We are in the process of moving ITKCudaCommon to a separate repository, rather than spending more time on this I think it's wise to wait for this change. See https://github.com/SimonRit/RTK/pull/427 to track the progress on this. Sorry for the disturbance... Simon
On Sun, Nov 21, 2021 at 1:18 PM Полковников Михаил <pmkc...@yandex.ru> wrote: > Greetings, > > I have Linux system with RTK version "2.3.0, git hash > 601715281db1ebb7a8a7e436bb0608814ee30e91", > ITK-5.2.1 compiled as a part of 3D Slicer, CUDA-11.4, GCC-10.3. > > 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. > > > Basically standard compilation procedure: > cd RTK/examples/FirstReconstruction > mkdir -p build > cd build > cmake .. -DITK_DIR=~/devel/git/Slicer/Slicer-SuperBuild-Release/ITK-build > make > > Cmake output: > -- Looking for pthread.h > -- Looking for pthread.h - found > -- Performing Test CMAKE_HAVE_LIBC_PTHREAD > -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed > -- Looking for pthread_create in pthreads > -- Looking for pthread_create in pthreads - not found > -- Looking for pthread_create in pthread > -- Looking for pthread_create in pthread - found > -- Found Threads: TRUE > -- Found X11: /usr/include > -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so > -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so > - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Looking for connect > -- Looking for connect - found > -- Looking for remove > -- Looking for remove - found > -- Looking for shmat > -- Looking for shmat - found > -- Looking for IceConnectionNumber in ICE > -- Looking for IceConnectionNumber in ICE - found > -- Found OpenGL: /usr/lib64/libOpenGL.so found components: OpenGL > -- Found Python3: /usr/bin/python3.9 (found suitable version "3.9.6", > minimum required is "3.6") found components: Interpreter Development.Module > Development.Embed > -- Configuring done > CMake Error at CMakeLists.txt:14 (add_executable): > Target "FirstCudaReconstruction" links to target "CUDA::cufft" but the > target was not found. Perhaps a find_package() call is missing for an > IMPORTED target, or an ALIAS target is missing? > > > CMake Error at CMakeLists.txt:14 (add_executable): > Target "FirstCudaReconstruction" links to target "CUDA::cublas" but the > target was not found. Perhaps a find_package() call is missing for an > IMPORTED target, or an ALIAS target is missing? > > > CMake Error at CMakeLists.txt:11 (add_executable): > Target "FirstReconstruction" links to target "CUDA::cufft" but the target > was not found. Perhaps a find_package() call is missing for an IMPORTED > target, or an ALIAS target is missing? > > > CMake Error at CMakeLists.txt:11 (add_executable): > Target "FirstReconstruction" links to target "CUDA::cublas" but the > target > was not found. Perhaps a find_package() call is missing for an IMPORTED > target, or an ALIAS target is missing? > > > -- Generating done > CMake Generate step failed. Build files cannot be regenerated correctly. > > > Compilation output: > [ 25%] Building CXX object > CMakeFiles/FirstCudaReconstruction.dir/FirstCudaReconstruction.cxx.o > In file included from > /home/michel/devel/git/RTK/utilities/ITKCudaCommon/include/itkCudaImageDataManager.h:24, > from > /home/michel/devel/git/RTK/utilities/ITKCudaCommon/include/itkCudaImage.h:22, > from > /home/michel/devel/git/RTK/include/rtkCudaFDKWeightProjectionFilter.h:29, > from > /home/michel/devel/git/RTK/include/rtkCudaFDKConeBeamReconstructionFilter.h:27, > from > /home/michel/devel/git/RTK/examples/FirstReconstruction/FirstCudaReconstruction.cxx:5: > /home/michel/devel/git/RTK/utilities/ITKCudaCommon/include/itkCudaUtil.h:33:10: > fatal error: cuda.h: Not such file or directory > 33 | #include <cuda.h> > > > Best regards, > Mikhail > > _______________________________________________ > Rtk-users mailing list > Rtk-users@public.kitware.com > https://public.kitware.com/mailman/listinfo/rtk-users >
_______________________________________________ Rtk-users mailing list Rtk-users@public.kitware.com https://public.kitware.com/mailman/listinfo/rtk-users