On Mon, Dec 11, 2023 at 7:41 AM Fabiano Rosas <[email protected]> wrote: > > Hao Xiang <[email protected]> writes: > > > Enable instruction set enqcmd in build. > > > > Signed-off-by: Hao Xiang <[email protected]> > > --- > > meson.build | 2 ++ > > meson_options.txt | 2 ++ > > scripts/meson-buildoptions.sh | 3 +++ > > 3 files changed, 7 insertions(+) > > > > diff --git a/meson.build b/meson.build > > index ec01f8b138..1292ab78a3 100644 > > --- a/meson.build > > +++ b/meson.build > > @@ -2708,6 +2708,8 @@ config_host_data.set('CONFIG_AVX512BW_OPT', > > get_option('avx512bw') \ > > int main(int argc, char *argv[]) { return bar(argv[0]); } > > '''), error_message: 'AVX512BW not available').allowed()) > > > > +config_host_data.set('CONFIG_DSA_OPT', get_option('enqcmd')) > > We need some sort of detection at configure time whether the feature is > available. There are different compilers and compiler versions, > different Intel CPU versions, different CPU vendors, different > architectures, etc. Not all combinations will support DSA. Check avx512 > above. >
Will fix it in the next version.
