Skip to content

Conversation

@dineshReddy6381
Copy link

Tested for release, debug & normal build. Tested all models on posix & llama on fpga.

ggml_log.txt

Dinesh Reddy added 2 commits October 29, 2025 03:13
1.Disabled AMX (Advanced Matrix Extensions):
-mno-amx-tile -mno-amx-int8 -mno-amx-bf16 → Don't use AMX instructions
-mno-avx512bf16 → Don't use AVX512-BF16 instructions
-mno-avxvnni → Don't use AVX-VNNI instructions
2. CMake Flags (-DGGML_AMX_TILE=OFF -DGGML_AMX_INT8=OFF -DGGML_AMX_BF16=OFF -DGGML_AVX512_BF16=OFF -DGGML_AVX_VNNI=OFF). Control CMake's build configuration and do two things:
  -Prevent explicit compiler flags
  -Prevent preprocessor defines which enables AMX-specific code paths in the source code

Signed-off-by: Dinesh Reddy <dreddy@ws02.tsavoritesi.net>
…e. Second call to print profiling results (in tsi_cleanup()) has been commented out.

Signed-off-by: Dinesh Reddy <dreddy@ws02.tsavoritesi.net>
Copy link

@akapoor3518 akapoor3518 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comment i am approving it

if [ "$(echo "$1" | tr '[:upper:]' '[:lower:]')" = "release" ];
then
cmake -B build-posix -DGGML_TSAVORITE=ON -DGGML_TSAVORITE_TARGET=posix -DCMAKE_C_FLAGS="-DGGML_PERF_RELEASE -DGGML_TARGET_POSIX -DGGML_TSAVORITE" -DCMAKE_CXX_FLAGS="-DGGML_PERF_RELEASE -DGGML_TARGET_POSIX -DGGML_TSAVORITE"
cmake -B build-posix -DGGML_TSAVORITE=ON -DGGML_TSAVORITE_TARGET=posix -DGGML_NATIVE=ON -DGGML_AMX_TILE=OFF -DGGML_AMX_INT8=OFF -DGGML_AMX_BF16=OFF -DGGML_AVX512_BF16=OFF -DGGML_AVX_VNNI=OFF -DCMAKE_C_FLAGS="-DGGML_PERF_RELEASE -DGGML_TARGET_POSIX -DGGML_TSAVORITE -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-avx512bf16 -mno-avxvnni" -DCMAKE_CXX_FLAGS="-DGGML_PERF_RELEASE -DGGML_TARGET_POSIX -DGGML_TSAVORITE -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-avx512bf16 -mno-avxvnni"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we make any change for FPGA also?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have tested on both fpga & posix

@dineshReddy6381 dineshReddy6381 merged commit 7c42cff into master Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants