Please add checking `ddepth == CV_64F` when device doesn't support double.