nm97
(Hrach)
December 24, 2019, 7:43am
1
Hi,
I would like to know what would be the best way to build ITK for different set of CPU instrctions.
I get crash for certain machines that do not have SSE4 or SSE3 CPU instruction.
Is it possible to build multiple dlls corresponding to different set of instructions enabled and control the pick the right dlls from the code?
Any help would be appreciated
Thank you,
Hrach.
blowekamp
(Bradley Lowekamp)
December 24, 2019, 12:43pm
2
Set these CMAKE variables:
nm97
(Hrach)
December 24, 2019, 1:36pm
3
As I understand by this way I turn off the optimizations.
This will cause slower performance.
Am I right?
dzenanz
(Dženan Zukić)
December 25, 2019, 4:36pm
4
You can explore what is done with optimization flags in this file:
# trict-null-sentinel Check the set of common warning flags supported by C and C++ compilers
# check_compiler_warning_flags(<c_flags_var> <cxx_flags_var>)
# <c_flags_var> - variable to store valid C warning flags
# <cxx_flags_var> - variable to store valid CXX warning flags
# This internally calls the check_c_compiler_flag and check_cxx_compiler_flag macros.
# To create a portable build system, it is best to not
# test for platforms, but to test for features.
#
# Instead of testing "if Windows then do this", test for
# "if the -Wno-invalid-offsetof flag works then use it".
#
# Typical use of this module is:
#
# include(CheckCompilerWarningFlags)
# check_compiler_warning_flags(C_WARNING_FLAGS CXX_WARNING_FLAGS)
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${C_WARNING_FLAGS}")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_WARNING_FLAGS}")
This file has been truncated. show original