What configurations should I set to support avx512 instructions like _mm512_setr_epi32 in Debug mode?

smith tony 1 Reputation point
2020-11-14T08:38:19.307+00:00

I wrote a cpp file including avx512 instructions with VS2019, the complication is complete with no error, but when I tried to debug, an error of "Illegal Instruction" came out near the _mm512_setr_epi32, as well as the other instructions. So I want to know what can I do to support this problem to debug with avx512 instructions. Thank you very much!

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
943 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,406 Reputation points
    2020-11-16T05:38:19.1+00:00

    Hi smithtony-7804.

    I'm sorry that I misunderstanding something in previous replies. I did some tests about "__m512" in vs2019 16.8, and found that it just can be compiled in VS 2019 which like this blog says.

    Sorry for my mistakes, I have corrected my previous replies.

    Best Regards,
    Dylan

    ---
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. smith tony 1 Reputation point
    2020-11-16T06:39:30.777+00:00

    Thank you for your answer, but this is no what i want. I will explain it with an example below.
    This is my code for example:
    //start//
    1:#include "immintrin.h"
    2:int main()
    3:{
    4: __m512i x = _mm512_setr_epi32(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
    5: return 0;
    6:}
    //end//
    A breakpoint is set on the 4th line, when I try to run this code, the program crashed with an error of "Illegal Instruction". So my question is should I add some libs or make some special configuration to avoid this error. Thank you very much and I am looking forward for you answer.