diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2026-07-28 20:53:57 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2026-07-29 11:26:40 +0800 |
| commit | 522db0c5b1dc28b4f3255d959e6cb9135064962d (patch) | |
| tree | 99341558cf0f2a86b589bb61019df2f330a6ab3d /Makefile | |
| parent | 8c419c6efe69adfc4424e598b4fa65bbb06c1b5a (diff) | |
| download | lex-522db0c5b1dc28b4f3255d959e6cb9135064962d.tar.gz | |
Compile with march=native and measure perf.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,7 +1,7 @@ CC = cc CXX = c++ -CFLAGS = -O2 -std=c11 -Wall -Wextra -CXXFLAGS = -O2 -Wall -Wextra +CFLAGS = -march=native -O2 -std=c11 -Wall -Wextra +CXXFLAGS = -march=native -O2 -O2 -Wall -Wextra INCLUDES = -Ideps/include LLAMA_TAG = b10107 @@ -56,11 +56,12 @@ deps/lib/libllama.a deps/lib/libggml.a deps/lib/libggml-cpu.a: cmake -S $(LLAMA_SRC_DIR) -B $(LLAMA_BUILD) \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=OFF \ - -DGGML_OPENMP=OFF \ # Disable OpenMP; use native OpenBSD pthreads - -DGGML_VULKAN=OFF \ # Disable Vulkan GPU backend for CPU-only build + -DGGML_OPENMP=OFF \ + -DGGML_VULKAN=OFF \ -DLLAMA_BUILD_APP=OFF \ -DLLAMA_BUILD_COMMON=OFF \ -DLLAMA_BUILD_TESTS=OFF \ + -DLLAMA_BUILD_UI=OFF \ -DLLAMA_BUILD_EXAMPLES=OFF \ -DLLAMA_BUILD_SERVER=OFF \ -DLLAMA_BUILD_TOOLS=OFF |
