11/18/2023 0 Comments Sse2 windows cmakeSSE2, more aggressive optimization level and inlining, etc.) and everything. Build env: vs2019 16.10 cmake 3.19.8 Note sse2 release build win64 works fine Steps to reproduce: clone the last master of astc-encoder Configure: cmake -B build -A Win32 -DISASSE2ON Build: cmake -build build -config Release -target. 3 include (TestCXXAcceptsFlag ) 4 5 if ( CMAKE_SYSTEM_NAME MATCHES "Linux" ) 6 if ( CPU MATCHES "x86_64" OR CPU MATCHES "i.86" ) 7 exec_program (cat ARGS "/proc/cpuinfo" OUTPUT_VARIABLE CPUINFO ) 8 9 string ( REGEX REPLACE "^.*(sse).*$" " \\ 1" _SSE_THERE $ " _AVX2_TRUE ) 128 CHECK_CXX_ACCEPTS_FLAG ( "-mavx2" _AVX2_OK ) 129 endif () 130 elseif ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) 131 # TODO 132 if ( ARCH STREQUAL win32 OR ARCH STREQUAL å4 ) 133 set ( _SSE_TRUE true ) 134 set ( _SSE_OK true ) 135 set ( _SSE2_TRUE true ) 136 set ( _SSE2_OK true ) 137 endif () 138 endif () 139 140 include (FindPackageHandleStandardArgs ) 141 find_package_handle_standard_args ( SSE 142 REQUIRED_VARS _SSE_TRUE _SSE_OK 143 FAIL_MESSAGE "Could not find hardware support for SSE" ) 144 set ( FPHSA_NAME_MISMATCHED ON ) 145 find_package_handle_standard_args ( SSE2 146 REQUIRED_VARS _SSE2_TRUE _SSE2_OK 147 FAIL_MESSAGE "Could not find hardware support for SSE2" ) 148 find_package_handle_standard_args ( SSE3 149 REQUIRED_VARS _SSE3_TRUE _SSE3_OK 150 FAIL_MESSAGE "Could not find hardware support for SSE3" ) 151 find_package_handle_standard_args ( SSSE3 152 REQUIRED_VARS _SSSE3_TRUE _SSSE3_OK 153 FAIL_MESSAGE "Could not find hardware support for SSSE3" ) 154 find_package_handle_standard_args ( SSE4_1 155 REQUIRED_VARS _SSE41_TRUE _SSE41_OK 156 FAIL_MESSAGE "Could not find hardware support for SSE4.1" ) 157 find_package_handle_standard_args ( SSE4_2 158 REQUIRED_VARS _SSE42_TRUE _SSE42_OK 159 FAIL_MESSAGE "Could not find hardware support for SSE4. CMake + Ctest + CPack can be seen as a complete. Since compiler option always switched on by default no need to switch it on manually. At the source level, the GCC/Clang SIMD Vector Extensions can be used and. This will also turn on LLVMâs autovectorization passes, so no source modifications are necessary to benefit from SIMD. To enable SIMD, pass the -msimd128 flag at compile time. In internal.hpp, the only place where CVSSE2 can be defined to 1 is inside a 2)> block. Emscripten supports the WebAssembly SIMD proposal when using the WebAssembly LLVM backend.As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) CMake source code syntax highlighting (style: standard) with prefixed line numbers.Īlternatively you can here view or download the uninterpreted source code file.Ä¡ # Check if SSE instructions are available on the machine where 2 # the project is compiled. Seems to be all 64-bit processors has SSE2. Even though I set ENABLESSE and ENABLESSE2 to true in CMake, I see that CVSSE2 is not defined in the generated projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |