Skip to content

Misc. bug: HWCAP2_I8MM defined as 0 instead of real value (1 << 13) #10621

@TianyuLi0

Description

@TianyuLi0

Name and Version

build: 3983 (8841ce3)

Introduced via #9684

Operating systems

No response

Which llama.cpp modules do you know to be affected?

No response

Problem description & steps to reproduce

On Arm CPU with i8mm feature platform.

In ggml.c

default HWCAP2_I8MM as default 0 should be improved.

#if !defined(HWCAP2_I8MM)
#define HWCAP2_I8MM 0
#endif

HWCAP2_I8MM should be defined at following value instead,
#define HWCAP2_I8MM (1 << 13)
Refer to https://github.com/torvalds/linux/blob/master/arch/arm64/include/uapi/asm/hwcap.h#L76C1-L76C31

This lead to ggml_arm_arch_features.has_i8mm initialized as 0 instead of 1 when i8mm present in lscpu's output.

First Bad Commit

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions