Skip to content

Fix Makefile echo escape codes (by removing them). - #418

Merged
sw merged 1 commit into
ggml-org:masterfrom
KerfuffleV2:fix-makefile-output
Mar 23, 2023
Merged

sw merged 1 commit into
ggml-org:masterfrom
KerfuffleV2:fix-makefile-output

Conversation

@KerfuffleV2

Copy link
Copy Markdown
Contributor

Trivial change to fix output from the Makefile when printing the line about running with -h for help. To properly output the vt100/ANSI escape codes, it needs to be echo -e not just echo which will output the string like:

\x1b[36mrun ./main -h for help\x1b[0m

The echo line also can use single quotes because variable interpolation isn't required here.

@gjmulder gjmulder added documentation Improvements or additions to documentation build Compilation issues labels Mar 23, 2023
@sw

sw commented Mar 23, 2023

Copy link
Copy Markdown
Contributor

The colors used to work on macOS and were broken on Linux, now it's the reverse (see CI checks).

@KerfuffleV2

KerfuffleV2 commented Mar 23, 2023 •

Copy link
Copy Markdown
Contributor Author

@sw

I don't have access to a Mac. Can you please try these for me?

echo -e '\033[36mrun ./main -h for help\033[0m'

printf '\033[36mrun ./main -h for help\033[0m\n'

I can confirm both of those options are fine on Linux.

@sw

sw commented Mar 23, 2023

Copy link
Copy Markdown
Contributor

Me neither, but I don't think using octal instead of hex is going to do the trick. If no one else can check this on macOS, you may push the printf variant which looks fine to me, then we can run the CI again.

@KerfuffleV2

KerfuffleV2 commented Mar 23, 2023 •

Copy link
Copy Markdown
Contributor Author

@sw An alternative approach would be to special case it and have different behavior based on whether or not it was running on Mac.

Personally, I don't love the idea of my Makefiles spitting out escape codes in the first place so I'd also have no problem with ripping out that part and just making it a normal line of text. There are other ways to make it stand out like with blank lines.

==== run ./main -h for help ====

Or something along those lines. That approach also works better for people with stuff like colorblindness. What do you think?

edit: I just went with that approach.

@KerfuffleV2
KerfuffleV2 force-pushed the fix-makefile-output branch from 1e54f30 to f58154a Compare March 23, 2023 11:17
@KerfuffleV2 KerfuffleV2 changed the title Fix Makefile echo escape codes. Fix Makefile echo escape codes (by removing them). Mar 23, 2023
@sw
sw merged commit a140219 into ggml-org:master Mar 23, 2023
@KerfuffleV2
KerfuffleV2 deleted the fix-makefile-output branch May 28, 2023 08:45
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
* MMQ for iq2_k

* This works

* MMQ for iq3_k

* MMQ for iq2_ks

* Fix iq2_ks

---------

Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
ricardodeazambuja pushed a commit to ricardodeazambuja/llama.cpp that referenced this pull request Nov 2, 2026
… order (ggml-org#418)

Makes the float4 CUDA RMS norm path the default (GGML_CUDA_RMS_NORM_VECTOR=0 restores the scalar order) and pins its rounding order with explicit intrinsics. Fused norm kernels get a matching float4 variant and fuse only when they reproduce the unfused norms bit for bit.
KyleAnthonyShepherd added a commit to KyleAnthonyShepherd/llama.cpp that referenced this pull request Nov 27, 2026
…gml-org#417

ggml-org#411 short-conv chain, ggml-org#412 tanh-mul-add/sub, router norm and add + rms_norm,
ggml-org#413 gathered rel bias in the vector FA, ggml-org#414 depth mix, ggml-org#415 small-batch MMVF / vector FA,
ggml-org#417 MoE vector kernel 4 rows per block. Adapted to the fork's mmvf signature,
add_rms_norm kernel name and test constructor. ggml-org#416 and ggml-org#418 not taken.

Assisted-by: Claude Opus 5.5
oobabooga pushed a commit to oobabooga/llama.cpp that referenced this pull request Dec 3, 2026
…gml-org#386 graph fold (ggml-org#419)

* pr-set : Inkling 2 decode pins (ggml-org#411-ggml-org#418) and the ggml-org#386 graph fold

* pr-set : add ggml-org#421 (one MoE cache entry per expert weight for looped layers), repin ggml-org#251, repin ggml-org#412/ggml-org#413/ggml-org#414/ggml-org#418 for the review fixes

* pr-set : repin ggml-org#421 for the trace and tuner fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Compilation issues documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants