Is the LLAMA_NATIVE flag enabled by default? And now how to determine which instructions are used? #4007
-
Should I specify -DLLAMA_NATIVE=ON/LLAMA_NATIVE=1 when building? And how to determine which instructions are used? @netrunnereve , Sorry to bother you, could you please resolve my doubts. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I'm not who you asked, but there's no As for turning it on in cmake, it just tells the compiler to use the features that are available on the machine that's compiling. If you only plan on running the executable on the same machine you compiled it on, then turning on native shouldn't have a disadvantage. If you're going to copy it somewhere else, publish it for people to download, etc then if the system it eventually runs on doesn't support the same features as the one it was compiled on then you'll run into issues. |
Beta Was this translation helpful? Give feedback.
-
Looks like the others have already answered you but basically |
Beta Was this translation helpful? Give feedback.
Ahh, there's actually some weird stuff (in my opinion, anyway) with the log system. That output still gets produced, if I understand what you're talking about:
However, if you compile with logging, you won't see it on the console anymore. If you compile without logging, then it goes to the console. However, the cmake configuration here doesn't let you turn off logging, so...