ec84c16d75
Fixes #1790 and #1791. hipMemcpy3D still requires further refactoring for different input and output combinations.