X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?p=alexxy%2Fgromacs.git;a=blobdiff_plain;f=src%2Fgromacs%2Fgpu_utils%2Fgpu_utils.h;fp=src%2Fgromacs%2Fgpu_utils%2Fgpu_utils.h;h=c5651b6b602432baeb1f31e798842e50c59bec29;hp=f9c5353b748ce43e05a18e11968fe99b6f19a7d9;hb=c04377fde97785e4fa02bf229b56a67345271be7;hpb=0ce1837c232fa3e99ca90ce12ccb510e0b9a9ba2 diff --git a/src/gromacs/gpu_utils/gpu_utils.h b/src/gromacs/gpu_utils/gpu_utils.h index f9c5353b74..c5651b6b60 100644 --- a/src/gromacs/gpu_utils/gpu_utils.h +++ b/src/gromacs/gpu_utils/gpu_utils.h @@ -129,4 +129,12 @@ CUDA_FUNC_QUALIFIER void setupGpuDevicePeerAccess(const std::vector& CUDA_FUNC_ARGUMENT(gpuIdsToUse), const gmx::MDLogger& CUDA_FUNC_ARGUMENT(mdlog)) CUDA_FUNC_TERM; +/*! \brief 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 \c GMX_ENABLE_GPU_TIMING and \c GMX_DISABLE_GPU_TIMING environment variables. + */ +bool decideGpuTimingsUsage(); + #endif