Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gmx::anonymous_namespace{clfftinitializer.cpp} Namespace Reference

Variables

bool g_clfftInitialized = false
 The clFFT library may only be initialized once per process, and this is orchestrated by this shared value and mutex. More...
 
gmx::Mutex g_clfftMutex
 

Variable Documentation

bool gmx::anonymous_namespace{clfftinitializer.cpp}::g_clfftInitialized = false

The clFFT library may only be initialized once per process, and this is orchestrated by this shared value and mutex.

This ensures that thread-MPI and OpenMP builds can't accidentally initialize it more than once.