<div dir="ltr">Np pb and thanks for the feedback!<div>Simon</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 24, 2022 at 11:48 AM Vincent Libertiaux <<a href="mailto:vl@xris.eu">vl@xris.eu</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>
    <div>On 24.02.22 10:02, Simon Rit wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi,
        <div>It seems that CMake has trouble finding Cuda. What version
          of cmake are you using? Is your cmake
          variable CMAKE_CUDA_COMPILER set to the correct nvcc compiler?</div>
        <div>A <a href="https://github.com/SimonRit/ITKCudaCommon/issues/8" target="_blank">similar problem</a> has been reported
          for the CudaCommon package so I'm not sure I have the solution
          yet. I haven't been able to reproduce it on my side...</div>
        <div>Simon</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Feb 24, 2022 at 9:52
          AM Vincent Libertiaux <<a href="mailto:vl@xris.eu" target="_blank">vl@xris.eu</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>
            <p>Hi Simon,</p>
            <p>I have trouble compiling the git version of RTK.  Here
              are the steps I followed:</p>
            <p>- Compiled ITK 5.3rc without checking the RTK Module</p>
            <p>- In CMake (RTK project), I set up the ITK_DIR variable
              to the directory where I built ITK</p>
            <p>
            </p>
            <p>Configuration is ok, unfortunately, generation shouts a
              huge amount of errors at me:</p>
            <p style="margin:0px;text-indent:0px">
              <span style="color:rgb(255,0,0)">CMake Error at
/home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleHeaderTest.cmake:87
                (add_executable): Target "RTKHeaderTest1" 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?
                Call Stack (most recent call first):
/home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleMacros.cmake:207
                (itk_module_headertest)
/home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleExternal.cmake:162
                (itk_module_impl) CMakeLists.txt:216 (include)
              </span></p>
            <p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">CMake Error at
/home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleHeaderTest.cmake:87
                (add_executable): Target "RTKHeaderTest1" 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?
                Call Stack (most recent call first):
/home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleMacros.cmake:207
                (itk_module_headertest)
/home/vincent/IPTools/InsightToolkit-5.3rc02/CMake/ITKModuleExternal.cmake:162
                (itk_module_impl) CMakeLists.txt:216 (include)</span></p>
            <p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">
              </span></p>
            <p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">
              </span></p>
            <p>The list goes on for quite a while. I have probably
              misunderstood the compilation instruction against an
              existing ITK. Would you mind to point me in the right
              direction ?</p>
            <p>
            </p>
            <p>Thank you,</p>
            <p>
            </p>
            <p>Vincent
            </p>
            <p>
            </p>
            <p>
            </p>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <p>Hi Simon,</p>
    <p>my sincerest apologies.  I downloaded the latest version of CMake
      this morning but forgot that I modified the itk-module-init.cmake
      yesterday as my previous version didn't recognize
      "find_package(CUDAToolkit)".  I replaced it with
      "find_package(CUDA" as per a suggestion on SO. I just changed it
      back, configured, compiled and tested.</p>
    <p>I obtain the same message as yours, "Description: Cuda Error :
      out of memory" so I think you can merge your modification.</p>
    <p>Thanks and sorry again,</p>
    <p>Vincent<br>
    </p>
  </div>

</blockquote></div>