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

Change-Id: I7b54a559d8abe0d5d5c77e48868b1332477a39f8
Esse commit está contido em:
kjayapra-amd
2020-09-10 10:35:02 -04:00
commit de Karthik Jayaprakash
commit e71067a7ec
3 arquivos alterados com 18 adições e 0 exclusões
+6
Ver Arquivo
@@ -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) {