Skip to content

Commit

Permalink
ggml-cuda.cu: Fix use of namespace start macro
Browse files Browse the repository at this point in the history
  • Loading branch information
KerfuffleV2 committed Nov 18, 2023
1 parent e29757e commit 26c1149
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ggml-cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -6023,7 +6023,7 @@ void ggml_cuda_host_free(void * ptr) {
CUDA_CHECK(cudaFreeHost(ptr));
}

namespace {
START_ANONYMOUS_NAMESPACE

cudaError_t ggml_cuda_cpy_tensor_2d(
void * dst, const struct ggml_tensor * src, int64_t i3, int64_t i2, int64_t i1_low, int64_t i1_high, cudaStream_t stream) {
Expand Down Expand Up @@ -6370,7 +6370,7 @@ inline void ggml_cuda_op_mul_mat_q(
(void) src1_ddf_i;
}

namespace {
START_ANONYMOUS_NAMESPACE

int64_t get_row_rounding(ggml_type type) {
int64_t min_compute_capability = INT_MAX;
Expand Down Expand Up @@ -6908,7 +6908,7 @@ inline void ggml_cuda_op_clamp(
(void) src1_dd;
}

namespace {
START_ANONYMOUS_NAMESPACE

void ggml_cuda_op_flatten(const ggml_tensor * src0, const ggml_tensor * src1, ggml_tensor * dst, const ggml_cuda_op_flatten_t op) {
const int64_t nrows0 = ggml_nrows(src0);
Expand Down Expand Up @@ -7382,7 +7382,7 @@ bool ggml_cuda_can_mul_mat(const struct ggml_tensor * src0, const struct ggml_te
(ne0 >= 32 && ne1 >= 32 && ne10 >= 32);
}

namespace {
START_ANONYMOUS_NAMESPACE

void ggml_cuda_mul_mat_vec_p021(const ggml_tensor * src0, const ggml_tensor * src1, ggml_tensor * dst){
GGML_ASSERT(ggml_is_permuted(src0) && ggml_is_permuted(src1));
Expand Down Expand Up @@ -7890,7 +7890,7 @@ void ggml_cuda_free_data(struct ggml_tensor * tensor) {
delete extra;
}

namespace {
START_ANONYMOUS_NAMESPACE

ggml_tensor_extra_gpu * g_temp_tensor_extras = nullptr;
size_t g_temp_tensor_extra_index = 0;
Expand Down Expand Up @@ -8206,7 +8206,7 @@ void ggml_cuda_get_device_description(int device, char * description, size_t des
struct ggml_backend_context_cuda {
};

namespace {
START_ANONYMOUS_NAMESPACE

const char * ggml_backend_cuda_name(ggml_backend_t backend) {
return GGML_CUDA_NAME;
Expand Down

0 comments on commit 26c1149

Please sign in to comment.