[Insight-developers] nvcc compilation of ITK

Luis Ibanez luis.ibanez at kitware.com
Sat Feb 19 18:41:04 EST 2011


Hi Richard,

You may want to try this one:

http://svn.na-mic.org/NAMICSandBox/trunk/CUDA-ITK/CMake/cuda/

http://svn.na-mic.org/NAMICSandBox/trunk/CUDA-ITK/CMake/cuda/FindCUDA.cmake


   Luis


-----------------------------------------
On Tue, Feb 8, 2011 at 11:22 PM, Richard Beare <richard.beare at gmail.com> wrote:
> Hi,
> I'm testing a project done by some students last year and discussed on
> this list. I'm hoping to produce a more ITK-like compilation process.
> The best way to do this appears to be to use nvcc as the main compiler
> for ITK (which should end up compiling most of the conventional c++
> code with gcc) so that any cuda enabled filters can be compiled
> transparently. There are appear to be some old discussions on this
> topic that show up. I was wondering whether there have been any recent
> tests, and whether the version of FindCUDA included with the recent
> versions of CMake is appropriate for the job. Are modifications to the
> main ITK CMake file available anywhere. The quick test I did seemed to
> result in c++ parameters being passed direct to nvcc, resulting in
> failures to configure:
>
> e.g.
>
>
> Run Build Command:/opt/local/bin/gmake "cmTryCompileExec/fast"
> /opt/local/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
> CMakeFiles/cmTryCompileExec.dir/build
> gmake[1]: Entering directory `/Users/richardb/Build/BI_nvcc/CMakeFiles/CMakeTmp'
> "/Applications/CMake 2.8-1.app/Contents/bin/cmake" -E
> cmake_progress_report
> /Users/richardb/Build/BI_nvcc/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o
> /usr/local/cuda/bin/nvcc    -o
> CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o   -c
> /Users/richardb/Build/BI_nvcc/CMakeFiles/CMakeTmp/testCCompiler.c
> Linking C executable cmTryCompileExec
> "/Applications/CMake 2.8-1.app/Contents/bin/cmake" -E
> cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
> /usr/local/cuda/bin/nvcc      -Wl,-search_paths_first
> -headerpad_max_install_names
> CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o  -o cmTryCompileExec
> nvcc fatal   : Unknown option 'Wl,-search_paths_first'
> gmake[1]: *** [cmTryCompileExec] Error 255
>
>
> Thanks
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list