Fix record_event and hipStreamSync2 tests. The test should expect null stream to complete if synchrionize is called as per the spec

[ROCm/clr commit: 3684975b91]
Bu işleme şunda yer alıyor:
Saleel Kudchadker
2018-08-31 12:54:23 -07:00
ebeveyn 67fc95f323
işleme 54b81517d8
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
+2 -2
Dosyayı Görüntüle
@@ -170,8 +170,8 @@ void runTests(int64_t numElements) {
// for (int waitStart=0; waitStart<2; waitStart++) {
for (int waitStart = 1; waitStart >= 0; waitStart--) {
unsigned W = waitStart ? 0x1000 : 0;
test(W | 0x01, C_d, C_h, numElements, 0, waitStart, syncNone);
test(W | 0x02, C_d, C_h, numElements, stream, waitStart, syncNone);
test(W | 0x01, C_d, C_h, numElements, 0, 0, syncNone);
test(W | 0x02, C_d, C_h, numElements, stream, 0, syncNone);
test(W | 0x04, C_d, C_h, numElements, 0, waitStart, syncStream);
test(W | 0x08, C_d, C_h, numElements, stream, waitStart, syncStream);
test(W | 0x10, C_d, C_h, numElements, 0, waitStart, syncStopEvent);
+1 -1
Dosyayı Görüntüle
@@ -178,7 +178,7 @@ void runTests(int64_t numElements) {
{
test(0x01, C_d, C_h, numElements, syncNone, true /*expectMismatch*/);
test(0x02, C_d, C_h, numElements, syncNullStream, false /*expectMismatch*/);
test(0x04, C_d, C_h, numElements, syncOtherStream, true /*expectMismatch*/);
test(0x04, C_d, C_h, numElements, syncOtherStream, false /*expectMismatch*/);
test(0x08, C_d, C_h, numElements, syncDevice, false /*expectMismatch*/);
// Sending a marker to to null stream may synchronize the otherStream