Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gpu_utils.cpp File Reference
#include "gmxpre.h"
#include "gpu_utils.h"
#include "config.h"
#include "gromacs/utility/arrayref.h"
#include "gromacs/utility/enumerationhelpers.h"
#include "gromacs/utility/stringutil.h"
+ Include dependency graph for gpu_utils.cpp:

Description

Function definitions for non-GPU builds.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Functions

const char * enumValueToString (GpuApiCallBehavior enumValue)
 String corresponding to GPU API call behavior.
 
bool decideGpuTimingsUsage ()
 Check the platform-defaults and environment variable to decide whether GPU timings should be enabled. More...
 

Function Documentation

bool decideGpuTimingsUsage ( )

Check the platform-defaults and environment variable to decide whether GPU timings should be enabled.

Currently, timings are enabled for OpenCL, but disabled for CUDA and SYCL. This can be overridden by GMX_ENABLE_GPU_TIMING and GMX_DISABLE_GPU_TIMING environment variables.