|PREPROCESSOR DIRECTI(3clc)||OpenCL Manual||PREPROCESSOR DIRECTI(3clc)|
NAME¶Preprocessor_Directives_and_Macros - Preprocessor Directives and Macros.
|# pragma pp-tokens<sub>opt</sub> new-line|
DESCRIPTION¶The preprocessing directives defined by the C99 specification are supported.
A # pragma directive where the preprocessing token OPENCL (used instead of STDC) does not immediately follow pragma in the directive (prior to any macro replacement) causes the implementation to behave in an implementation-defined manner. The behavior might cause translation to fail or cause the translator or the resulting program to behave in a non-conforming manner. Any such pragma that is not recognized by the implementation is ignored. If the preprocessing token OPENCL does immediately follow pragma in the directive (prior to any macro replacement), then no macro replacement is performed on the directive, and the directive shall have one of the following forms whose meanings are described elsewhere:
#pragma OPENCL FP_CONTRACT(3clc) on-off-switch on-off-switch: one of ON OFF DEFAULT #pragma OPENCL EXTENSION(3clc) extensionname : behavior #pragma OPENCL EXTENSION(3clc) all : behavior
The following predefined macro names are available.
__kernel __attribute__((work_group_size_hint(X, 1, 1))) \ __attribute__((vec_type_hint(typen)))
SEE ALSO¶mathConstants(3clc) clBuildProgram(3clc), FP_CONTRACT(3clc), EXTENSION(3clc)
AUTHORS¶The Khronos Group
COPYRIGHT¶Copyright © 2007-2011 The Khronos Group Inc.
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.
- OpenCL Specification
|02/03/2019||The Khronos Group|