5 Replies Latest reply: Dec 11, 2012 12:49 AM by settle RSS

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

Franchute13 Newbie
Currently Being Moderated

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

 

}

More Like This

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points