Improve error reporting.

use throw with error class.
fix bug when memcpyDefault resolved to D2D copy.


[ROCm/hip commit: 250739666d]
This commit is contained in:
Ben Sander committed 2016-03-12 04:02:04 -06:00
1 parent 6d77b45f88
commit 4900ebb39f
2 files changed
+38 -21

No files matched your search

@@ -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