Unaligned memory accesses not supported Shared Mem Unaligned memory accesses not supported

Hi!

i’m working in encriptation algorithm and i need use a same shared memory space as two forms: 1 → as unsigned char; 2 → unsigned int. When i can try cast conversion from unsigned char to unsigned int and access to the new type the compiler show this error: “Unaligned memory accesses not supported”.

I need a way to copy, on bits level, from unsigned char to unsigned int. Is this possible on CUDA?, exist other form to access the same shared memory space as two types?

Thanks a lot!

Richard.

Corrected!

Thanks.