SWDEV-209747 - Staging Copy will not be supported in HIP, adjust test case accordingly.

Change-Id: Iad616ef3990d539cdb82bbd8a22ea2124f7abe50


[ROCm/hip commit: 04b58e6e50]
这个提交包含在:
kjayapra-amd
2020-06-22 19:26:54 -04:00
提交者 Karthik Jayaprakash
父节点 a6c83e443c
当前提交 b32c033585
修改 5 个文件,包含 35 行新增5 行删除
+7 -1
查看文件
@@ -272,7 +272,6 @@ void HipMemcpyWithStreamtests::TestkindDtoD(void) {
size_t Nbytes = N * sizeof(int);
int numDevices = 0;
unsigned blocks = HipTest::setNumBlocks(blocksPerCU, threadsPerBlock, N);
HIPCHECK(hipGetDeviceCount(&numDevices));
// If you have single GPU machine the return
@@ -280,6 +279,13 @@ void HipMemcpyWithStreamtests::TestkindDtoD(void) {
return;
}
int canAccessPeer = 0;
hipDeviceCanAccessPeer(&canAccessPeer, 0, 1);
if (!canAccessPeer) {
std::cout<<"Machine does not seem to have P2P Capabilities"<<std::endl;
return;
}
int *A_d[numDevices], *B_d[numDevices], *C_d[numDevices];
int *A_h[numDevices], *B_h[numDevices], *C_h[numDevices];