Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
identifyavx512fmaunits.cpp File Reference
#include "gmxpre.h"
#include "identifyavx512fmaunits.h"
#include "config.h"
#include <cstdint>
#include <cstdio>
#include <algorithm>
#include <mutex>
#include "gromacs/hardware/cpuinfo.h"
+ Include dependency graph for identifyavx512fmaunits.cpp:

Description

Implements a routine to check the number of AVX512 fma units.

Just as the CpuInfo code, we need to be able to compile this file in stand-alone mode to set the SIMD acceleration and similar things during CMake configuration.

Functions

int gmx::identifyAvx512FmaUnits ()
 Test whether machine has dual AVX512 FMA units. More...
 

Variables

std::mutex gmx::anonymous_namespace{identifyavx512fmaunits.cpp}::initMutex
 Mutex to guard the execution of the timing test. More...