File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed
Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ if (XSIMD_ENABLE_WERROR)
208208endif ()
209209
210210add_subdirectory (doc )
211+ add_subdirectory (architectures)
211212
212213if (EMSCRIPTEN)
213214 set_target_properties (test_xsimd PROPERTIES LINK_FLAGS "-s MODULARIZE=1 -s EXPORT_NAME=test_xsimd_wasm -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -lembind" )
Original file line number Diff line number Diff line change 1+ set (INTEL_PROCESSORS
2+ knl knm skylake-avx512 cannonlake icelake-client
3+ icelake-server cascadelake cooperlake tigerlake sapphirerapids alderlake
4+ rocketlake graniterapids graniterapids-d znver4)
5+ set (CMAKE_CXX_FLAGS "" )
6+
7+ foreach (INTEL_PROCESSOR ${INTEL_PROCESSORS} )
8+ check_cxx_compiler_flag(-march=${INTEL_PROCESSOR} FLAG_SUPPORTED_${INTEL_PROCESSOR} )
9+ if (FLAG_SUPPORTED_${INTEL_PROCESSOR} )
10+ message (STATUS ${INTEL_PROCESSOR} )
11+ add_library (test_${INTEL_PROCESSOR} OBJECT dummy.cpp)
12+ target_compile_options (test_${INTEL_PROCESSOR} PRIVATE -march=${INTEL_PROCESSOR} )
13+ target_include_directories (test_${INTEL_PROCESSOR} PRIVATE ${XSIMD_INCLUDE_DIR} )
14+ add_dependencies (xtest test_${INTEL_PROCESSOR} )
15+ if (ENABLE_XTL_COMPLEX)
16+ target_compile_features (test_${INTEL_PROCESSOR} PRIVATE cxx_std_14)
17+ target_compile_definitions (test_${INTEL_PROCESSOR} PRIVATE XSIMD_ENABLE_XTL_COMPLEX=1)
18+ target_link_libraries (test_${INTEL_PROCESSOR} PRIVATE xtl)
19+ endif ()
20+ endif ()
21+ endforeach ()
22+
Original file line number Diff line number Diff line change 1+ #include < xsimd/xsimd.hpp>
2+
3+ // Basic check: can we instantiate a batch for the given compiler flags?
4+ xsimd::batch<int > come_and_get_some (xsimd::batch<int > x, xsimd::batch<int > y)
5+ {
6+ return x + y;
7+ }
You can’t perform that action at this time.
0 commit comments