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

[ROCm/rccl commit: 08fcce5ec9]
This commit is contained in:
Gilbert Lee
2019-05-16 23:13:49 +00:00
rodzic fe79e10c52
commit 0e17bed9e6
8 zmienionych plików z 148 dodań i 144 usunięć
@@ -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());