Skip to content

Commit

Permalink
remove unused parameter
Browse files Browse the repository at this point in the history
ggml-ci
  • Loading branch information
slaren committed Nov 21, 2024
1 parent 35386e8 commit 0a737d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ggml/src/ggml-cuda/argmax.cu
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "common.cuh"
#include "sum.cuh"

static __global__ void argmax_f32(const float * x, int32_t * dst, const int64_t ncols, const int64_t nrows) {
static __global__ void argmax_f32(const float * x, int32_t * dst, const int64_t ncols) {
const int64_t row = blockIdx.x;

float maxval = -FLT_MAX;
Expand Down Expand Up @@ -85,5 +85,5 @@ void ggml_cuda_argmax(ggml_backend_cuda_context & ctx, ggml_tensor * dst) {
const dim3 blocks_dim(std::min<int64_t>(ne00, 1024), 1, 1);
const dim3 blocks_num(num_blocks, 1, 1);

argmax_f32<<<blocks_num, blocks_dim, 0, stream>>>(src0_d, dst_d, ne00, nrows);
argmax_f32<<<blocks_num, blocks_dim, 0, stream>>>(src0_d, dst_d, ne00);
}

0 comments on commit 0a737d2

Please sign in to comment.