n.treutner

Advantage of cl_ datatypes?

Discussion created by n.treutner on Apr 28, 2010
Latest reply on Apr 28, 2010 by MicahVillmow
datatypes and conversion

Hi everyone,

just two quick questions: I was wondering, if there is any reason, to use cl_ datatypes (both in the "host" programm, and in the kernel), instead of "normal" c/c++ ones? so, should i use "cl_char" instead of "char"? maybe Performance or Memory usage?

also, if i need to do some converting (char/int/float), should it be done in the normal c/c++ code, or in the OpenCL-device for best performance?

Thanks for your work in this forum, you have already helped me a lot!

Outcomes