Skip to content
Snippets Groups Projects
Commit 9602fca0 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

WIP: COMP: active SIMD extension on request (hardware dependent)

parent 3c88e578
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,9 @@ ExternalProject_Add(ITK
-DITK_USE_SYSTEM_TIFF:BOOL=ON
-DITK_USE_SYSTEM_PNG:BOOL=ON
-DITK_FORBID_DOWNLOADS:BOOL=ON
-DITK_USE_SSE_FLAGS:BOOL=OFF
-DVNL_CONFIG_ENABLE_SSE2:BOOL=OFF
-DVNL_CONFIG_ENABLE_SSE2_ROUNDING:BOOL=OFF
${ITK_SB_CONFIG}
DEPENDS ${ITK_DEPENDENCIES}
CMAKE_COMMAND ${SB_CMAKE_COMMAND}
......
diff -burN InsightToolkit-4.12.0.orig/CMakeLists.txt InsightToolkit-4.12.0/CMakeLists.txt
--- InsightToolkit-4.12.0.orig/CMakeLists.txt 2017-08-22 11:53:54.920931663 +0200
+++ InsightToolkit-4.12.0/CMakeLists.txt 2017-08-25 17:45:01.603901798 +0200
@@ -146,6 +146,9 @@
option(ITK_DYNAMIC_LOADING "Support run-time loading of shared libraries" ON)
mark_as_advanced(ITK_DYNAMIC_LOADING)
+option(ITK_USE_SSE_FLAGS "Enable SIMD optimization flags (hardware dependant)." ON)
+mark_as_advanced(ITK_USE_SSE_FLAGS)
+
#-----------------------------------------------------------------------------
# Wrapping options
option(ITK_WRAP_PYTHON "Build Python support" OFF)
diff -burN InsightToolkit-4.12.0.orig/Modules/Core/Common/CMakeLists.txt InsightToolkit-4.12.0/Modules/Core/Common/CMakeLists.txt
--- InsightToolkit-4.12.0.orig/Modules/Core/Common/CMakeLists.txt 2017-08-22 11:53:56.200940262 +0200
+++ InsightToolkit-4.12.0/Modules/Core/Common/CMakeLists.txt 2017-08-25 17:45:30.636094558 +0200
@@ -42,8 +42,9 @@
# Check if this platform support the sse2 rounding functions for 32 and 64 bits
-include(CheckSupportForSSERounding)
-
+if(ITK_USE_SSE_FLAGS)
+ include(CheckSupportForSSERounding)
+endif()
# Test for atomics and other compiler intrinsics
include(itkCheckBuiltins)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment