fix dot product by setting pointer mode to 'on device'