How to detect if CPU supports AVX/AVX2/AVX512 in Inno?

272 views
Skip to first unread message

Mario Krušelj

unread,
May 3, 2021, 9:31:50 AM5/3/21
to innosetup

I am trying to google the answer but coming up with nothing useful...

Is this even possible, in any way? Thanks!

Jernej Simončič

unread,
May 3, 2021, 11:43:54 AM5/3/21
to Mario Krušelj on [innosetup]
On Monday, May 3, 2021, 15:31:50, Mario Krušelj wrote:

> I am trying to google the answer but coming up with nothing useful...
> Is this even possible, in any way? Thanks!

You'll probably have to create a DLL that calls the cpuid instruction, because the IsProcessorFeaturePresent WinAPI function doesn't appear to support anything beyond SSE3.

--
< Jernej Simončič ><><><><>< https://eternallybored.org/ >

Opportunity always knocks at the least appropriate moment.
-- Law of Adult Opportunity

AJ Baxter

unread,
Feb 6, 2024, 1:40:38 AM2/6/24
to innosetup

2024 update:  IsProcessorFeaturePresent WinAPI function does  AVX(1),AVX2,AVX512F now also.

Where is this functionality in InnoSetup?  
Reply all
Reply to author
Forward
0 new messages