Fixes #1790 and #1791. hipMemcpy3D still requires further refactoring for different input and output combinations. [ROCm/hip commit: 8c5e5e435b]
8c5e5e435b