[
https://issues.apache.org/jira/browse/ARROW-16478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17533722#comment-17533722
]
Yibo Cai commented on ARROW-16478:
----------------------------------
*cpuinfo ouput on Apple M1, macOS*
{code:bash}
$ ./cpu-info
Packages:
0:
Microarchitectures:
4x Firestorm
4x Icestorm
Cores:
0: 1 processor (0), Apple Firestorm
1: 1 processor (1), Apple Firestorm
2: 1 processor (2), Apple Firestorm
3: 1 processor (3), Apple Firestorm
4: 1 processor (4), Apple Icestorm
5: 1 processor (5), Apple Icestorm
6: 1 processor (6), Apple Icestorm
7: 1 processor (7), Apple Icestorm
$ ./cache-info
Max cache size (upper bound): 4194304 bytes
L1 instruction cache: 8 x 128 KB, 4-way set associative (256 sets), 128 byte
lines, shared by 1 processors
L1 data cache: 8 x 64 KB, 4-way set associative (128 sets), 128 byte lines,
shared by 1 processors
L2 data cache: 4 MB (exclusive), 8-way set associative (4096 sets), 128 byte
lines, shared by 8 processors
$ ./isa-info
Instruction sets:
ARM v8.1 atomics: yes
ARM v8.1 SQRDMLxH: no
ARM v8.2 FP16 arithmetics: yes
ARM v8.2 BF16: no
ARM v8.3 dot product: yes
ARM v8.3 JS conversion: no
ARM v8.3 complex: no
SIMD extensions:
ARM SVE: no
ARM SVE BF16: no
ARM SVE 2: no
Cryptography extensions:
AES: yes
SHA1: yes
SHA2: yes
PMULL: yes
CRC32: yes
{code}
> [C++] cpu_info.cc fails clang-12 debug build on Arm
> ---------------------------------------------------
>
> Key: ARROW-16478
> URL: https://issues.apache.org/jira/browse/ARROW-16478
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Yibo Cai
> Assignee: Yibo Cai
> Priority: Major
> Fix For: 9.0.0
>
>
> {code:bash}
> ../src/arrow/util/cpu_info.cc:124:13: error: implicit conversion loses
> integer precision: '__ssize_t' (aka 'long') to 'int'
> [-Werror,-Wshorten-64-to-32]
> int res = getline(&content, &file_len, cache_file);
> ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> {code}
> Not a blocking issue IMO.
> Looks there are more code needs refine in cpu_info.cc.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)