Fixing GoogleTest to 1.8.1 and making changes to tests to support older API

This commit is contained in:
Gilbert Lee
2019-05-16 23:13:49 +00:00
parent 11f78df04d
commit 08fcce5ec9
8 changed files with 148 additions and 144 deletions
+13
View File
@@ -154,7 +154,10 @@ namespace CorrectnessTests
// Create streams
streams.resize(numDevices);
for (int i = 0; i < numDevices; i++)
{
HIP_CALL(hipSetDevice(i));
HIP_CALL(hipStreamCreate(&streams[i]));
}
}
// Clean up per TestTuple
@@ -219,6 +222,16 @@ namespace CorrectnessTests
free(arrayI1);
}
void Synchronize() const
{
// Wait for reduction to complete
for (int i = 0; i < numDevices; i++)
{
HIP_CALL(hipSetDevice(i));
HIP_CALL(hipStreamSynchronize(streams[i]));
}
}
void ValidateResults(Dataset const& dataset) const
{
int8_t* outputI1 = (int8_t *)malloc(dataset.NumBytes());