Improve error reporting.

use throw with error class.
fix bug when memcpyDefault resolved to D2D copy.
This commit is contained in:
Ben Sander
2016-03-12 04:02:04 -06:00
parent cc7517b57e
commit 250739666d
2 changed files with 38 additions and 21 deletions
-1
View File
@@ -690,7 +690,6 @@ hipError_t hipFreeHost(void* ptr);
* It supports memory from host to device,
* device to host, device to device and host to host
* The src and dst must not overlap.
* TODO: cudaErrorInvalidMemcpyDirection error code is not supported right now, use hipErrorUnknown for now
*
* @param[out] dst Data being copy to
* @param[in] src Data being copy from