@rohithken
These flags are generated when compiling the source files within aten/src/ATen/native/cpu.
The code is here,
‘https://github.com/pytorch/pytorch/blob/eebd492dcfb8d4152a5ba4240486f3df5aaf112d/cmake/Codegen.cmake#L105 17’
cpu folder will be compiled with all these flags, pytorch automatically detect whether your CPU support those instruction sets.
I think if you want to see whether your op used the AVX, you don’t need to check these flags since as long as your cpu support AVX/2, pytorch will compile  with CPU_CAPABILITY_AVX2/2 for sure. What you can do is debug your op using eg. dbx, gdb, setup some breakpoint and print out the
Assembly code, see whether your op really call the AVX/2 instructions.