Skip to content

What does DGGML_NATIVE build option do? #10230

Answered by danbev
abitrolly asked this question in Q&A
Discussion options

You must be logged in to vote

This disables -march=native which is a GCC/Clang flag used to specify that the compiler should optimize for the host processor. If this set to true it enables all instruction set extensions supported by the host processor. The compiler probes the host system's processor for its capabilities like using cpuid and then adds then appropriate compiler flags that are available on the current system.

Portability will be reduced as if the target machine does not support the same instructions, running the binary will lead to an illegal instruction error.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by abitrolly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants