SWDEV-251884 - Add Coop Launch Dev Property Checks in Co-operative Groups test cases.

Change-Id: I7b54a559d8abe0d5d5c77e48868b1332477a39f8


[ROCm/clr commit: d2008f93f4]
This commit is contained in:
kjayapra-amd
2020-09-10 10:35:02 -04:00
committed by Karthik Jayaprakash
parent ae01218741
commit a2ea4a91c5
3 changed files with 18 additions and 0 deletions
@@ -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) {
@@ -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) {
@@ -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) {