7 Replies Latest reply on Mar 14, 2010 11:40 AM by Illusio

    Typecast between  __global float* and float*

    Raistmer
      how?

      In kernel declaration I have ...(__global float* A, ....)
      inside kernel I need pinters on different areas of A buffer.
      I try:
      float* A_ptr=(float*)A+offset;

      it works for NV compiler but fails for ATI one.
      How can I do such conversion in "ATI" OpenCL ?