When compiling an open source project DB engine paradigms
,
The project GitHub address reported an error as follows
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h:10325:1: error: inlining failed in call to always_inline '__m256i _mm256_mmask_i32gather_epi32(__m256i, __mmask8, __m256i, const int*, int)': target specific option mismatch
_mm256_mmask_i32gather_epi32 (__m256i __v1_old, __mmask8 __mask,
As soon as I see it, I’ll put cmakelists under the root directory of this project.txt
Add -mavx512vl
! it’s awesome!
# Compiler flags for the different targets
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mtune=native -std=c++14 -fPIC -Wall -Wextra -Wno-psabi -fno-omit-frame-pointer -Wno-unknown-pragmas -mavx512vl")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -Wextra -fno-omit-frame-pointer -march=native -fdiagnostics-color -mavx512vl")
Read More:
- Linux Error: CMake Error in CMakeLists.txt: No CMAKE_CXX_COMPILER could be found.
- [Solved] catkin_make error: CMake Error at CMakeLists.txt:1:
- [Solved] Ubuntu 18.04 Install opencv3.2.0 and opencv_contrib Error
- Fastplanner compilation error: Could not find a package configuration file provided by “cmake_modules”
- NXP mx8 Platform tensorflow-lite build error [How to Solve]
- [Solved] catkin_make Error: pkg_resources.DistributionNotFound: pyparsing
- error: ‘integer_sequence’ is not a member of ‘std’ [How to Solve]
- [Solved] Cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd
- [Solved] rs_to_velodyne-master compile Error: POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PPFRGBSignature
- MAC: Clion configure C compiler Error: The C compiler identification is unknown
- Sublime text 3 compiles and executes C/C++ programs directly
- [Solved] Linux C++ warning: ISO C++ forbids converting a string constant to ‘char*‘ [-Wwrite-strings]
- arm-eabi-gcc: command not found [How to Solve]
- Petalinux-boot –jtag error [How to Solve]
- [Solved] Linux Error: mipsel-linux-gcc: fatal error: no input files
- [Solved] ubuntu makefile Cross-compilation error: file not recognized: file format not recognized
- [Solved] pxp_lib.h:19:10: fatal error: linux/pxp_device.h: No such file or directory
- Runtime error – [xcodeproj] unknown object version. [How to Solve]
- [Solved] configure: error: no acceptable C compiler found in $PATH