Hi Johannes,

this rather sounds like a CUDA / CMake question to me. MITK does not 
provide anything special for CUDA support.

Did you try to use CUDA_COMPILE instead of CUDA_WRAP_SRCS? You would 
have to add ${CUDA_GENERATED_FILES} to the contents of the CPP_FILES 
variable in your files.cmake file for that.

Best,
Sascha

On 08/22/2013 04:07 PM, Johannes Totz wrote:
> Hi,
>
> I'm trying to compile a CUDA kernel into an MITK module, along with
> other cpp files.
>
> Doing things like...
>
> CUDA_WRAP_SRCS(myModule OBJ CUDA_GENERATED_FILES mykernel.cu)
> MITK_CREATE_MODULE(myModule
>     EXPORT_DEFINE ...
>     INCLUDE_DIRS ...
>     DEPENDS ...
>     PACKAGE_DEPENDS ...
>     ADDITIONAL_LIBS ${CUDA_GENERATED_FILES}
> )
> include_directories(${CUDA_TOOLKIT_INCLUDE})
> target_link_libraries(myModule
>     ${CUDA_CUDA_LIBRARY} ${CUDA_CUDART_LIBRARY})
>
> ...puts the nvcc output on the linker command line; and host-code compiles.
> But the commands to actually start nvcc are never generated, so the
> file(s) in CUDA_GENERATED_FILES don't exist.
>
> Any idea how to get this to work?
> This is on Windows, CUDA 5, Visual Studio 2010.
>
>
>
> Thanks,
>
> Johannes
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to