Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
629 Discussions

Intel oneAPI DPC++ compiler 2022.0.2 gives error in VisualStudio 2017/2019/2022

Theshe
Novice
1,702 Views

When setting "Enable Enhanced Instruction Set" to "AVX2" I get this error:

 

ignoring invalid /arch: argument 'CORE-AVX2'; for 64-bit expected one of AVX, AVX2, AVX512, AVX512F [-Wunused-command-line-argument]

 

So this probably should be "/arch:AVX2" rather than "/arch:CORE-AVX2", but the correct value is not available!

err.jpg

Please provide hotfix for this bug, because I need to build with AVX2. Thanks you!

Regards.

0 Kudos
6 Replies
MadhuK_Intel
Moderator
1,661 Views

Hi,


Thank you for posting in Intel Communities.


The issue raised by you is reproducible from our end, thanks for bringing this to our notice. We are working on this issue internally, we will get back to you soon.


Best Regards,

Madhu


MadhuK_Intel
Moderator
1,634 Views

Hi,

 

We have reported this issue to the concerned development team. They are looking into your issue.

 

Best Regards,

Madhu

 

0 Kudos
MadhuK_Intel
Moderator
1,592 Views

Hi,

 

As a workaround, you can use /arch:AVX2 option by following the below steps and as shown in the screenshot.

In Visual Studio -> Project -> Properties -> Configuration Properties -> C/C++ -> Command Line -> in Additional Options add /arch:AVX2 -> Apply -> OK

 

MadhuK_Intel_0-1645523648410.png

 

Thanks & regards,

Madhu

0 Kudos
Theshe
Novice
1,531 Views

This problem still persists in oneAPI DPC++ compiler 2022.1.3.

0 Kudos
VidyalathaB_Intel
Moderator
1,343 Views

Hi,

 

Thanks for your patience.

The issue raised by you is fixed in oneAPI 2022.2, compiler version 2022.1. We suggest you upgrade to the latest version of oneAPI and try the same.

A quick check from our end shows that there is no such warning emitted when using  /arch:CORE-AVX2 option with icx/dpcpp compiler.

Here is the screenshot of the compilation from the Intel command prompt

VidyalathaB_Intel_0-1656406361408.png

VidyalathaB_Intel_1-1656406827536.png

 

Please do let us know if it helps in resolving the issue so that we can close this thread from our end.

 

Regards,

Vidya.

 

0 Kudos
VidyalathaB_Intel
Moderator
1,316 Views

Hi,


As we haven't heard back from you, we are closing this thread assuming that your issue is resolved. Please post a new question if you need any additional assistance from Intel as this thread will no longer be monitored.


Regards,

Vidya.


0 Kudos
Reply