5 Replies Latest reply on Dec 11, 2012 2:49 AM by settle

    [OpenCL] It will be possible to compare a char16 * to char *?

    Franchute13

      Hello.
      Sorry for my English.
      I'm learning OpenCL.


      It will be possible to compare a char16 * to char *?

      char16 * is an array with many words.
      char * is a word.

      The idea is to explore whether char16 * contains the word of char *

       

      very basic example:

       

      __kernel void buscaPalabra(__global char16* words,__global char* word,__global int* result)

      {

      int i = get_global_id(0);

      // **This comparison does not work because they are of different types. I could not convert **

      if(words[i]==word){

      result =1;

      }

       

      Thk

       

      }