MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GpuAtomicMax

Function GpuAtomicMax

tensorflow/core/util/gpu_device_functions.h:760–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758 */
759
760__device__ inline float GpuAtomicMax(float* ptr, float value) {
761 return detail::GpuAtomicCasHelper(
762 ptr, [value](float a) { return fmaxf(a, value); });
763}
764
765__device__ inline double GpuAtomicMax(double* ptr, double value) {
766 return detail::GpuAtomicCasHelper(

Callers 3

operator()Method · 0.85
GPU_1D_KERNEL_LOOPFunction · 0.85

Calls 2

GpuAtomicCasHelperFunction · 0.85
maxFunction · 0.50

Tested by

no test coverage detected