Skip to content

cuda : remove unused ids and type_src0 parameters - #32018

Merged
danbev merged 1 commit into
ggml-org:masterfrom
danbev:cuda-quantize-row-q8-1
Nov 10, 2026
Merged

danbev merged 1 commit into
ggml-org:masterfrom
danbev:cuda-quantize-row-q8-1

Conversation

@danbev

@danbev danbev commented Nov 10, 2026

Copy link
Copy Markdown
Member

Overview

This commit removes the unused ids and type_src0 parameters from quantize_row_q8_1_cuda.

Additional information

The motivation for this is that these parameters were required in the past because this function was used in combination with the function pointer quantize_cuda_t, which has been now been removed, and this function no longer needs to adher to the function pointer signature.

Refs: #31884.

Requirements

This commit removes the unused ids and type_src0 parameters from
quantize_row_q8_1_cuda.

The motivation for this is that these parameters were required in the
past because this function was used in combination with the function
pointer quantize_cuda_t, which has been now been removed, and this
function no longer needs to adher to the function pointer signature.

Refs: ggml-org#31884.
@danbev
danbev requested a review from a team as a code owner November 10, 2026 13:41
@github-actions github-actions Bot added ggml changes relating to the ggml tensor library for machine learning CUDA Related to the CUDA backend labels Nov 10, 2026
@danbev
danbev merged commit cd4ed90 into ggml-org:master Nov 10, 2026
19 checks passed
@danbev
danbev deleted the cuda-quantize-row-q8-1 branch November 10, 2026 17:27
Cinderella-Man added a commit to Cinderella-Man/miner-llama that referenced this pull request Nov 13, 2026
114 upstream commits after b12246. 14 files conflicted in 28 hunks; every fork switch keeps its default (off),
upstream's changes are taken except where noted:
- ggml-org#32001 moves the CUDA graph state to graph.cuh: the fork's fields (C779/C826 patch templates and groups, the
  profile phases, capture_gen) go into upstream's struct; instances are upstream's ggml_cuda_graph_instance
  (ggml-org#31284), so the patch path instantiates into .handle and records the cluster dims.
- ggml-org#32009 reuses the scheduler when its parameters allow: taken (sched_params); C812's single-split call uses it.
- ggml-org#32089 (graph results reused across reserves) is not taken: the fork keeps its per-size result arenas
  (gf_res_key, gf_res_invalidate).
- ggml-org#32043 (graph metadata pages left untouched) is the fork's earlier port, kept with LLAMA_GRAPH_META_CALLOC.
- ggml-org#30565 moves the NextN API into llama.h and renames llama_set_embd_state_src to llama_set_ctx_state_src: the
  fork's own declarations stay in llama-ext.h, which common/speculative.cpp keeps including.
- ggml-org#31959 (should_use_mmvf takes the tensor): the Pascal BF16 and F32 multi-token paths call the new signature.
- ggml-org#28392 (FP8 KV cache): the KV layer's scales are set in the fork's member-by-name init.
- 40f4f4a (every sampling chain an output): the fork's loops kept, upstream's added.
- ggml-org#29801 removed three ops: GGML_OP_COUNT 103, RPC major 110 (stock 10 + 100).
Fixes for upstream API changes outside the conflicts: ggml-org#32018 (quantize_row_q8_1_cuda without ids and type) in
ggml-cuda.cu and mmvq-pascal-glu.cu; ggml-org#31896 (GGML_PREC_DEFAULT is GGML_PREC_UNDEFINED) in moe-persistent.cu;
ggml-org#32078 (graph_max_nodes without n_tokens) for the per-size schedulers; ggml-org#26048 renamed test_mul_mat_vec_fusion to
test_mul_mat_fusion: taken, but its cases keep the op names MUL_MAT_VEC_FUSION and MUL_MAT_VEC_FUSION_W4A8 that the
fork's records and check scripts select.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
edwardyoon pushed a commit to edwardyoon/focus-llama that referenced this pull request Nov 14, 2026
This commit removes the unused ids and type_src0 parameters from
quantize_row_q8_1_cuda.

The motivation for this is that these parameters were required in the
past because this function was used in combination with the function
pointer quantize_cuda_t, which has been now been removed, and this
function no longer needs to adher to the function pointer signature.

Refs: ggml-org#31884.
dzannotti added a commit to rcfa/strix-llama.cpp that referenced this pull request Nov 18, 2026
Step 10 (ggml-org#30517): Q6_K MMVQ now reads VDR_Q6_K_Q8_1_MMVQ = 2 ints per thread and the impl takes arrays; the fork's 4-column RDNA3.5 kernel steps kqs by get_vdr_mmvq() and now loads both ints, as upstream's vec_dot_q6_K_q8_1 does (it read only the first of the two before this fix, which would drop half of each block).
Step 100 (ggml-org#32018): quantize_row_q8_1_cuda lost its unused ids and type_src0 arguments.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
fencerJP pushed a commit to fencerJP/llama-apu that referenced this pull request Nov 21, 2026
This commit removes the unused ids and type_src0 parameters from
quantize_row_q8_1_cuda.

The motivation for this is that these parameters were required in the
past because this function was used in combination with the function
pointer quantize_cuda_t, which has been now been removed, and this
function no longer needs to adher to the function pointer signature.

Refs: ggml-org#31884.
Nindaleth pushed a commit to Nindaleth/llama.cpp that referenced this pull request Nov 26, 2026
This commit removes the unused ids and type_src0 parameters from
quantize_row_q8_1_cuda.

The motivation for this is that these parameters were required in the
past because this function was used in combination with the function
pointer quantize_cuda_t, which has been now been removed, and this
function no longer needs to adher to the function pointer signature.

Refs: ggml-org#31884.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CUDA Related to the CUDA backend ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants