I have tried the below instructions, (even with ON option)
option(onnxruntime_USE_AVX "Use AVX instructions" OFF)
option(onnxruntime_USE_AVX2 "Use AVX2 instructions" OFF)
option(onnxruntime_USE_AVX512 "Use AVX512 instructions" OFF)
In CMakeList.txt file and
cmake -DCPU_BASELINE=DETECT
cmake -DCPU_BASELINE=AVX512
cmake -DCPU_BASELINE=AVX512_SKX
in terminal while building.
For testing I have used the objdump -d
command.
I expect a solution to build project using cmake using AVX instruction set with clang compiler on ubuntu