Re: M1 CPU features

2021-04-27 Thread Jason Liu
In addition to SIMDe, projects like Blender are using sse2neon to allow them to compile Blender on arm64 while using libraries that use Intel intrinsics and haven't been ported for use with Arm Neon. https://github.com/DLTcollab/sse2neon I plan to package sse2neon after I update a couple of the

Re: M1 CPU features

2021-04-27 Thread Jason Liu
On Mon, Apr 26, 2021 at 2:56 PM Georges Martin wrote: > Question is: would Apple adopt ARMv9 with SVE2 in a M2 for a future Mac > Pro ? ;-) > It might not happen for the M2, but I think it's virtually guaranteed that Apple will adopt ARMv9 at some point. With the success of the M1, it looks

Re: M1 CPU features

2021-04-27 Thread Saagar Jha
J313 is the codename for the M1 MacBook Air. Saagar Jha > On Apr 26, 2021, at 11:56, Georges Martin wrote: > >> Aha, hw.optional! That's useful, thanks Georges! > > You're welcome :-) You also have: > > hw.optional.amx_version: 2 > hw.optional.arm64: 1 > hw.targettype: J313

Re: M1 CPU features

2021-04-26 Thread Georges Martin
And this article describes SIMDe: https://simd-everywhere.github.io/blog/2020/06/22/transitioning-to-arm-with-simde.html SIMD Everywhere (SIMDe) provides fast, portable, permissively-licensed (MIT) implementations of the x86 APIs which allow you to run code designed for x86/x86_64

Re: M1 CPU features

2021-04-26 Thread Georges Martin
> Aha, hw.optional! That's useful, thanks Georges! You're welcome :-) You also have: hw.optional.amx_version: 2 hw.optional.arm64: 1 hw.targettype: J313 "amx" is the Neural Engine and I think "J313" is the code name for the M1. You may find this article very

Re: M1 CPU features

2021-04-26 Thread Georges Martin
$ sysctl hw.optional | grep -E 'neon|armv8' hw.optional.neon: 1 hw.optional.neon_hpfp: 1 hw.optional.neon_fp16: 1 hw.optional.armv8_1_atomics: 1 hw.optional.armv8_crc32: 1 hw.optional.armv8_2_fhm: 1 hw.optional.armv8_2_sha512: 1 hw.optional.armv8_2_sha3: 1 > Le 26 avr. 2021 à 19:55, Jason Liu a

Re: M1 CPU features

2021-04-26 Thread Jason Liu
On Mon, Apr 26, 2021 at 1:42 PM Christopher Jones wrote: > Thats not at all surprising as those instruction sets are very much > specific to X86_64 systems. > > RISC processors, Arm, do have their own sets of SIMD instructions (e.g. > Neon), but they are entirely different to those on X86_64

Re: M1 CPU features

2021-04-26 Thread Christopher Jones
> On 26 Apr 2021, at 6:28 pm, Jason Liu wrote: > > Thanks Arno :) > > I'm kind of surprised that the M1 doesn't seem to support any SSE or AVX Thats not at all surprising as those instruction sets are very much specific to X86_64 systems. RISC processors, Arm, do have their own sets

Re: M1 CPU features

2021-04-26 Thread Arno Hautala
> On 26 Apr 2021, at 13:20, Jason Liu wrote: > > sysctl machdep.cpu.brand_string ; sysctl machdep.cpu | grep -i "avx\|sse” $ sysctl machdep.cpu.brand_string ; sysctl machdep.cpu | grep -i "avx\|sse” machdep.cpu.brand_string: Apple M1 -- arno s hautala/-| a...@alum.wpi.edu pgp

Re: M1 CPU features

2021-04-26 Thread Gary Palter
Yes, that’s all it shows … - Gary > On Apr 26, 2021, at 1:30 PM, Jason Liu wrote: > > That's it?! For all of machdep.cpu?! That's surprisingly minimal :/ > > -- > Jason Liu > > > On Mon, Apr 26, 2021 at 1:25 PM Gary Palter > wrote: > [palter@miniMe

Re: M1 CPU features

2021-04-26 Thread Arno Hautala
> On 26 Apr 2021, at 13:28, Jason Liu wrote: > > Thanks Arno :) > > I'm kind of surprised that the M1 doesn't seem to support any SSE or AVX > > Does "sysctl machdep.cpu.features" return anything? Nope, nothing. -- arno s hautala/-| a...@alum.wpi.edu pgp b2c9d448

Re: M1 CPU features

2021-04-26 Thread Jason Liu
That's it?! For all of machdep.cpu?! That's surprisingly minimal :/ -- Jason Liu On Mon, Apr 26, 2021 at 1:25 PM Gary Palter wrote: > [palter@miniMe ~/VLM/IssuesAndWiki.wiki](155)$ sysctl > machdep.cpu.brand_string ; sysctl machdep.cpu | grep -i "avx\|sse" > machdep.cpu.brand_string:

Re: M1 CPU features

2021-04-26 Thread Jason Liu
Thanks Arno :) I'm kind of surprised that the M1 doesn't seem to support any SSE or AVX Does "sysctl machdep.cpu.features" return anything? -- Jason Liu On Mon, Apr 26, 2021 at 1:23 PM Arno Hautala wrote: > > On 26 Apr 2021, at 13:20, Jason Liu wrote: > > > > sysctl

Re: M1 CPU features

2021-04-26 Thread Gary Palter
[palter@miniMe ~/VLM/IssuesAndWiki.wiki](155)$ sysctl machdep.cpu.brand_string ; sysctl machdep.cpu | grep -i "avx\|sse" machdep.cpu.brand_string: Apple M1 [palter@miniMe ~/VLM/IssuesAndWiki.wiki](156)$ sysctl machdep.cpu machdep.cpu.cores_per_package: 8 machdep.cpu.core_count: 8

M1 CPU features

2021-04-26 Thread Jason Liu
Can someone who owns an M1 Mac run the following command and let me know what the output is? sysctl machdep.cpu.brand_string ; sysctl machdep.cpu | grep -i "avx\|sse" -- Jason Liu