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
والد 1d87879008
کامیت ac272932f6
2فایلهای تغییر یافته به همراه38 افزوده شده و 21 حذف شده
@@ -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