'\" t .\" Title: cl_khr_int64_extended_atomics .\" Author: The Khronos Group .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 01/14/2021 .\" Manual: OpenCL Manual .\" Source: The Khronos Group .\" Language: English .\" .TH "CL_KHR_INT64_EXTENDE" "3clc" "01/14/2021" "The Khronos Group" "OpenCL Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" cl_khr_int64_extended_atomics \- Optional extensions that implement atomic operations on 64\-bit signed and unsigned integers to locations in __global and __local memory\&. .SS "" .TS tab(:); l. T{ #pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : enable T} .TE .sp 1 .SH "DESCRIPTION" .PP An application that wants to use this extension will need to include the \fB#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : enable\fR directive in the OpenCL program source\&. .PP The atomic functions supported by the \fBcl_khr_int64_extended_atomics\fR extension are described in the following table\&. All of the functions listed in the following table are performed in one atomic transaction\&. .PP These transactions are atomic for the device executing these atomic functions\&. There is no guarantee of atomicity if the atomic operations to the same memory location are being performed by kernels executing on multiple devices\&. .PP Atomic operations on 64\-bit integers and 32\-bit integers (and float) are also atomic w\&.r\&.t\&. each other\&. .TS allbox tab(:); lB lB. T{ Function T}:T{ Description T} .T& l l l l l l l l l l. T{ \fBatom_min\fR(3clc) T}:T{ Compute min (\fIold\fR, \fIval\fR) T} T{ \fBatom_max\fR(3clc) T}:T{ Compute max (\fIold\fR, \fIval\fR)> T} T{ \fBatom_and\fR(3clc) T}:T{ Compute (\fIold\fR & \fIval\fR) T} T{ \fBatom_or\fR(3clc) T}:T{ Compute (\fIold\fR | \fIval\fR) T} T{ \fBatom_xor\fR(3clc) T}:T{ Compute (\fIold\fR ^ \fIval\fR) T} .TE .sp 1 .SH "SPECIFICATION" .PP \m[blue]\fBOpenCL Specification\fR\m[]\&\s-2\u[1]\d\s+2 .SH "SEE ALSO" .PP \fBEXTENSION\fR(3clc), \fBcl_khr_int64_base_atomics\fR(3clc), \fBatomicFunctions\fR(3clc) .SH "AUTHORS" .PP \fBThe Khronos Group\fR .SH "COPYRIGHT" .br Copyright \(co 2007-2011 The Khronos Group Inc. .br Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the condition that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials. .sp .SH "NOTES" .IP " 1." 4 OpenCL Specification .RS 4 \%page 10, section 9.3 - 64-bit Atomics .RE