Add atomic add for double types.
Fix init of gpu textures which support only single prec types.
Rais error when Texture operator is initialized in double precision mode.
Fix tests.