AnsweredAssumed Answered

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

Question asked by Franchute13 on Dec 9, 2012
Latest reply on Dec 10, 2012 by settle

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

 

}

Outcomes