diff --git a/tests/src/cg/hipCGGridGroupType.cpp b/tests/src/cg/hipCGGridGroupType.cpp index 99fe5d88a2..db45c10512 100644 --- a/tests/src/cg/hipCGGridGroupType.cpp +++ b/tests/src/cg/hipCGGridGroupType.cpp @@ -137,6 +137,12 @@ int main() ASSERT_EQUAL(hipGetDeviceProperties(&deviceProperties, deviceId), hipSuccess); int maxThreadsPerBlock = deviceProperties.maxThreadsPerBlock; + if (!deviceProperties.cooperativeLaunch) { + std::cout << "info: Device doesn't support cooperative launch! skipping the test!\n"; + passed(); + return 0; + } + // Test block sizes which are powers of 2 int i = 0; while (true) { diff --git a/tests/src/cg/hipCGGridGroupTypeViaBaseType.cpp b/tests/src/cg/hipCGGridGroupTypeViaBaseType.cpp index c1d3a66106..11562dfff6 100644 --- a/tests/src/cg/hipCGGridGroupTypeViaBaseType.cpp +++ b/tests/src/cg/hipCGGridGroupTypeViaBaseType.cpp @@ -137,6 +137,12 @@ int main() ASSERT_EQUAL(hipGetDeviceProperties(&deviceProperties, deviceId), hipSuccess); int maxThreadsPerBlock = deviceProperties.maxThreadsPerBlock; + if (!deviceProperties.cooperativeLaunch) { + std::cout << "info: Device doesn't support cooperative launch! skipping the test!\n"; + passed(); + return 0; + } + // Test block sizes which are powers of 2 int i = 0; while (true) { diff --git a/tests/src/cg/hipCGGridGroupTypeViaPublicApi.cpp b/tests/src/cg/hipCGGridGroupTypeViaPublicApi.cpp index 50a2c2fd2e..21f0348aec 100644 --- a/tests/src/cg/hipCGGridGroupTypeViaPublicApi.cpp +++ b/tests/src/cg/hipCGGridGroupTypeViaPublicApi.cpp @@ -137,6 +137,12 @@ int main() ASSERT_EQUAL(hipGetDeviceProperties(&deviceProperties, deviceId), hipSuccess); int maxThreadsPerBlock = deviceProperties.maxThreadsPerBlock; + if (!deviceProperties.cooperativeLaunch) { + std::cout << "info: Device doesn't support cooperative launch! skipping the test!\n"; + passed(); + return 0; + } + // Test block sizes which are powers of 2 int i = 0; while (true) {