Gromacs  2025-dev-20240614-602a366
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
simd_support.cpp File Reference
#include "gmxpre.h"
#include "gromacs/hardware/simd_support.h"
#include "config.h"
#include <cstdio>
#include <cstdlib>
#include <map>
#include <string>
#include "gromacs/hardware/cpuinfo.h"
#include "gromacs/hardware/identifyavx512fmaunits.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/stringutil.h"
+ Include dependency graph for simd_support.cpp:

Description

Implements SIMD architecture support query routines.

Author
Erik Lindahl erik..nosp@m.lind.nosp@m.ahl@s.nosp@m.cili.nosp@m.felab.nosp@m..se

Functions

static const std::string & gmx::simdString (SimdType s)
 
SimdType gmx::simdSuggested (const CpuInfo &c)
 Return the SIMD type that would fit this hardware best.
 
static SimdType gmx::simdCompiled ()
 
bool gmx::simdCheck (const CpuInfo &cpuInfo, SimdType wanted, FILE *log, bool warnToStdErr)
 Check if binary was compiled with the provided SIMD type. More...