Hi Federico,

we do not use OpenMP pragmas / API in MITK so support for it is not 
generally enabled.

You can compile your own MITK module or plug-in easily with OpenMP 
support by modifying its CMakeLists.txt. E.g. for a module, you could do:

# Enable OpenMP support
find_package(OpenMP)
if(NOT OPENMP_FOUND)
   message(SEND_ERROR "OpenMP is not available.")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")

MITK_CREATE_MODULE(...)


Best,
Sascha


On 06/24/2013 05:25 PM, Federico Milano wrote:
> Hi. Is it possible to compile MITK with OpenMP support? If so, I 
> haven't found any cmake option to turn it on. If it is not supported, 
> could you suggest me where would you patch the build system to support 
> OpenMP?
>
> Thanks in advance,
>
> Federico


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to