logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

atomic_max - atomic_max functions.

Authors

TheKhronosGroup

Description

       Read the 32-bit value (referred to as old) stored at location pointed by p. Compute commonMax(3clc) (old,
       val) and store result at location pointed by p. The function returns old.

       A 64-bit version of this function, atom_max(3clc), is enabled by cl_khr_int64_extended_atomics(3clc).

Name

       atomic_max - atomic_max functions.

       intatomic_max(volatileglobal(3clc) int *p,intval);unsignedintatomic_max(volatileglobal(3clc) unsigned int *p,unsignedintval);intatomic_max(volatilelocal(3clc) int *p,intval);unsignedintatomic_max(volatilelocal(3clc) unsigned int *p,unsignedintval);

Notes

        1. OpenCL Specification
           page 279, section 6.12.11 - Atomic Functions for 32-bit integers

The Khronos Group                                  11/18/2024                                   ATOMIC_MAX(3clc)

See Also

atomicFunctions(3clc), atom_max(3clc)

Specification

OpenCLSpecification[1]

See Also