1 Reply Latest reply on Jun 4, 2012 10:29 AM by MicahVillmow

    clCreateProgramWithSource has no text file encoding type parameter

    omac

      Hi there,

       

      I noticed the clCreateProgramWithSource has no text file encoding type parameter.  Is there anywhere in the documentation that states what the default text file encoding type is for OpenCL?

      i.e. ASCII, utf-8, utf-16.

       

      As it stands I am making the assumption that its ASCII because when I run:

      file /opt/AMDAPP/samples/opencl/cl/app/BoxFilterGL/BoxFilterGL_Kernels.cl

       

      It shows:

      /opt/AMDAPP/samples/opencl/cl/app/BoxFilterGL/BoxFilterGL_Kernels.cl: ASCII English text

       

      Perhaps a "#pragma" tag at the beginning input file would be helpful for this in the same manner that html and xml have encoding type tags at the beginning of their file.  xml/xhtml have the default file encoding-type as "utf-8" in order to make a particular file able to support all the world's languages in one single file.  ASCII cannot support all the world's languages in one single text file.  It relies on ASCII dos pages and are limited to displaying one language at a time in one particular ASCII text file.

       

      I can recognize that it would be beneficial to have more internationalization and string-processing apis in opencl to speed things up by adding the capability for example to sort/parse strings on a multi-core cpu, but also on the available opencl-compliant devices at the same time.

      Is the opencl compiler a complete gcc/g++ compiler? Does it imply having all those gcc/g++ internationalization and string-processing apis available from within the OpenCL kernel?

       

      Thank you.