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:
- How to Solve C++ Error: “no matching function for call to ‘atoi/atof’”
- How to Solve Error vim :call CompileRunGcc()
- How to fix the ERROR: Failed to build gem native extension in Centos 8
- Linux Nagios failed to log in to internal server error (Fixed)
- Nginx Error: [emerg] bind() to [::]:80 failed (98: Address already in use)
- [Solved] Web server failed to start. Port 8080 was already in use.
- Github Clone Failed SSL_ERROR_SYSCALL in connection to github.com:443
- Solutions to errors in installing xunsearch engine in centos8.0
- How to Solve labelme Install Error in Ubuntu
- [Solved] Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables –wait -t na…
- [Solved] Virtual machine Failed to restart network Error: Error:Failed to start LSB: Bring up/down networking
- [Solved] OCI runtime create failed: runc create failed: unable to start container process:
- [Solved] secureCRT Failed to Login Ubuntu20.04 Error: Key exchange failed
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- How to Solve Ubuntu “Failed to fetch” Error
- Linux Error: Failed to connect to ::1: No route to the host
- Ubuntu Startup Error: warning failed to connect to lvmetad,falling back to device scanning
- How to Create Threads in Linux
- [Solved] Git Error: OpenSSL SSL_read: Connection was reset, errno 10054和Failed to connect to github.com port 443
- You might want to save ‘/run/in itramf s/rdsosreport.txt“ to a USB stick or bootaf ter mounting