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

[ROCm/hip commit: 8bc73424d1]
이 커밋은 다음에 포함됨:
saleelk 작성하고 Maneesh Gupta가 2018-07-23 11:04:14 +05:30를 커밋함
1 부모 69fd33b5b0
커밋 428120f219
2 파일이 변경됨
+4 -1

검색과 일치하는 파일 없음

+3
파일 보기
@@ -108,6 +108,7 @@ int main(int argc, char* argv[]) {
HIPCHECK(hipHostUnregister(A));
free(A);
delete [] Ad;
}
@@ -144,6 +145,8 @@ int main(int argc, char* argv[]) {
free(A);
free(Bh);
hipFree(Bd);
}
+1 -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);