I'm trying to verify my pointers are in place and I'd like to print the value of a cl_uchar
(unsigned char OpenCL type) in hex format. I tried:
cout << "Data matrix 0,3 = " << clMatrixPerm->data_matrix->elements[4] << endl;
and
cout << "Data matrix 0,3 = " << hex << clMatrixPerm->data_matrix->elements[4] << endl;
where clMatrixPerm->data_matrix->elements[4]
is the data in the array to be printed. In both cases there was no output after Data matrix 0,3 =
. I was able to use a workaround with printf so I know the data is being assigned correctly, but I'd like to print it using cout if possible.