Skip to content

Compiler error #407

@brmarkus

Description

@brmarkus

Under Ubuntu LTS 24.04.3 I got the following compiler error:

/BitNet/src/ggml-bitnet-mad.cpp:811:18: error: cannot initialize a variable of type 'int8_t *' (aka 'signed char *') with an rvalue of type 'const int8_t *' (aka 'const signed char *')
  811 |         int8_t * y_col = y + col * by;
      |                  ^       ~~~~~~~~~~~~

Using CLANG in v18.1.3 and CMAKE in v3.28.3 and GCC/G++ in v13.3.0 and Python in v3.12.3.

Needed to add "const":
811 | const int8_t * y_col = y + col * by;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions