db-tu-dresden / TSL

Template SIMD Library (+Generator)
GNU General Public License v3.0
7 stars 8 forks source link

Some lscpu flags need an alias #101

Closed alexKrauseTUD closed 1 month ago

alexKrauseTUD commented 2 months ago

When the TSL is generated, the required compiler arguments are derived from the lscpu list; either trhough py-cpuinfo or lscpu.

However, some flags have no direct mapping to compiler flags, especially avx512 flags, e.g. lscpu g++/clang
avx512_fp16 -mavx512fp16
avx512_vpopcntdq -mavx512vpopcntdq
avx512_vbmi2 -mavx512vbmi2

Maybe we can conventionally just remove the underscores, but this might not be true for all flags.

JPietrzykTUD commented 2 months ago

Fixed with #103