SWDEV-272082 - Fix Cooperative groups tests on HIP CUDA path
Change-Id: Icc68bc1e48c01ee120aaab17c928ffbbb96eae96
[ROCm/hip commit: 4985aa5e5c]
此提交包含在:
@@ -50,7 +50,7 @@ regular kernels can properly run in parallel with cooperative kernels.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* HIT_START
|
/* 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
|
* TEST: %t
|
||||||
* HIT_END
|
* HIT_END
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
/* HIT_START
|
/* HIT_START
|
||||||
* BUILD: %t %s ../../test_common.cpp
|
* BUILD: %t %s ../../test_common.cpp
|
||||||
* TEST: %t EXCLUDE_HIP_PLATFORM nvidia
|
* TEST: %t
|
||||||
* HIT_END
|
* HIT_END
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -164,7 +164,7 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Test block sizes which are powers of 2
|
// Test block sizes which are powers of 2
|
||||||
int i = 0;
|
int i = 1;
|
||||||
while (true) {
|
while (true) {
|
||||||
int blockSize = pow(2, i);
|
int blockSize = pow(2, i);
|
||||||
if (blockSize > maxThreadsPerBlock)
|
if (blockSize > maxThreadsPerBlock)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
/* HIT_START
|
/* HIT_START
|
||||||
* BUILD: %t %s ../../test_common.cpp
|
* BUILD: %t %s ../../test_common.cpp
|
||||||
* TEST: %t EXCLUDE_HIP_PLATFORM nvidia
|
* TEST: %t
|
||||||
* HIT_END
|
* HIT_END
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Test block sizes which are powers of 2
|
// Test block sizes which are powers of 2
|
||||||
int i = 0;
|
int i = 1;
|
||||||
while (true) {
|
while (true) {
|
||||||
int blockSize = pow(2, i);
|
int blockSize = pow(2, i);
|
||||||
if (blockSize > maxThreadsPerBlock)
|
if (blockSize > maxThreadsPerBlock)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
/* HIT_START
|
/* HIT_START
|
||||||
* BUILD: %t %s ../../test_common.cpp
|
* BUILD: %t %s ../../test_common.cpp
|
||||||
* TEST: %t EXCLUDE_HIP_PLATFORM nvidia
|
* TEST: %t
|
||||||
* HIT_END
|
* HIT_END
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Test block sizes which are powers of 2
|
// Test block sizes which are powers of 2
|
||||||
int i = 0;
|
int i = 1;
|
||||||
while (true) {
|
while (true) {
|
||||||
int blockSize = pow(2, i);
|
int blockSize = pow(2, i);
|
||||||
if (blockSize > maxThreadsPerBlock)
|
if (blockSize > maxThreadsPerBlock)
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ THE SOFTWARE.
|
|||||||
// Simple test for hipLaunchCooperativeKernelMultiDevice API.
|
// Simple test for hipLaunchCooperativeKernelMultiDevice API.
|
||||||
|
|
||||||
/* HIT_START
|
/* 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
|
* TEST: %t
|
||||||
* HIT_END
|
* HIT_END
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ int main(int argc, char** argv) {
|
|||||||
std::cout << "hipErrorInvalidResourceHandle" << std::endl;
|
std::cout << "hipErrorInvalidResourceHandle" << std::endl;
|
||||||
}
|
}
|
||||||
HIPCHECK(hipDeviceSynchronize());
|
HIPCHECK(hipDeviceSynchronize());
|
||||||
|
#ifndef __HIP_PLATFORM_NVIDIA__
|
||||||
std::cout << "Launching a multi-GPU cooperative kernel with two ";
|
std::cout << "Launching a multi-GPU cooperative kernel with two ";
|
||||||
std::cout << "different kernels." << std::endl;
|
std::cout << "different kernels." << std::endl;
|
||||||
bool supports_sep_kernels = true;
|
bool supports_sep_kernels = true;
|
||||||
@@ -551,6 +551,7 @@ int main(int argc, char** argv) {
|
|||||||
std::cout << "\tProperly launched." << std::endl;
|
std::cout << "\tProperly launched." << std::endl;
|
||||||
|
|
||||||
HIPCHECK(hipDeviceSynchronize());
|
HIPCHECK(hipDeviceSynchronize());
|
||||||
|
#endif
|
||||||
for (int m = 0; m < 2; ++m) {
|
for (int m = 0; m < 2; ++m) {
|
||||||
HIPCHECK(hipFree(good_dev_array[m]));
|
HIPCHECK(hipFree(good_dev_array[m]));
|
||||||
HIPCHECK(hipFree(bad_dev_array[m]));
|
HIPCHECK(hipFree(bad_dev_array[m]));
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ overlap-allowing flags work as expected.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* HIT_START
|
/* 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
|
* TEST: %t
|
||||||
* HIT_END
|
* HIT_END
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ will sleep on the barrier waiting for the last warp to finally catch up.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* HIT_START
|
/* 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
|
* TEST: %t
|
||||||
* HIT_END
|
* HIT_END
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ will sleep on the barrier waiting for the last warp to finally catch up.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* HIT_START
|
/* 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
|
* TEST: %t
|
||||||
* HIT_END
|
* HIT_END
|
||||||
*/
|
*/
|
||||||
|
|||||||
新增問題並參考
封鎖使用者