SWDEV-1 - Skip tests hanging/failing in Windows PSDB

- Device side memory allocation & printf testcases are hanging because pcie atomics is disabled in recent builds
- Few Coalesced Group testcases also hanging
- Unit_Thread_Block_Getters_Positive_Basic testcase is failing randomly

Change-Id: Ie53515db05c41e879248bb02655a74f0c296aa5f
Этот коммит содержится в:
Rakesh Roy authored and Rakesh Roy committed 2024-04-13 23:18:26 -04:00
1 родитель 7c12d95667
Коммит 9de3979083
10 files changed
+224 -4

No files matched your search

+25 -1
Просмотреть файл
@@ -19,7 +19,7 @@
THE SOFTWARE.
*/
#include <hip_test_common.hh>
#define ITER_COUNT 61681
#define KERNEL_ITERATIONS 15
@@ -65,6 +65,12 @@ __global__ void kernel_printf_thread(int *count) {
*/
TEST_CASE("Unit_NonHost_Printf_basic") {
int pcieAtomic = 0;
HIP_CHECK(hipDeviceGetAttribute(&pcieAtomic, hipDeviceAttributeHostNativeAtomicSupported, 0));
if (!pcieAtomic) {
HipTest::HIP_SKIP_TEST("Device doesn't support pcie atomic, Skipped");
return;
}
int *count{nullptr}, *count_d{nullptr};
count = reinterpret_cast<int*>(malloc(sizeof(int)));
@@ -93,6 +99,12 @@ TEST_CASE("Unit_NonHost_Printf_basic") {
*/
TEST_CASE("Unit_NonHost_Printf_loop") {
int pcieAtomic = 0;
HIP_CHECK(hipDeviceGetAttribute(&pcieAtomic, hipDeviceAttributeHostNativeAtomicSupported, 0));
if (!pcieAtomic) {
HipTest::HIP_SKIP_TEST("Device doesn't support pcie atomic, Skipped");
return;
}
int *count{nullptr}, *count_d{nullptr};
count = reinterpret_cast<int*>(malloc(ITER_COUNT * sizeof(int)));
@@ -131,6 +143,12 @@ TEST_CASE("Unit_NonHost_Printf_loop") {
*/
TEST_CASE("Unit_NonHost_Printf_multiple_Threads") {
int pcieAtomic = 0;
HIP_CHECK(hipDeviceGetAttribute(&pcieAtomic, hipDeviceAttributeHostNativeAtomicSupported, 0));
if (!pcieAtomic) {
HipTest::HIP_SKIP_TEST("Device doesn't support pcie atomic, Skipped");
return;
}
int *count{nullptr}, *count_d{nullptr};
count = reinterpret_cast<int*>(malloc(ITER_COUNT_FOR_THREAD * sizeof(int)));
@@ -172,6 +190,12 @@ TEST_CASE("Unit_NonHost_Printf_multiple_Threads") {
*/
TEST_CASE("Unit_NonHost_Printf_BufferAvailability") {
int pcieAtomic = 0;
HIP_CHECK(hipDeviceGetAttribute(&pcieAtomic, hipDeviceAttributeHostNativeAtomicSupported, 0));
if (!pcieAtomic) {
HipTest::HIP_SKIP_TEST("Device doesn't support pcie atomic, Skipped");
return;
}
int *count{nullptr}, *count_d{nullptr};
count = reinterpret_cast<int*>(malloc((ITER_COUNT-1) * sizeof(int)));