2

Background info for my particular case (though it would be good if answers were more general):

I have an 11 inch MacBook Pro. I'm trying to run MuJoCo but it says Illegal instruction: 4. Searching Google for similar errors lead me to something saying that I need a CPU that has AVX instruction support.

When I looked up how to tell if my CPU has AVX support, I came across this page which gives a list of CPUs with AVX support.

When I looked up how to tell what CPU my Mac had, Google said to use "About This Mac" which just told me I have a 2.53 GHz Intel Core i5, but that doesn't seem to be anywhere on the list, but the site says that these types of CPUs tend to support AVX instructions.

How can I tell whether or not my computer actually does support AVX instructions?

3

Execute this command in Terminal:

sysctl -a | grep machdep.cpu.features

You'll get a report out like this:

Redacted-Family-iMac:~ redacted_user$ 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

I've bolded the presence of the AXV1.0 CPU feature in the report from my Mac: iMac 27" Late 2012 3.4GHz Core i7.

(Answer lifted from this site.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .