cpu dispatcher for visual studio for AVX and SSE

前端 未结 3 1688
庸人自扰
庸人自扰 2020-11-30 07:56

I work with two computers. One without AVX support and one with AVX. It would be convenient to have my code find the instruction set supported by my CPU at run-time and ch

3条回答
  •  迷失自我
    2020-11-30 08:52

    Put the SSE and AVX functions in different CPP files and be sure to compile SSE version wihout /arch:AVX.

提交回复
热议问题