Skip to content

Commit f0d67c6

Browse files
committed
Fixes the bug when integrating API on NON-SVE HW.
*The current API - cpuinfo_get_max_arm_sve_length() when integarted into PyTorch and tested on Graviton2 (NON SVE hardware), it fails with an error. Signed-off-by: maajidkhann <maajidkhan.n@fujitsu.com>
1 parent fa1c679 commit f0d67c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arm/linux/aarch64-isa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void cpuinfo_arm64_linux_decode_isa_from_proc_cpuinfo(
167167

168168
int ret = prctl(PR_SVE_GET_VL);
169169
if (ret < 0) {
170-
cpuinfo_log_error("prctl(PR_SVE_GET_VL) failed");
170+
cpuinfo_log_warning("No SVE support on this machine");
171171
isa->svelen = 0; // Assume no SVE support if the call fails
172172
} else {
173173
// Mask out the SVE vector length bits

0 commit comments

Comments
 (0)