Gromacs  2026.0-dev-20241204-d69d709
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Enumerations | Functions
simd_support.h File Reference
#include <cstdio>
+ Include dependency graph for simd_support.h:
+ This graph shows which files directly or indirectly include this file:

Description

Functions to query compiled and supported SIMD architectures.

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

Enumerations

enum  gmx::SimdType {
  gmx::SimdType::None, gmx::SimdType::Reference, gmx::SimdType::Generic, gmx::SimdType::X86_Sse2,
  gmx::SimdType::X86_Sse4_1, gmx::SimdType::X86_Avx128Fma, gmx::SimdType::X86_Avx, gmx::SimdType::X86_Avx2,
  gmx::SimdType::X86_Avx2_128, gmx::SimdType::X86_Avx512, gmx::SimdType::X86_Avx512Knl, gmx::SimdType::Arm_NeonAsimd,
  gmx::SimdType::Arm_Sve, gmx::SimdType::Ibm_Vsx
}
 Enumerated options for SIMD architectures. More...
 

Functions

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