[GH-ISSUE #302] cpufeature 不支持arm64 #195

Open
opened 2026-10-29 14:35:39 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @niceqwer55555 on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/302

o
cpufeature/cpu_x86.c:21:5: error: #error "No cpuid intrinsic defined for processor architecture."
21 | # error "No cpuid intrinsic defined for processor architecture."
| ^~~~~
cpufeature/cpu_x86.c: In function ‘detect_OS_AVX’:
cpufeature/cpu_x86.c:48:35: warning: implicit declaration of function ‘xgetbv’ [-Wimplicit-function-declaration]
48 | uint64_t xcrFeatureMask = xgetbv(_XCR_XFEATURE_ENABLED_MASK);
| ^~~~~~
cpufeature/cpu_x86.c:48:42: error: ‘_XCR_XFEATURE_ENABLED_MASK’ undeclared (first use in this function)
48 | uint64_t xcrFeatureMask = xgetbv(_XCR_XFEATURE_ENABLED_MASK);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cpufeature/cpu_x86.c:48:42: note: each undeclared identifier is reported only once for each function it appears in
cpufeature/cpu_x86.c: In function ‘detect_OS_AVX512’:
cpufeature/cpu_x86.c:59:38: error: ‘_XCR_XFEATURE_ENABLED_MASK’ undeclared (first use in this function)
59 | uint64_t xcrFeatureMask = xgetbv(_XCR_XFEATURE_ENABLED_MASK);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cpufeature/cpu_x86.c: In function ‘detect_cores’:
cpufeature/cpu_x86.c:150:23: warning: implicit declaration of function ‘hardware_concurrency’ [-Wimplicit-function-declaration]
150 | totalSystemProc = hardware_concurrency();
| ^~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cpufeature
Running setup.py clean for cpufeature
Failed to build cpufeature
ERROR: Failed to build installable wheels for some pyproject.toml based projects (cpufeature)

Originally created by @niceqwer55555 on GitHub (Feb 14, 2025). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/302 o cpufeature/cpu_x86.c:21:5: error: #error "No cpuid intrinsic defined for processor architecture." 21 | # error "No cpuid intrinsic defined for processor architecture." | ^~~~~ cpufeature/cpu_x86.c: In function ‘detect_OS_AVX’: cpufeature/cpu_x86.c:48:35: warning: implicit declaration of function ‘xgetbv’ [-Wimplicit-function-declaration] 48 | uint64_t xcrFeatureMask = xgetbv(_XCR_XFEATURE_ENABLED_MASK); | ^~~~~~ cpufeature/cpu_x86.c:48:42: error: ‘_XCR_XFEATURE_ENABLED_MASK’ undeclared (first use in this function) 48 | uint64_t xcrFeatureMask = xgetbv(_XCR_XFEATURE_ENABLED_MASK); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cpufeature/cpu_x86.c:48:42: note: each undeclared identifier is reported only once for each function it appears in cpufeature/cpu_x86.c: In function ‘detect_OS_AVX512’: cpufeature/cpu_x86.c:59:38: error: ‘_XCR_XFEATURE_ENABLED_MASK’ undeclared (first use in this function) 59 | uint64_t xcrFeatureMask = xgetbv(_XCR_XFEATURE_ENABLED_MASK); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cpufeature/cpu_x86.c: In function ‘detect_cores’: cpufeature/cpu_x86.c:150:23: warning: implicit declaration of function ‘hardware_concurrency’ [-Wimplicit-function-declaration] 150 | totalSystemProc = hardware_concurrency(); | ^~~~~~~~~~~~~~~~~~~~ error: command '/usr/bin/gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cpufeature Running setup.py clean for cpufeature Failed to build cpufeature ERROR: Failed to build installable wheels for some pyproject.toml based projects (cpufeature)
Author
Owner

@ghostplant commented on GitHub (May 1, 2025):

请问这个解决了吗?

<!-- gh-comment-id:2844014414 --> @ghostplant commented on GitHub (May 1, 2025): 请问这个解决了吗?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#195
No description provided.