'\" t .\" Title: Qualifiers .\" Author: The Khronos Group .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 01/14/2021 .\" Manual: OpenCL Manual .\" Source: The Khronos Group .\" Language: English .\" .TH "QUALIFIERS" "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" Qualifiers \- OpenCL qualifiers\&. .SH "DESCRIPTION" .PP These are the qualifiers available in the OpenCL C programming language\&. Click on a category name in the table below to see information about specific qualifiers\&. .TS allbox tab(:); l l l l l l l l l l l l l l l l. T{ \fBaccessQualifiers\fR(3clc) T}:T{ .if n \{\ .RS 4 .\} .nf __read_only, read_only __write_only, write_only __read_write, read_write .fi .if n \{\ .RE .\} .sp T} T{ \fBAddress Space Qualifiers\fR T}:T{ .if n \{\ .RS 4 .\} .nf \fBlocal\fR(3clc) \fBglobal\fR(3clc) \fBconstant\fR(3clc) \fBprivate\fR(3clc) .fi .if n \{\ .RE .\} .sp T} T{ \fBfunctionQualifiers\fR(3clc) T}:T{ .if n \{\ .RS 4 .\} .nf __kernel, kernel __attribute__ with work_group_size_hint, reqd_work_group_size, vec_type_hint .fi .if n \{\ .RE .\} .sp T} T{ \fBattributes-types\fR(3clc) T}:T{ __attribute__ with aligned, packed T} T{ \fBattributes-variables\fR(3clc) T}:T{ __attribute__ with aligned, packed, endian T} T{ \fBattributes-blocksAndControlFlow\fR(3clc) T}:T{ __attribute__ T} T{ \fBstorageQualifiers\fR(3clc) T}:T{ typedef, extern, static T} T{ \fBC99 Type Qualifiers\fR T}:T{ const, restrict, volatile .PP The type qualifiers const, restrict and volatile as defined by the C99 specification are supported\&. These qualifiers cannot be used with \fBotherDataTypes\fR(3clc), \fBotherDataTypes\fR(3clc), \fBotherDataTypes\fR(3clc), \fBotherDataTypes\fR(3clc), \fBotherDataTypes\fR(3clc) and \fBotherDataTypes\fR(3clc) types\&. Types other than pointer types shall not use the restrict qualifier\&. T} .TE .sp 1 .SH "SPECIFICATION" .PP \m[blue]\fBOpenCL Specification\fR\m[]\&\s-2\u[1]\d\s+2 .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 222, section 6.5 - Address Space Qualifiers .RE