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

Change-Id: I7b54a559d8abe0d5d5c77e48868b1332477a39f8


[ROCm/hip commit: e71067a7ec]
This commit is contained in:
kjayapra-amd
2020-09-10 10:35:02 -04:00
zatwierdzone przez Karthik Jayaprakash
rodzic ba88ed195f
commit 0189887c71
3 zmienionych plików z 18 dodań i 0 usunięć
@@ -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) {