2024-03-25 13:50:23 +01:00
|
|
|
#include "common.cuh"
|
|
|
|
|
|
|
|
#define CUDA_GET_ROWS_BLOCK_SIZE 256
|
2025-01-16 16:43:38 +01:00
|
|
|
#define CUDA_GET_ROWS_BACK_BLOCK_SIZE 256
|
2024-03-25 13:50:23 +01:00
|
|
|
|
2025-04-30 23:12:59 +02:00
|
|
|
void get_rows_cuda(
|
|
|
|
const void * src0_d, ggml_type src0_type, const int32_t * src1_d, void * dst_d, ggml_type dst_type,
|
|
|
|
int64_t ne00, size_t nb01, size_t nb02, size_t nb03,
|
|
|
|
int64_t ne10, int64_t ne11, int64_t ne12, size_t nb10, size_t nb11, size_t nb12,
|
|
|
|
size_t nb1, size_t nb2, size_t nb3,
|
|
|
|
cudaStream_t stream);
|
|
|
|
|
2024-03-25 13:50:23 +01:00
|
|
|
void ggml_cuda_op_get_rows(ggml_backend_cuda_context & ctx, ggml_tensor * dst);
|
2025-01-16 16:43:38 +01:00
|
|
|
|
|
|
|
void ggml_cuda_op_get_rows_back(ggml_backend_cuda_context & ctx, ggml_tensor * dst);
|