Fix hipHostRegister mem leak and copy kind in hipMemcpyAsync (#587)

这个提交包含在:
saleelk
2018-07-22 22:34:14 -07:00
提交者 Maneesh Gupta
父节点 1a2c16decb
当前提交 8bc73424d1
修改 2 个文件,包含 4 行新增1 行删除
@@ -41,7 +41,7 @@ void simpleNegTest() {
// Not sure what happens here, the memory must be pinned.
e = hipMemcpyAsync(A_malloc, A_d, Nbytes, hipMemcpyHostToDevice, NULL);
e = hipMemcpyAsync(A_malloc, A_d, Nbytes, hipMemcpyDeviceToHost, NULL);
printf(" async memcpy of A_malloc to A_d. Result=%d\n", e);
// HIPASSERT (e==hipErrorInvalidValue);