Float and Double both work correctly. Unfortunately the speed-up was wrong, because there was a bug! :( It is still faster to use global memory -- to be sure do the measurement of global memory again!!