[ 
https://issues.apache.org/jira/browse/ARROW-12587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17337618#comment-17337618
 ] 

Jonathan Keane commented on ARROW-12587:
----------------------------------------

> or to ensure it will work with older Macs that don't support AVX2 but can 
> still run Big Sur (e.g. older Mac Pros) maybe we should set it to SSE4_2.

On my macpro (late 2013) I have AVX1.0 (though it's not in 
{{machdep.cpu.leaf7_features}} it is in {{machdep.cpu.features}}. I'm not sure 
if there are any big sur compatible machines that don't have avx 1

{code}
jkeane@het arrow % sysctl -a | grep machdep.cpu.features      
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA 
CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ 
DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC 
POPCNT AES PCID XSAVE OSXSAVE TSCTMR AVX1.0 RDRAND F16C
{code}

And {{arrow_info()}} seems to catch that:

{code}
...
Runtime:
                       
SIMD Level          avx
Detected SIMD Level avx
{code}

> [R][C++][Packaging] Illegal opcode error on aggregate Array/ChunkedArray of 
> integer
> -----------------------------------------------------------------------------------
>
>                 Key: ARROW-12587
>                 URL: https://issues.apache.org/jira/browse/ARROW-12587
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Packaging, R
>    Affects Versions: 4.0.0
>            Reporter: Ian Cook
>            Assignee: Ian Cook
>            Priority: Major
>
> I see this error with the 4.0.0 version of the R package with the C++ library 
> from Homebrew:
> {code:java}
> sum(Array$create(c(1L, 2L))) 
> ## *** caught illegal operation ***
> ## address 0x109f1b45c, cause 'illegal opcode'{code}
> This is on an Intel Mac running Big Sur 11.3 with AVX2 support but no AVX512 
> support.
> This happens regardless of whether I build the Homebrew formula locally or 
> install the pre-built bottle.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to