Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
support.cpp File Reference
#include "gmxpre.h"
#include "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/stringutil.h"
+ Include dependency graph for 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

const std::string & gmx::simdString (SimdType s)
 Return a string with the name of a SIMD type. More...
 
bool gmx::anonymous_namespace{support.cpp}::cpuIsAmdZen1 (const CpuInfo &cpuInfo)
 Helper to detect correct AMD Zen architecture.
 
SimdType gmx::simdSuggested (const CpuInfo &c)
 Return the SIMD type that would fit this hardware best.
 
SimdType gmx::simdCompiled ()
 Return the SIMD type the library was compiled with.
 
bool gmx::simdCheck (SimdType s, FILE *log, bool warnToStdErr)
 Check if binary was compiled with the provided SIMD type. More...