Adding fix for unsufficient devices / better logging for skipped tests (#63)

[ROCm/rccl commit: a115f577dd]
Этот коммит содержится в:
gilbertlee-amd
2019-05-21 14:34:20 -06:00
коммит произвёл GitHub
родитель 7c60e997e0
Коммит 08a65f2201
+6 -1
Просмотреть файл
@@ -173,8 +173,13 @@ namespace CorrectnessTests
// Only proceed with testing if there are enough GPUs
if (numDevices > numDevicesAvailable)
{
fprintf(stdout, "Skipping test requring %d devices (only %d available)\n",
fprintf(stdout, "[ SKIPPED ] Test requires %d devices (only %d available)\n",
numDevices, numDevicesAvailable);
// Modify the number of devices so that tear-down doesn't occur
// This is temporary until GTEST_SKIP() becomes available
numDevices = 0;
numDevicesAvailable = -1;
return;
}