Improve error reporting.

use throw with error class.
fix bug when memcpyDefault resolved to D2D copy.
이 커밋은 다음에 포함됨:
Ben Sander
2016-03-12 04:02:04 -06:00
부모 1d87879008
커밋 ac272932f6
2개의 변경된 파일38개의 추가작업 그리고 21개의 파일을 삭제
-1
파일 보기
@@ -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