SWDEV-272082 - Fix Cooperative groups tests on HIP CUDA path

Change-Id: Icc68bc1e48c01ee120aaab17c928ffbbb96eae96


[ROCm/hip commit: 4985aa5e5c]
This commit is contained in:
Satyanvesh Dittakavi
2021-02-22 06:26:01 +00:00
والد d92a69c10a
کامیت a73beaf73f
9فایلهای تغییر یافته به همراه13 افزوده شده و 12 حذف شده
@@ -50,7 +50,7 @@ regular kernels can properly run in parallel with cooperative kernels.
*/
/* HIT_START
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS --std=c++11
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS --std=c++11 EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t
* HIT_END
*/
@@ -23,7 +23,7 @@ THE SOFTWARE.
/* HIT_START
* BUILD: %t %s ../../test_common.cpp
* TEST: %t EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t
* HIT_END
*/
@@ -164,7 +164,7 @@ int main()
}
// Test block sizes which are powers of 2
int i = 0;
int i = 1;
while (true) {
int blockSize = pow(2, i);
if (blockSize > maxThreadsPerBlock)
@@ -23,7 +23,7 @@ THE SOFTWARE.
/* HIT_START
* BUILD: %t %s ../../test_common.cpp
* TEST: %t EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t
* HIT_END
*/
@@ -133,7 +133,7 @@ int main()
}
// Test block sizes which are powers of 2
int i = 0;
int i = 1;
while (true) {
int blockSize = pow(2, i);
if (blockSize > maxThreadsPerBlock)
@@ -23,7 +23,7 @@ THE SOFTWARE.
/* HIT_START
* BUILD: %t %s ../../test_common.cpp
* TEST: %t EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t
* HIT_END
*/
@@ -133,7 +133,7 @@ int main()
}
// Test block sizes which are powers of 2
int i = 0;
int i = 1;
while (true) {
int blockSize = pow(2, i);
if (blockSize > maxThreadsPerBlock)
@@ -20,7 +20,7 @@ THE SOFTWARE.
// Simple test for hipLaunchCooperativeKernelMultiDevice API.
/* HIT_START
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS --std=c++11 -rdc=true -gencode arch=compute_60,code=sm_60
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS --std=c++11 -rdc=true -gencode arch=compute_70,code=sm_70
* TEST: %t
* HIT_END
*/
@@ -360,7 +360,7 @@ int main(int argc, char** argv) {
std::cout << "hipErrorInvalidResourceHandle" << std::endl;
}
HIPCHECK(hipDeviceSynchronize());
#ifndef __HIP_PLATFORM_NVIDIA__
std::cout << "Launching a multi-GPU cooperative kernel with two ";
std::cout << "different kernels." << std::endl;
bool supports_sep_kernels = true;
@@ -551,6 +551,7 @@ int main(int argc, char** argv) {
std::cout << "\tProperly launched." << std::endl;
HIPCHECK(hipDeviceSynchronize());
#endif
for (int m = 0; m < 2; ++m) {
HIPCHECK(hipFree(good_dev_array[m]));
HIPCHECK(hipFree(bad_dev_array[m]));
@@ -80,7 +80,7 @@ overlap-allowing flags work as expected.
*/
/* HIT_START
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS --std=c++11 -rdc=true -gencode arch=compute_60,code=sm_60
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS --std=c++11 -rdc=true -gencode arch=compute_70,code=sm_70
* TEST: %t
* HIT_END
*/
@@ -40,7 +40,7 @@ will sleep on the barrier waiting for the last warp to finally catch up.
*/
/* HIT_START
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -rdc=true -gencode arch=compute_60,code=sm_60
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -rdc=true -gencode arch=compute_70,code=sm_70
* TEST: %t
* HIT_END
*/
@@ -40,7 +40,7 @@ will sleep on the barrier waiting for the last warp to finally catch up.
*/
/* HIT_START
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -rdc=true -gencode arch=compute_60,code=sm_60
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -rdc=true -gencode arch=compute_70,code=sm_70
* TEST: %t
* HIT_END
*/