Type: Posts; User: tanakamura

Search: Search took 0.00 seconds.

  1. Re: Why is 'cl_mem' associated to 'cl_context'?

    Thanks, I see.
  2. Why is 'cl_mem' associated to 'cl_context'?


    'clContextCreate' takes multiple devices. 'cl_context' is associated to multiple devices.
    And, 'clCreateBuffer' takes single context object.

    So, 'cl_mem' is associated to multiple devices....
  3. Re: evaluating side-effetcs and Logical && and || for vectors

    RHS can have subeffect that cannot be interpreted as component wise. For example:

    a = (b && (func(c))); // function call
    a = (b && (puts("a"), c)); // comma operator

    How to interpret it?
  4. Why does OpenCL define 'bool' but does not define '_Bool'?


    Standard C99 defines '_Bool' type.
    But '_Bool' is not listed on 'Table 6.1' of opencl-1.0.43.pdf.
    Instead, 'bool' type is listed on Table 6.1.
    According to description of 'bool' at...
  5. Re: Syntax of vector literals conflicts with C99 comma operator.

    Thanks for your reply.

    And, can I use an other symbol that is defined to vector type as cast typename of vector literal.
    Like as follows:

    typedef uint4 ui4_t;
    ui4_t x = (ui4_t)(1,2,3,4);
  6. Syntax of vector literals conflicts with C99 comma operator.


    "6.1.6 Vector Literals" of opencl-1.0.33.pdf defines syntax of Vector literals.
    But, this syntax conflicts with C99 comma operator.

    For example:
    "float4 f = (float4)(1.0f, 2.0f, 3.0f,...
Results 1 to 6 of 6
Proudly hosted by Digital Ocean