Skip to content

Commit f8705a2

Browse files
CISCqnixsynapse
authored andcommitted
64bit multiplication [no ci]
1 parent 70e8b48 commit f8705a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/unary.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void ggml_cuda_op_log(ggml_backend_cuda_context & ctx, ggml_tensor * dst) {
200200

201201
template <float (*op)(float), typename T>
202202
static __global__ void unary_gated_op_kernel(const T * x, T * dst, const int64_t k, const int64_t n, const int64_t o) {
203-
const int64_t i = blockDim.x*blockIdx.x + threadIdx.x;
203+
const int64_t i = int64_t(blockDim.x)*blockIdx.x + threadIdx.x;
204204

205205
if (i >= k) {
206206
return;

0 commit comments

Comments
 (0)