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

Qualifiers - OpenCL qualifiers.

Authors

TheKhronosGroup

Description

       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.
       ┌───────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────┐
       │ accessQualifiers(3clc)                │            __read_only, read_only                                                       │
       │                                       │            __write_only, write_only                                                     │
       │                                       │            __read_write, read_write                                                     │
       │                                       │                                                                                         │
       ├───────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────┤
       │ AddressSpaceQualifierslocal(3clc)                                                                  │
       │                                       │            global(3clc)                                                                 │
       │                                       │            constant(3clc)                                                               │
       │                                       │            private(3clc)                                                                │
       │                                       │                                                                                         │
       ├───────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────┤
       │ functionQualifiers(3clc)              │            __kernel, kernel                                                             │
       │                                       │            __attribute__ with work_group_size_hint, reqd_work_group_size, vec_type_hint │
       │                                       │                                                                                         │
       ├───────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────┤
       │ attributes-types(3clc)                │ __attribute__ with aligned, packed                                                      │
       ├───────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────┤
       │ attributes-variables(3clc)            │ __attribute__ with aligned, packed, endian                                              │
       ├───────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────┤
       │ attributes-blocksAndControlFlow(3clc) │ __attribute__                                                                           │
       ├───────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────┤
       │ storageQualifiers(3clc)               │ typedef, extern, static                                                                 │
       ├───────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────┤
       │ C99TypeQualifiers                   │ const, restrict, volatile                                                               │
       │                                       │                                                                                         │
       │                                       │        The type qualifiers const, restrict and volatile as defined by the C99           │
       │                                       │        specification are supported. These qualifiers cannot be used with                │
       │                                       │        otherDataTypes(3clc), otherDataTypes(3clc), otherDataTypes(3clc),                │
       │                                       │        otherDataTypes(3clc), otherDataTypes(3clc) and otherDataTypes(3clc) types. Types │
       │                                       │        other than pointer types shall not use the restrict qualifier.                   │
       └───────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────┘

Name

       Qualifiers - OpenCL qualifiers.

Notes

        1. OpenCL Specification
           page 222, section 6.5 - Address Space Qualifiers

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

Specification

OpenCLSpecification[1]

See Also