- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I use icx/icpx and -xCORE-AVX512 flag to compile program, there is not the way I understood it. The source code : https://godbolt.org/z/sK1hfn5a8 . When I not use -xCORE-AVX512 flag to compile the program it would generate four version of 'memset' function:
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
>> My understand about -xCORE-AVX512 is it would enable to generate AVX512 Instruction. But when I use the flag it not use AVX512 instruction in fact.
You need to add an additional option along with -xCORE-AVX512.
-xCore-AVX512 -qopt-zmm-usage=high
By using this special new flag [Q/q]opt-zmm-usage=high (which should be used in conjunction with -xCORE-AVX512), you'll get full AVX-512 ISA with 512-bits-wide operands.
So try compiling the code with -xCore-AVX512 -qopt-zmm-usage=high, you could see an AVX512 instruction gets generated <__intel_mic_avx512f_memset>
Hope this answers your question.
For more details, please refer
Regards,
Vidya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply.
And I have another question. Can I use -xCore-AVX512 option on icpx which my CPU is Haswell microarchitecture? Will there be any problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
>> Can I use -xCore-AVX512 option on icpx which my CPU is Haswell microarchitecture?
You can use that option if your system supports AVX512 registers. You can get the information by using the below command.
lscpu
Please find the below screenshot to get detailed information
Regards,
Vidya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can I use -xCore-AVX512 option on icpx which my CPU is Haswell microarchitecture? Will there be any problem?
Yes, there will be a problem. You won't be able to run the binary built with -xCORE-AVX512 on Haswell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Reminder:
Has the information provided helped? If yes, could you please confirm whether we can close this thread from our end?
Regards,
Vidya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored.
Have a Good day!
Regards,
Vidya.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page