SWDEV-548453 - Fix memory leak (#528)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
bd12f54c72
Коммит
f34abcad37
@@ -192,6 +192,7 @@ TEST_CASE("Unit_hipLaunchKernelExC_NegetiveTsts") {
|
||||
HIP_CHECK_ERROR(hipLaunchKernelExC(&invalidConfig, (void*)cooperativeKernelExC, kernelArgs),
|
||||
hipErrorInvalidConfiguration);
|
||||
}
|
||||
HIP_CHECK(hipFree(d_output));
|
||||
}
|
||||
/**
|
||||
* Test Description
|
||||
@@ -257,6 +258,7 @@ TEST_CASE("Unit_hipLaunchKernelEx_NegetiveTsts") {
|
||||
d_output, totalThreads),
|
||||
hipErrorInvalidConfiguration);
|
||||
}
|
||||
HIP_CHECK(hipFree(d_output));
|
||||
}
|
||||
|
||||
bool runTest(const char* testName, const void* kernelFunc, int totalThreads, int blockSize,
|
||||
@@ -405,6 +407,7 @@ TEST_CASE("Unit_hipLaunchKernelEx_With_Different_Kernels") {
|
||||
|
||||
int result = 0;
|
||||
HIP_CHECK(hipMemcpy(&result, devMem, sizeof(result), hipMemcpyDefault));
|
||||
HIP_CHECK(hipFree(devMem));
|
||||
REQUIRE(result == 100);
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user