-
Notifications
You must be signed in to change notification settings - Fork 0
Fix posix build #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix posix build #73
Conversation
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>
akapoor3518
left a comment
There was a problem hiding this 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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Tested for release, debug & normal build. Tested all models on posix & llama on fpga.
ggml_log.txt