Hi Scott,

MITK does not support CUDA. However, according to the documentation of the 
CMake FindCUDA module [1], you should be able to extend the 
mitk_create_module() function to support CUDA. As shown in [2], 
mitk_create_module() boils down to a call to add_library() for most scenarios. 
FindCUDA provides a cuda_add_library() function. For example, you could 
introduce a new CUDA flag to the mitk_create_module() function which would lead 
to a call to cuda_add_library() instead of add_library(). Same for 
[cuda_]add_executable(). Of course you would also need to add CUDA as an 
external dependency to MITK via find_package(), if you didn't do that already.

Best regards,
Stefan

[1] https://cmake.org/cmake/help/v3.2/module/FindCUDA.html
[2] 
https://github.com/MITK/MITK/blob/master/CMake/mitkFunctionCreateModule.cmake#L453-L455

________________________________________
Von: Ostapovicz, Scott (GE Healthcare, consultant) [scott.ostapov...@ge.com]
Gesendet: Mittwoch, 23. März 2016 19:12
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] Using CU files with mitk_create_module

I am new to using CUDA.  I have an module that is being built with some CUDA 
files.  How do I get the CUDA compiler to run on these CU files?

mitk_create_module(test PACKAGE_DEPENDS CUDA INCLUDE_DIRS cuda_dir noncuda_dir)

with cuda_dir containing *.cu files and noncuda_dir containing *cpp files.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to