Add cudaDeviceReset at the end of each test

This commit is contained in:
2024-04-11 19:55:02 +02:00
parent bc86ed1782
commit bf7c961b9e
10 changed files with 93 additions and 10 deletions

View File

@@ -21,4 +21,7 @@ TEST(OutputLayerTest, OutputForward) {
for (int i = 0; i < 6; ++i) {
EXPECT_EQ(input[i], h_output[i]);
}
cudaFree(d_input);
cudaDeviceReset();
}