Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

AVX Emulator MacOS 10.15

Miller__E
Beginner
2,831 Views
Hi- Sorry for the noob question but I am having no success executing 8.50 under OS 10.15.4, SIP Disabled. Instructions on download page show SDE as a directory but when unpacking tar.bz2 it shows as unix exec file and I receive format error: zsh: exec format error: /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-lin/sde64 I'm certain the problem is on my end and would appreciate any insight on how to correct. My main goal is to utilize AVX Emulator for testing. Thanks
0 Kudos
5 Replies
AdyT_Intel
Moderator
2,831 Views

It looks like you downloaded the Linux kit. You should download the mac kit. 

0 Kudos
Miller__E
Beginner
2,831 Views
Thank you for your reply. Yes, I did realize this yesterday and have since corrected this error. I am getting close but now receiving "Permission denied". Could you look at my command line and tell me if this is correct? I'm setting CPUID to Westmere and selecting AVX512 Emulator to run Luna.app. Maybe there is something you can recommend to correct or maybe it's not possible? Thanks again. erickmiller@Ericks-Mac-Pro sde-external-8.50.0-2020-03-26-mac % sudo /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/sde64 -wsm -avx -- /Applications/LUNA.app /Applications/LUNA.app : Permission denied sh-3.2# /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/sde64 -wsm -avx -- /Applications/LUNA.app /Applications/LUNA.app : Permission denied
0 Kudos
AdyT_Intel
Moderator
2,831 Views

I'm not an expert on mac OS but it looks like you gave the application directory to the SDE command, instead you need to give the full application command line. For example for calculator it is: /Applications/Calculator.app/Contents/MacOS/Calculator.

Also, you should not specify both -wsm and -avx. The AVX emulator is an integral part of any CPU type that supports AVX (starting from SNB).

0 Kudos
Miller__E
Beginner
2,831 Views
Thank you, Ady! I was able to execute command with your suggestions but unfortunately received abnormal termination error. Problem may be deeper than lack of AVX instructions. I will post error if you may have any further suggestions. I appreciate your time, stay safe and healthy! erickmiller@Ericks-Mac-Pro ~ % sudo /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/sde64 -avx -- /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/LUNA.app/Contents/MacOS/LUNA Password: 2020-04-30 04:19:04.295 LUNA[783:15546] Sentry Started -- Version: 4.3.1 A: Source/pin/vm_m/vm_syscall_mac.cpp: EmulateThreadSuspend: 727: assertion failed: target_thread.GetThreadIfCurrent() == 0 ################################################################################ ## STACK TRACE ################################################################################ ZN10LEVEL_BASE12MESSAGE_TYPE15MessageNoReturnERKSsb11PIN_ERRTYPEiz+0x00000006f at /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/intel64/pinbin+0x00000c44f ZN8LEVEL_VM21VM_EmulateMachMsgTrapEyyyyyyy+0x0000032b0 at /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/intel64/pinbin+0x00020e720 ZN8LEVEL_VM8EMULATOR18EmulateMachMsgTrapEv+0x000000683 at /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/intel64/pinbin+0x000259e93 ZN8LEVEL_VM8EMULATOR14ExecuteSysCallEPKNS_12INS_EMU_INFOE+0x000000858 at /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/intel64/pinbin+0x000258a08 ZN8LEVEL_VM13EMULATOR_IA3221EmulateOneInstructionEPKNS_12INS_EMU_INFOE+0x000000447 at /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/intel64/pinbin+0x0001a5047 ZN8LEVEL_VM9VMSVC_EmuEPKNS_14SCT_ATTRIBUTESEPNS_5PCTXTEPKNS_14VMSVC_EMU_ARGSE+0x0000001c3 at /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/intel64/pinbin+0x00018f3d3 ZN8LEVEL_VM2VM8DispatchEPKNS_10VMSVC_ARGSEPNS_5PCTXTE+0x0000010c7 at /Users/erickmiller/Downloads/sde-external-8.50.0-2020-03-26-mac/intel64/pinbin+0x00016c007 Detach Service Count: 99631 Pin: pin-3.13-98188-a0a20a5 Copyright 2002-2019 Intel Corporation. Pin child/app terminated abnormally due to signal 6.
0 Kudos
AdyT_Intel
Moderator
2,831 Views

As you can see this is an assertion inside pin.
Looking at the code, it looks like the application is trying to suspend the current thread and this is not supported by pin.

0 Kudos
Reply