tool tracing control integration

이 커밋은 다음에 포함됨:
Evgeny
2019-10-09 10:56:19 -05:00
부모 72b5494f0b
커밋 9a5a603440
2개의 변경된 파일과 92개의 추가작업 그리고 19개의 파일을 삭제
+6
파일 보기
@@ -82,6 +82,10 @@ int main() {
hipMalloc((void**)&gpuMatrix, NUM * sizeof(float));
hipMalloc((void**)&gpuTransposeMatrix, NUM * sizeof(float));
uint32_t iterations = 100;
while (iterations-- > 0) {
std::cout << "## Iteration (" << iterations << ") #################" << std::endl;
// Memory transfer from host to device
hipMemcpy(gpuMatrix, Matrix, NUM * sizeof(float), hipMemcpyHostToDevice);
@@ -112,6 +116,8 @@ int main() {
printf("PASSED!\n");
}
}
// free the resources on device side
hipFree(gpuMatrix);
hipFree(gpuTransposeMatrix);